Logs, env vars, domains and rollback
6 min
Logs
lunax logs # runtime logs from the running site
lunax logs --build # the build that produced itThe first deploy of a project is the one most likely to fail, and it fails during the build — before there is any runtime to have logs. --build is the flag you want then. Build logs are kept for a limited window; after the build job is cleaned up we tell you the logs are gone rather than returning an empty response you would read as "no output".
Environment variables
lunax env ls
lunax env set DATABASE_URL '...'
lunax env rm OLD_KEYValues are encrypted at rest and injected into your running site. env ls shows names, never values — and a deploy-scoped token is refused here entirely.
Domains
lunax domains add example.com
lunax domains verify <id>Rollback
lunax rollbackRollback deploys the previous build again. It is a deploy, not a teardown: your site keeps serving, and the rollback goes through the same admission checks as any other deploy.
Watch a builder session
lunax agent tui <sessionId>The studio is the agent web UI. lunax agent tui is a later senior attach to the same session API — it prints status and tools and does not spin while the agent waits for your answer. The agent still runs on Lunax.