@layeron/cli
v0.1.0
Published
Command-line interface for Layeron.
Readme
@layeron/cli
Command-line interface for Layeron.
The default command name is layer.
Current scope:
- command parsing framework
- help output
- version output
- unknown command handling
layer init [directory]project scaffoldinglayer dev <project>local development through Miniflarelayer loginaccount API token setup for local direct deployslayer login statusCloudflare credential verificationlayer logoutlocal Cloudflare credential cleanuplayer logout --oauthreserved Cloudflare OAuth logout pathlayer deploy [project]local direct deploy to Cloudflarelayer deploy --dry-rundeploy preview without Cloudflare changeslayer deploy status [project]latest local deployment recordlayer deploy history [project]recent local deployment recordslayer captcha sitekeys [project]Captcha site key inspectionlayer scan [project]read Layeron-managed or tagged Cloudflare resources into observed statelayer drift [project]compare desired, local, and observed Cloudflare statelayer reconcile [project]plan or apply drift reconciliation
layer init creates layeron.config.ts and src/app.ts with a minimal
/healthz route and the current local Cloudflare compatibility date. It
initializes the current directory by default and accepts --dir <path> for a
different target. It asks for a project name slug when one is not provided.
layer dev loads the project, compiles the app spec, writes generated artifacts
under .layeron, applies safe local migrations, and starts Miniflare with
local persistence under .layeron/miniflare.
layer login and layer deploy use the local direct Cloudflare workflow.
layer logout removes the local account API token credential file.
Cloudflare account API tokens remain active until the user deletes them from the
Cloudflare dashboard. The --oauth option is reserved for the future OAuth
credential store.
layer scan compiles the app, resolves the current Cloudflare
target, reads tracked resources plus Layeron-tagged Cloudflare resources, and
records observed state under .layeron/state. layer drift performs
the same read and reports missing, changed, unreadable, and cloud-only tagged
resources. layer reconcile --plan shows the restore plan without
mutating Cloudflare. --accept-cloud, --restore-layeron, --adopt, and
--retire choose the reconciliation strategy explicitly.
