Skip to main content

kernel deploy <file>

Deploy an app to Kernel from the current directory. The entrypoint file and dependency manifest must live in the project root.
FlagDescription
--version <version>Use a specific version label (default: latest).
--forceOverwrite an existing version with the same label.
--env <KEY=VALUE>, -eSet environment variables (repeatable).
--env-file <file>Load environment variables from a file (repeatable).
--output json, -o jsonOutput JSONL (one JSON object per line for each deployment event).
package.json (JS/TS) or pyproject.toml (Python) must be present next to the entrypoint.

kernel deploy github

Deploy directly from a GitHub repository without cloning or pushing locally.
FlagDescription
--url <url>GitHub repository URL (e.g. https://github.com/org/repo).
--ref <ref>Git ref to deploy (branch, tag, or commit SHA).
--entrypoint <path>Entrypoint within the repo (e.g. src/index.ts).
--path <subdir>Subdirectory within the repo (e.g. apps/api).
--github-token <token>GitHub token for private repositories (PAT or installation access token).
--region <region>Deployment region (currently only aws.us-east-1a).
For private repositories, provide --github-token or set the GITHUB_TOKEN environment variable.

kernel deploy logs <deployment_id>

Stream build and runtime logs for a deployment.
FlagDescription
--follow, -fContinue streaming logs in real time.
--since <duration>, -sFetch logs starting from a relative duration (e.g. 5m, 1h, 1h30m) or timestamp (2006-01-02T15:04).
--with-timestamps, -tPrefix each line with an RFC3339 timestamp.
Log lines longer than 64 KiB are truncated. Emit bulky payloads to external storage and log references.

kernel deploy history [app_name]

Show deployment history for all apps or a specific app.
FlagDescription
--limit <n>Maximum number of deployments to return (default: 100, 0 = all).
--output json, -o jsonOutput raw JSON array.

kernel deploy get <deployment_id>

Get details for a deployment.
FlagDescription
--output json, -o jsonOutput raw JSON object.

kernel deploy delete <deployment_id>

Delete a deployment.
FlagDescription
--yes, -ySkip confirmation prompt.

kernel invoke <app> <action>

Invoke an app action. By default the CLI returns immediately after the invocation is queued.
FlagDescription
--version <version>, -vTarget a specific app version (default: latest).
--payload <json>, -pProvide a JSON payload (stringified, max 64 KB).
--payload-file <path>, -fRead the JSON payload from a file (use - for stdin).
--sync, -sWait for completion (timeout after 60 s).
--async-timeout <seconds>Timeout for async invocations (min 10, max 3600). Only applies in async mode.
--since <time>Show invocation events since the given time when following async execution.
--output json, -o jsonOutput JSONL (one JSON object per line for each invocation event).
Press Ctrl+C to cancel an in-flight invocation. The associated browser sessions are cleaned up automatically.

kernel invoke get <invocation_id>

Get an invocation.
FlagDescription
--output json, -o jsonOutput raw JSON object.

kernel invoke history

Show invocation history.
FlagDescription
--app <name>, -aFilter by app name.
--action <name>Filter by action name.
--status <status>Filter by status: queued, running, succeeded, failed.
--deployment-id <id>Filter by deployment ID.
--version <version>Filter by invocation version.
--since <time>Show invocations started since the given time.
--limit <n>Max invocations to return (default: 100).
--offset <n>Number of results to skip.
--output json, -o jsonOutput raw JSON array.

kernel invoke update <invocation_id>

Update an invocation’s status or output.
FlagDescription
--status <status>New status: succeeded or failed.
--output <json>Updated invocation output, as a JSON string.

kernel invoke browsers <invocation_id>

List browser sessions for an invocation.
FlagDescription
--output json, -o jsonOutput raw JSON array.

kernel invoke delete-browsers <invocation_id>

Delete browser sessions for an invocation.

kernel app list

List deployed app versions.
FlagDescription
--name <app_name>Filter by app name.
--version <version>Filter by version label.
--output json, -o jsonOutput raw JSON array.

kernel app history <app_name>

Show deployment history for a specific app.
FlagDescription
--limit <n>Maximum number of deployments to return (default: 100, 0 = all).
--output json, -o jsonOutput raw JSON array.

kernel app delete <app_name>

Delete an app and all its deployments.
FlagDescription
--version <version>Only delete deployments for this version (default: all versions).
--yes, -ySkip confirmation prompt.

kernel logs <app_name>

Tail app logs.
FlagDescription
--version <version>Select an app version (default: latest).
--invocation <id>, -iShow logs for a specific invocation/run. Accepts a full ID or unambiguous prefix; respects --follow if still running.
--follow, -fStream logs continuously.
--since <duration>, -sFetch logs from a duration or timestamp (same formats as kernel deploy logs).
--with-timestampsInclude timestamps in each line.
Log lines longer than 64 KiB are truncated.