Documentation Index
Fetch the complete documentation index at: https://docs.karta.sh/llms.txt
Use this file to discover all available pages before exploring further.
@karta/cli is the command-line client for the hosted platform. It wraps
@karta/sdk and adds project setup, deployment,
rollback, and log streaming against your account. It’s the CLI used in the
Quickstart.
This is distinct from the Python
karta CLI, which is for
local development and serving. This one (@karta/cli, npm) operates on
your hosted projects and is authenticated by a kt_live_… key.Install & authenticate
karta init is the one-step setup from the Quickstart.
If you only need to authenticate an existing project, karta login prompts for
your kt_live_… key and writes ~/.karta/config.toml (mode 0600). Named
profiles are supported; select a non-default with --profile <name>.
Commands
| Command | Scope | Purpose |
|---|---|---|
karta init | write | Auth, create the project, add the karta git remote. (preview) |
karta open <slug> | read | Open the project’s hosted URL in a browser. (preview) |
karta login | — | Authenticate and validate your key. |
karta whoami | read | Show active profile and key prefix. |
karta keys list | read | List API keys. |
karta keys create <name> [--scope …] | admin | Mint a key (plaintext shown once). |
karta keys revoke <id> | admin | Revoke a key. |
karta usage | read | Current-period totals and budget. |
karta projects list | read | List your projects. |
karta projects show <slug> | read | Project header + recent releases. |
karta projects releases <slug> | read | All releases for a project. |
karta deploy <slug> --commit <sha> | write | Enqueue a build for a commit. |
karta rollback <slug> --to vN | admin | Flip to a previous release. |
karta logs <slug> [--tail] [--since <iso>] | read | Stream logs (SSE) or poll. |
Deploy and roll back
There are two ways to deploy. The headline path isgit push karta — push a
commit to the karta remote karta init set up, and Karta builds and activates
a release. Equivalently, karta deploy enqueues a build for an explicit commit:
Preview.
karta init, karta open, and the git push karta remote are
part of the rolling-out push-to-deploy experience. The wired path today is
karta deploy --commit (and a GitHub webhook) against a repo-linked project.
See the deploy loop status.