Getting Started¶
Install¶
Or build from source:
Verify: bear --version
Requirements: Git (for change detection). Go 1.21+ only if building from source.
First Project¶
1. Initialize¶
Creates bear.config.yml with auto-detected languages.
2. Configure¶
Presets
Run bear preset list to see all available languages and targets.
3. Add Artifacts¶
Each deployable service gets a bear.artifact.yml:
services/api/bear.artifact.yml
name: api
target: cloudrun
depends: [shared-lib]
vars:
PROJECT: my-gcp-project
Libraries (validate-only, no deploy) get a bear.lib.yml:
4. Validate¶
5. Deploy¶
Done. Bear updates bear.lock.yml and auto-commits it with [skip ci].
What Happens Under the Hood¶
- Detect — Compare each artifact against its last deployed commit (from
bear.lock.yml) - Validate — Run language steps (tests, lint, build) in parallel
- Deploy — Run target steps (docker build, push, deploy) in parallel
- Lock — Update
bear.lock.ymlwith new commit hashes
Next¶
- Configuration — All config options
- CI/CD — Automate with GitHub Actions, GitLab CI, or Jenkins
- Commands — Full command reference