| title | Kernel CLI |
|---|
The Kernel CLI helps you access and manage your Kernel resources.
# Using brew
brew install onkernel/tap/kernel
# Using pnpm
pnpm install -g @onkernel/cli
# Using npm
npm install -g @onkernel/cliVerify installation:
which kernel
kernel --version# 1) Create a new app
kernel create
# 2) Login
kernel login
# 3) Deploy your app
kernel deploy index.ts
# 4) Invoke your app
kernel invoke my-app action-name --payload '{"key":"value"}'--version,-v- Print the CLI version--no-color- Disable color output--log-level <level>- Set the log level (trace, debug, info, warn, error, fatal, print)--project <id-or-name>- Scope the request to a specific project (also reads theKERNEL_PROJECTenv var)
Many commands support --output json (or -o json) for machine-readable output, useful for scripting and automation:
# Get browser session as JSON
kernel browsers create -o json
# List apps as JSON array
kernel app list -o json
# Deploy with JSONL streaming (one JSON object per line)
kernel deploy index.ts -o jsonSee individual command documentation for JSON output availability.
Looking for the API? See the [API Reference](https://kernel.sh/docs/api-reference/invocations/invoke-an-action).The Kernel CLI has a companion skills file that AI coding agents (Cursor, Claude, Windsurf, etc.) can use to learn the CLI's commands and capabilities. Copy the prompt from the homepage or point your agent directly at the skill file to get started.