Koo CLI
The Koo CLI deploys your app from your terminal. Its flagship command, koo up, packs your working directory, uploads it, builds it, and rolls it out — streaming progress until your service is live at its URL.
Install
The CLI is a single self-contained binary for macOS, Linux, and Windows. Install it with your package manager of choice.
# Homebrewbrew tap koo-io/koobrew install koo# npmnpm i -g @koo-io/cli# Cargocargo install kooRun koo --version to confirm the install.
Log in
koo login opens your browser to authorize the CLI, then stores the session in your operating system's keyring — nothing is written to disk in plaintext. koo whoami prints who you're acting as, and koo logout clears the stored session.
koo loginkoo whoamiFor CI and other headless environments, skip the browser step: set KOO_TOKEN to a kc_… API token and every command authenticates with it.
Deploy with koo up
From your app's directory, run koo up. It packs the working tree — honoring .gitignore, .kooignore, and .dockerignore — uploads it, builds a container image, and ships it as a new deployment.
koo upBy default koo up waits: it streams the build, then follows the rollout until your service is running and reachable at its URL. Pass --detach to return as soon as the deploy is queued.
The first time you run it in a directory, koo up asks which account, project, and environment to deploy into and records your choice in a koo.json file. To set that up ahead of time, run koo link yourself.
koo linkThis is the same from-source path as Deploy from Git, driven from your machine instead of a repository. To ship a prebuilt image instead, see Deploy a container.
Watch your service
koo status shows the current health and live URL of the service in the linked environment. koo logs tails its logs; add -f to follow.
koo statuskoo logs -fManage variables
Read and change a service's environment variables without leaving the terminal.
koo variables listkoo variables set DEBUG=truekoo variables unset DEBUGRun a command locally with the service's variables injected — handy for a one-off task like a database migration:
koo run -- npm run migrateCommand reference
| Command | What it does |
|---|---|
koo login / koo logout | Authorize the CLI, or clear the stored session. |
koo whoami | Show the current actor. |
koo link | Bind the current directory to an account, project, and environment (koo.json). |
koo up | Pack, upload, build, and deploy the working directory. |
koo status | Show the linked service's health and live URL. |
koo logs | Tail the service's logs (-f to follow). |
koo variables | List, set, or unset environment variables. |
koo run -- <cmd> | Run a command with the service's variables in scope. |
koo accounts / koo projects / koo environments | List the accounts, projects, and environments you can reach. |
Related
- Quickstart — sign up to a live app in about ten minutes.
- API tokens — the
kc_…tokens the CLI uses for headless auth.