Skip to main content

layer

Command-line interface for Layer — AI asset generation for game studios.

Pre-release. This is an early build of the rewritten CLI. Asset generation is landing next; today it covers signing in and choosing a workspace.

Install

uv tool install --prerelease=allow layer     # or: pipx install --pip-args=--pre layer

Working on the CLI itself? Install it from your checkout instead, so the layer command follows the branch you have out:

task -d apps/cli-py install-cli

Sign in

layer login                 # opens a browser
layer login --device        # for SSH sessions and containers
layer whoami
layer use my-studio

For CI and other unattended runs, set LAYER_API_KEY to a personal access token instead of signing in.

Where settings come from

Highest wins:

  1. a command-line flag
  2. an environment variable — LAYER_PROFILE, LAYER_WORKSPACE, LAYER_PROJECT, LAYER_API_URL, LAYER_API_KEY
  3. layer.toml, found by walking up from the working directory
  4. the active profile in ~/.layer/config.toml

Committing a layer.toml pins a checkout to its workspace, so two repos open in two terminals cannot generate into each other's:

workspace = "my-studio"
project   = "season-12-art"

Scripting

--json puts the result on stdout and nothing else — progress, warnings, and errors all go to stderr, so a pipeline never has to filter them out.

layer --json whoami | jq -r .workspace

Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 insufficient balance, 5 invalid input, 6 content policy, 7 timeout.

Documentation

https://www.layer.ai/docs/cli

Licence

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

layer-1.0.5.tar.gz (53.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

layer-1.0.5-py3-none-any.whl (63.9 kB view details)

Uploaded Python 3

File details

Details for the file layer-1.0.5.tar.gz.

File metadata

  • Download URL: layer-1.0.5.tar.gz
  • Upload date:
  • Size: 53.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for layer-1.0.5.tar.gz
Algorithm Hash digest
SHA256 74753d3e2a84f4ed04661bc1115ae861e204aa80e3c2958edcce74838c543a43
MD5 e59643a69bb66f6282d6c934c1e8cc89
BLAKE2b-256 4dfeb6fd33ae07163b93460a4cb42d527629a555a277af7de74d44c424c308d2

See more details on using hashes here.

File details

Details for the file layer-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: layer-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 63.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for layer-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e7717e8c15b6ad531e9ca867432e898a9063a90804d4792d15ccc05622572759
MD5 3abb3899f1fe3caf9d5b32697698cd2e
BLAKE2b-256 1b7a4762ea38c30d413869b18c07532aa2bfbe46a6aa02f3c1f04217d4c999cb

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.6

2 files

This release

1.0.5 This release

2 files

1.0.4

2 files

1.0.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page