The shadcn CLI reads TRAME_KEY from the environment as well as from .env. In CI, store the key as a secret and
expose it as an environment variable. components.json stays the same.
GitHub Actions
- In your repository, open Settings → Secrets and variables → Actions.
- Add a secret named
TRAME_KEYwith your key. - Pass it to the step that runs the CLI:
- name: Add blocks
run: npx shadcn-vue@latest add @trame/steps-cards --yes
env:
TRAME_KEY: ${{ secrets.TRAME_KEY }}
Other CI services work the same way: a secret, exposed as TRAME_KEY.
Good habits
- Never print the key in a log, and never commit it.
- When you replace your key, update the secret too: the old key stops working at once.
- Your account has a single key, so CI and your machine share it. Replacing it means updating both.
The MCP server in CI
An agent that runs without a browser cannot sign in with OAuth. On a Pro or Team account, it can send the same key as a bearer token instead. See Other clients.