# Command line

> The klio commands for running, deploying and managing work, and the options agents and scripts need.

Canonical page: https://klio.tech/docs/cli

## Overview

Installing `klio-compute` also installs the `klio` command. `klio --help` lists every command, and `--help` after a command explains it.

Table: The commands these docs use

| Command | What it does |
| --- | --- |
| `klio login` | Sign in, or create an account. `--browserless` prints a link and a code instead of opening a browser. |
| `klio run app.py` | Run a file's local entrypoint, or its only function. |
| `klio deploy app.py` | Deploy every function and class in a file's App, or one handler as `app.py:handler`. |
| `klio gpus` | Every GPU type, its price per hour right now, and whether it can start. Add `--json` for JSON. |
| `klio model deploy` | Deploy an open model behind an OpenAI-compatible API. `klio model list` shows the models. |
| `klio migrate --check` | Check a Modal project before changing anything. `--write` changes its import lines. |
| `klio app list` | List running apps. `info`, `logs` and `stop` work on one app. |
| `klio deployment list` | List deployments. `klio deployment stop` stops one by its id. |
| `klio task list` | List tasks. `klio task stop` stops one. |
| `klio volume list` | List volumes. `create`, `put`, `get`, `ls`, `cp` and `delete` work on them. |
| `klio secret list` | List secrets. `create`, `show` and `delete` work on them. |
| `klio curl` | Call a private endpoint with your key. |
| `klio logs` | Read or follow workload logs. |
| `klio doctor` | Check your connection and credentials. |
| `klio dashboard` | Open the console. |

## For agents and scripts

- `--json` gives machine-readable output, and errors come with a `code`. It implies `--no-input`.
- `--no-input` turns off prompts.
- `klio login --browserless` signs in from a shell without a browser; `KLIO_TOKEN` skips sign-in entirely.
- Several workspaces: `klio login --name NAME` saves a sign-in under its own context, and `--context NAME` picks it.
