Install and sign in
How to install the Layero CLI (npx, project-local or global), sign in through the device flow, and where the token is kept.
Commands
The full list of layero commands — init, login, projects, deploy, rollback, deploys list, link, token.
layero deploy
What layero deploy does, its flags, how auto-detection, .layeroignore and the archive limits work.
Deploying from GitHub Actions
The official GitHub Action for deploying to Layero — CI tokens, building the artifact in your pipeline, pull-request previews, step outputs and the errors you are likely to hit.
Deploying from AI agents
How Cursor, Claude Code, Aider and other AI agents deploy a site through Layero — no git repository, no browser wizard.
layero promote
Point the production apex at a specific deploy — from any branch, without a rebuild. Also the working way to roll production back.
JSON events schema
The full list of events and error codes the Layero CLI emits on stdout in JSON mode. The canonical reference for AI agents and CI.
Rollback
How to bring the production apex back to a working deploy — with the rollback command, or with a targeted promote onto a specific commit_sha.