Skip to content

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:

Terminal window
npm install -g @kernova/cli

Or use it via npx (no install needed):

Terminal window
npx @kernova/cli dev

Commands

kernova create <name>

Scaffold a new full-stack project.

Terminal window
kernova create my-app
kernova create my-app --template multi-agent
kernova create my-app --no-frontend
kernova create my-app --react # Use Vite instead of Next.js
kernova create my-app --no-install # Skip npm install
FlagDescription
--template, -tTemplate: default, minimal, multi-agent
--no-frontendAgents only (no React/Next.js)
--reactUse Vite + React instead of Next.js
--no-installDon’t run npm install

kernova dev

Start the development server.

Terminal window
kernova dev
kernova dev --port 4000
kernova dev --agent-port 5000
kernova dev --agents-only
kernova dev --app-only
FlagDefaultDescription
--port, -p3000Frontend port
--agent-port4555Agent 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.

Terminal window
kernova build
kernova build --agents-only
kernova build --app-only
kernova build --verbose
FlagDescription
--agents-onlyOnly compile agents
--app-onlyOnly build frontend
--verbose, -vShow full build output

This:

  1. Validates kernova.config.ts
  2. Compiles agents (TypeScript → JavaScript)
  3. Builds frontend (next build)
  4. Generates build manifest

kernova start

Start the production server (must run kernova build first).

Terminal window
kernova start
kernova start --port 8080
kernova start --agents-only
FlagDefaultDescription
--port3000Frontend port
--agent-port4555Agent backend port
--agents-only—Only start agent backend

kernova deploy

Deploy to Kernova Cloud or generate deploy artifacts.

Terminal window
kernova deploy # Deploy to Kernova Cloud
kernova deploy --agents-only # Deploy only agents
kernova deploy --app-only # Deploy only frontend
kernova deploy --region eu-west-1 # Deploy to specific region
kernova deploy docker # Generate Dockerfile
kernova deploy node # Generate Node.js entry
FlagDescription
--agents-onlyDeploy only the agent backend
--app-onlyDeploy only the frontend
--regionDeploy region (us-east-1, eu-west-1, etc.)
dockerGenerate Dockerfile for self-hosting
nodeGenerate Node.js production entry

kernova login

Authenticate with Kernova Cloud.

Terminal window
kernova login # Opens browser for key creation
kernova login --key kn_live_xxxxx # Use existing key

Credentials are saved to ~/.kernova/credentials.json.


kernova logout

Remove saved Kernova Cloud credentials.

Terminal window
kernova logout

kernova init

Create a legacy project (agents-only, no frontend). Use kernova create for full-stack projects.

Terminal window
kernova init my-agent-app

kernova serve

Start the agent runtime with the Gateway API (legacy mode).

Terminal window
kernova serve
kernova serve --port 4200

kernova studio

Open the Kernova Studio dashboard.

Terminal window
kernova studio
kernova studio --port 4200

kernova agent

Manage agent definitions.

Terminal window
kernova agent create my-agent # Create a new agent file
kernova agent list # List registered agents
kernova agent inspect my-agent # Show agent details

kernova status

Show the runtime status.

Terminal window
kernova status

Shows: instance ID, environment, registered agents, providers, memory status.