Layers

Projects & setup

Set up a local project directory, switch orgs, and link an existing Layers project.

View as Markdown

Guided setup

For first-time use, the easiest path is:

cd your-app
layers setup

This walks through authentication, detecting your framework and platforms, connecting social / ad accounts, and initializing the project.

layers get-users is an alias for layers setup.

Initialize a directory

If you already have a Layers project and just want to bind this directory to it:

layers init
# interactive: pick org and project, writes .layers/config.json

Or non-interactively:

layers init --org <org-id> --project <project-id>

The resulting .layers/config.json records the org and project IDs so later commands in this directory use them by default.

layers link
layers link <project-id>

Similar to init but runs from a working directory without requiring a wizard.

List organizations and projects

layers orgs list
layers projects list
layers projects list --org <org-id>

Switch defaults

layers orgs switch
layers projects switch
layers projects switch <project-id>

Sets the CLI's default org / project. Stored in the global config (~/.config/layers/config.json).

Show current user / context

layers whoami

Open the dashboard

layers open

Opens the web dashboard in your browser for the current project.

On this page