Skip to Content
New to Genbox? Check out our Getting Started guide
CommandsOverview

Commands Overview

The Genbox CLI provides a comprehensive set of commands for managing cloud development environments and AI sessions.

Command Structure

gb <command> [arguments] [options]

Both genbox and gb are valid entry points. Use gb for brevity.

Command Categories

AI Sessions

CommandShortcutDescription
sessiongbsManage AI sessions (list, watch, logs, send)
claudegbcStart or attach to Claude AI session
geminigbgStart or attach to Gemini AI session
codexgbxStart or attach to Codex AI session (Coming Soon)
opencodegboStart or attach to OpenCode AI session (Coming Soon)
cursorgbrStart or attach to Cursor AI session (Coming Soon)

Tip: Add d to any shortcut for --direct mode (e.g., gbcd = gb claude --direct)

See Shortcuts Reference for all shortcuts.

Core Commands

CommandDescription
createCreate a new Genbox environment
listList all environments
destroyDelete an environment
connectSSH into an environment
statusCheck status and services

Lifecycle Commands

CommandDescription
startStart a stopped environment
stopStop (pause) an environment
restartRestart services
extendExtend lifetime / disable auto-destroy
rebuildRebuild with updated config

Development Commands

CommandDescription
urlsShow service URLs
forwardSet up port forwarding
pushPush local changes
run-promptRun Claude Code prompt remotely

Database Commands

CommandDescription
db syncSync database from staging/production
restore-dbRestore local MongoDB to environment
backupCreate a backup
backupsList and manage backups

Configuration Commands

CommandDescription
initInitialize genbox.yaml
configInspect configuration
profilesManage profiles
resolveCompute final configuration
validateValidate configuration files

Account Commands

CommandDescription
loginAuthenticate with Genbox
balanceShow credit balance

Help & Utilities

CommandDescription
helpShow detailed help and examples
doctorCheck CLI setup and diagnose issues
updateUpdate CLI to latest version
completionGenerate shell completions

Global Options

All commands support these global options:

-v, --version Show version and status info -h, --help Show help for command --debug Enable debug output

Getting Help

For any command, add --help to see detailed usage:

gb create --help gb status --help

For interactive help with examples:

gb help gb help create
Last updated on