Skip to content

Commands

Command Description
bear init Initialize a new project
bear validate [artifacts...] Run validation steps against the working tree; no environment, no plan, no deployment
bear plan <environment> [artifacts...] Detect changes and decide what would deploy; writes a plan but runs no steps; an environment declared in bear.config.yml is required even when nothing will deploy
bear apply Build and deploy the plan
bear doctor Validate config and dependencies
bear list List all artifacts
bear preset Manage presets

The command chain is doctor (configuration) → validate (merge request) → plan (deployment review and approval) → apply (execution). bear plan runs no commands at all — it is a pure diff against bear.lock.yml. bear apply is the only command that runs anything: for every deploying artifact it runs the language's build steps, then the target's deploy steps. bear validate runs those same build steps on demand, with no environment or deployment involved, so it is the way to get that assurance before merging, independent of bear apply actually running it again right before every deployment.

Global Flags

Flag Description
-d, --dir <path> Project directory (default: .)
-f, --force Force operation, ignore pins
-v, --verbose Stream subprocess output; failure diagnostics retain a bounded tail