Command Purpose layer helpShow CLI help. layer --helpShow CLI help. layer -hShow CLI help. layer --versionShow CLI version. layer -vShow CLI version.
The CLI uses the local direct Cloudflare path by default. It reads local credentials, calls Cloudflare APIs from your machine, and records local project state.
Command Purpose layer initCreate a minimal Layeron project. layer devRun a Layeron project locally with Miniflare. layer dashboardRun the Layeron dashboard locally. layer loginSave Cloudflare credentials for direct workflows. layer login statusCheck Cloudflare login and show identity. layer logoutRemove local Cloudflare account API token credentials. layer deployDirect deploy to the user’s Cloudflare account. layer deploy statusShow the latest Cloudflare deployment record. layer deploy historyShow recent Cloudflare deployment records. layer destroyDestroy tracked direct deploy resources in the user’s Cloudflare account. layer captcha sitekeysShow configured Captcha site keys. layer resourceShow tracked resources. layer resource listShow tracked resources. layer resource deleteDelete retired or orphaned resources from the provider. layer logs listView retained Layeron log archive records. layer scanScan provider resources into Layeron observed state. layer driftDetect provider drift for Layeron resources. layer reconcileReconcile Layeron resources with Cloudflare. layer secret setSet a secret in the user’s Cloudflare account for direct deploy.
layer dashboard [project] [options]
Option Value Description --env<name>Initial environment selection. --workspace-id<id>Workspace id. Defaults to local. --project-id<id>Project id override. --host<address>Local listen address. Defaults to 127.0.0.1. --port<number>Local port. Defaults to 4177; valid range is 1 through 65535. -h, --helpShow help.
layer destroy [project] [options]
Option Value Description --env<name>Environment. Defaults to default. --account-id<id>Cloudflare account id. --zone-id<id>Cloudflare zone id for route resources. --dry-runPreview destroy without applying changes. --auto-approveSkip the confirmation prompt for automation. -auto-approveSkip the confirmation prompt for automation. --i-know-i-am-deleting-persistent-resources-and-this-is-irreversibleDelete persistent resources instead of retiring them. --i-waive-second-confirmationWaive project-name confirmation in CI=1. -h, --helpShow help.
layer captcha sitekeys [project] [options]
Option Value Description --env<name>Environment. Defaults to default. --namespace<name>Captcha namespace filter. --name<name>Captcha instance name filter. --jsonPrint JSON records. -h, --helpShow help.
layer logs list [project] [options]
Option Value Description --env<name>Environment. Defaults to default. --namespace<name>Log namespace. Required. --name<name>Log stream name. Required. --level<level>Filter by severity. --since<time>ISO time or duration such as 1h, 30m, or 2d. --until<time>ISO time. --limit<number>Maximum records. Defaults to 50. --jsonPrint JSON records.