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.4.tar.gz (52.5 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.4-py3-none-any.whl (63.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: layer-1.0.4.tar.gz
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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.4.tar.gz
Algorithm Hash digest
SHA256 3b9021109a7256e55b3c690edb9dbf684d4199c51343c69058bd4658568d74bc
MD5 53000c31b8246932ed7deeff0429335a
BLAKE2b-256 b6eb5dcdb5e501c4882f595c67826ab7315b17f26148626584ac8cb1df15f71d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: layer-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 63.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 344b272f5f39bb3de2a093cfe13263de470aab60a7a817dd236660e608ab023e
MD5 6b1f353c4019bc2d3225a6f6f5a72121
BLAKE2b-256 a4687df17f5da289579867155b81ab0b2273dc2ba36f94e7abd2816858b8ad46

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.6

2 files

1.0.5

2 files

This release

1.0.4 This release

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