Skip to content

CLI

layer is Layer’s command-line interface. It reaches the same models, workspaces, and Creative Unit balance as the app, from a terminal, a Makefile, or a CI job.

Terminal window
uv tool install layer

Then sign in and generate:

Terminal window
layer login
layer generate image -p "a cyberpunk market stall, isometric"

The first run picks the recommended model for the modality, prints what it will cost, waits for the result, and writes the file into your working directory.

Command What it does
layer login / logout / whoami Sign in, sign out, and show who you are signed in as
layer use <workspace> Choose the workspace subsequent commands act on
layer generate image|video|mesh|audio Run a generation
layer generate status <id> Read back a run submitted with --no-wait
layer base-models list / show The catalogue your workspace can run, and one model’s inputs

Global options apply to every command: --profile, --workspace/-w, --project, --api-url, --json, --quiet/-q, and --version.

The CLI is for you and your scripts. If the caller is an AI agent rather than a shell, the MCP server gives it tools instead, and the Agent Skills teach it the procedures. For your own services, there is the REST API.