doc_class: reference
owner: platform
@layers/cli
npm install -g @layers/cli fetches the layers binary for your platform (macOS, Linux, and Windows, x64 and arm64) and verifies its SHA256 against the release's checksums.txt before installing it.
Run layers setup in a repo to bind it to the Layers Growth MCP, or layers --help for everything else.
Release
CI publishes this package. The npm-publish job in
.github/workflows/release-cli.yaml runs on a cli/v* tag and authenticates to
npm with OIDC through npm trusted publishing. There is no npm token.
One-time setup on npmjs.com, required once per package before the first CI
publish:
- Open the
@layers/cli package page and go to Settings.
- Open Trusted publishers and choose GitHub Actions.
- Set the organization or user to
layers, the repository to layers,
the workflow filename to release-cli.yaml, and the environment to
npm-publish.
- Save.
Until npm holds that record, the publish step fails with E404 or E403.
https://layers.com