CLI Reference
CLI Reference
The kernova CLI is your primary tool for developing and deploying Kernova applications.
Installation
The CLI is included when you install @kernova/cli:
npm install -g @kernova/cliOr use it via npx (no install needed):
npx @kernova/cli devCommands
kernova create <name>
Scaffold a new full-stack project.
kernova create my-appkernova create my-app --template multi-agentkernova create my-app --no-frontendkernova create my-app --react # Use Vite instead of Next.jskernova create my-app --no-install # Skip npm install| Flag | Description |
|---|---|
--template, -t | Template: default, minimal, multi-agent |
--no-frontend | Agents only (no React/Next.js) |
--react | Use Vite + React instead of Next.js |
--no-install | Don’t run npm install |
kernova dev
Start the development server.
kernova devkernova dev --port 4000kernova dev --agent-port 5000kernova dev --agents-onlykernova dev --app-only| Flag | Default | Description |
|---|---|---|
--port, -p | 3000 | Frontend port |
--agent-port | 4555 | Agent backend port |
--agents-only | — | Only start agent backend |
--app-only | — | Only start frontend |
In full-stack mode, this starts both the Next.js frontend and the agent backend behind a single URL.
kernova build
Build the project for production.
kernova buildkernova build --agents-onlykernova build --app-onlykernova build --verbose| Flag | Description |
|---|---|
--agents-only | Only compile agents |
--app-only | Only build frontend |
--verbose, -v | Show full build output |
This:
- Validates
kernova.config.ts - Compiles agents (TypeScript → JavaScript)
- Builds frontend (
next build) - Generates build manifest
kernova start
Start the production server (must run kernova build first).
kernova startkernova start --port 8080kernova start --agents-only| Flag | Default | Description |
|---|---|---|
--port | 3000 | Frontend port |
--agent-port | 4555 | Agent backend port |
--agents-only | — | Only start agent backend |
kernova deploy
Deploy to Kernova Cloud or generate deploy artifacts.
kernova deploy # Deploy to Kernova Cloudkernova deploy --agents-only # Deploy only agentskernova deploy --app-only # Deploy only frontendkernova deploy --region eu-west-1 # Deploy to specific regionkernova deploy docker # Generate Dockerfilekernova deploy node # Generate Node.js entry| Flag | Description |
|---|---|
--agents-only | Deploy only the agent backend |
--app-only | Deploy only the frontend |
--region | Deploy region (us-east-1, eu-west-1, etc.) |
docker | Generate Dockerfile for self-hosting |
node | Generate Node.js production entry |
kernova login
Authenticate with Kernova Cloud.
kernova login # Opens browser for key creationkernova login --key kn_live_xxxxx # Use existing keyCredentials are saved to ~/.kernova/credentials.json.
kernova logout
Remove saved Kernova Cloud credentials.
kernova logoutkernova init
Create a legacy project (agents-only, no frontend). Use kernova create for full-stack projects.
kernova init my-agent-appkernova serve
Start the agent runtime with the Gateway API (legacy mode).
kernova servekernova serve --port 4200kernova studio
Open the Kernova Studio dashboard.
kernova studiokernova studio --port 4200kernova agent
Manage agent definitions.
kernova agent create my-agent # Create a new agent filekernova agent list # List registered agentskernova agent inspect my-agent # Show agent detailskernova status
Show the runtime status.
kernova statusShows: instance ID, environment, registered agents, providers, memory status.