Manage

CLI

Last updated January 2026

Create and deploy projects from the command line. The CLI works from an infra.json, the declarative definition of your infrastructure, so it pairs naturally with your editor and your coding agent.

Installation

$curl http://spawned.sh | bash

A typical workflow

spawned login                 # authenticate
spawned init my-project       # create a project
 
# Ask coding agent to use the Spawned CLI to configure your projects infrastructure 
 
spawned get my-project        # view the project and its outputs

apply uploads the infra.json from the current directory unless you point it elsewhere. Most commands accept a project as name, org/name, or id.

Commands

CommandDescription
initCreate a new project and write a starter infra.json
validateValidate an infra.json without applying it
applyApply an infra.json to a project to provision it
listList your projects
getGet a project and its deployment outputs
logsStream runtime logs from a component
buildsList a project’s builds and view build logs
uploadUpload a file to a Bucket component
exportExport a project’s generated files
schemaPrint the infrastructure schema as JSON
accountsManage connected cloud accounts
clusterManage Kubernetes clusters
orgManage organizations
apikeysManage API keys
reposList GitHub repos available through the GitHub App
configManage CLI defaults
login, logoutSign in and out of Spawned

Many commands have subcommands and options. Run spawned <command> --help for details.

Flags

FlagDescription
-h, —helpHelp for a command
—org <slug>Scope the command to an organization
-v, —versionShow the CLI version
    CLI