Skip to main content
@karta.sh/cli is the karta command-line tool. It wraps @karta.sh/sdk for its API calls and covers the Karta handoff and operations loop: login, setup, local session-API parity, deploy, rollback, and logs. The full command reference lives at CLI overview; this page covers install, auth, and key scopes.

Install & authenticate

karta login mints a named, revocable CLI credential (visible on your API keys page) and writes it to ~/.karta/config.toml (mode 0600). It also installs the git credential helper, so git push karta never prompts. Named profiles are supported; select a non-default one with --profile <name>. For CI or air-gapped machines:

Commands

Deploy and roll back

karta deploy ships the current agent project - a git repo pushes, a plain folder uploads - and self-provisions the hosted agent on first run:
See Releases & rollback for the full deploy loop, CI wiring, and the underlying API.