Layers

Command reference

Every `layers` subcommand, grouped by area.

View as Markdown

Setup & authentication

CommandWhat it does
layers login [--force]Browser-based OAuth sign-in.
layers logoutRemove local credentials.
layers whoamiShow the authenticated user.
layers setupGuided onboarding — detect the project, connect accounts, pick a template.
layers get-usersAlias for layers setup.
layers init [--org ID] [--project ID]Create .layers/config.json in the current directory.
layers link [<project-id>]Link the current directory to an existing Layers project.
layers openOpen the web dashboard for the linked project.

Project / org management

CommandWhat it does
layers orgs listList organizations you belong to.
layers orgs switch [<org-id>]Set the default organization.
layers projects list [--org ID]List projects in the org.
layers projects switch [<project-id>]Set the default project.

Local analysis & SDK

CommandWhat it does
layers analyzeScan the local project (framework, platforms, existing SDK).
layers connect [<platform>]Connect a social / ad account via OAuth.
layers sdk installGenerate an SDK instrumentation spec your AI coding tool can apply.
layers sdk validateVerify that the SDK is integrated correctly.
layers sdk diffShow the git diff of the SDK worktree (.layers/worktree).
layers setup-editorWrite MCP + skill config for Claude Code, Cursor, Windsurf, or Codex.

Day-to-day

CommandWhat it does
layers statusPrint the performance dashboard for the current project.
layers reviewApprove or reject pending generated content.
layers budget [set <amount>|pause|resume]View or manage ad spend.
layers digestShow Elle's daily digest.
layers doctorRun diagnostics on CLI version, auth, and API connectivity.

Misc

CommandWhat it does
layers mcp-serverStart the MCP server (used by setup-editor).
layers updateUpdate the CLI to the latest release.
layers versionShow detailed version info.

Global flags

FlagDescription
-o, --org <id>Override the active organization.
-p, --project <id>Override the active project.
-h, --helpShow help.
--versionShow the CLI version.

On this page