CLI
The Foundry CLI
One binary for everything: deploy, tail logs, roll back, manage keys and env.
Install
The CLI ships as @foundry/cli. Install it globally, then sign in once.
bash
$ npm i -g @foundry/cli $ foundry login ✓ signed in as ava@acme.co
Common commands
The handful you'll reach for daily:
foundry deploy | Build and deploy the linked project. |
foundry logs --tail | Stream logs from every region. |
foundry rollback <id> | Restore a previous deployment. |
foundry keys create | Issue a new scoped API key. |
foundry env pull | Sync environment variables locally. |
Shell completions
Run
foundry completions install to get tab-completion for every command and flag.Configuration
Project settings live in foundry.json. It's committed to your repo, so every teammate deploys the same way.
foundry.json
json
{ "project": "acme-api", "regions": "all", "entrypoints": "api/**" }
Was this page helpful?
Updated Jul 2026