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 zynga-solitaire
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:
- a command-line flag
- an environment variable —
LAYER_PROFILE,LAYER_WORKSPACE,LAYER_PROJECT,LAYER_API_URL,LAYER_API_KEY layer.toml, found by walking up from the working directory- 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 = "zynga-solitaire"
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file layer-1.0.2.tar.gz.
File metadata
- Download URL: layer-1.0.2.tar.gz
- Upload date:
- Size: 52.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e493b0afb3d5cf60c93da071e39b3103c1ddd34e8efe42ac542cd4f0bb77e4a5
|
|
| MD5 |
99909ccb27b2748394b0fc1bec99816a
|
|
| BLAKE2b-256 |
e0bf3dddebb4d8e5a7679c2314c8fb8b999cde0d2cb223f6c7e71d1748d91821
|
File details
Details for the file layer-1.0.2-py3-none-any.whl.
File metadata
- Download URL: layer-1.0.2-py3-none-any.whl
- Upload date:
- Size: 63.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c81cfd5939e46b5194cf055da67e57965bb818a6eaa9814fde06a0ec58b05ed
|
|
| MD5 |
c431b5eba4f02b959993e03cb5d3f43b
|
|
| BLAKE2b-256 |
f1496bce3b46c136a0f24ab4e148a17cdc1f503ce752fd912da6440cb5cd9b09
|