Skip to main content

bellwether upload

Upload a baseline to Bellwether Cloud for drift tracking.

Synopsis

bellwether upload [options]

Description

The upload command uploads your local baseline to Bellwether Cloud, enabling historical tracking and CI/CD drift detection.

Options

OptionDescriptionDefault
--baseline <path>Path to baseline filebellwether-baseline.json
--ciCI mode: exit 1 on breaking driftfalse
--fail-on-driftExit with error if any drift detectedfalse
--branch <name>Branch name for this baselineCurrent git branch
--commit <sha>Commit SHA for this baselineCurrent git commit

Examples

Basic Upload

# First, generate a baseline
bellwether interview --save-baseline npx your-server

# Upload to cloud
bellwether upload

CI/CD Upload

bellwether upload --ci --fail-on-drift

Upload with Git Info

bellwether upload \
--branch main \
--commit abc123

CI/CD Integration

GitHub Actions

- name: Interview and Upload
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
BELLWETHER_SESSION: ${{ secrets.BELLWETHER_SESSION }}
run: |
bellwether interview --save-baseline npx your-server
bellwether upload --ci --fail-on-drift

GitLab CI

bellwether:
script:
- bellwether interview --save-baseline npx your-server
- bellwether upload --ci --fail-on-drift
variables:
OPENAI_API_KEY: $OPENAI_API_KEY
BELLWETHER_SESSION: $BELLWETHER_SESSION

Upload Response

Successful upload:

Uploaded baseline v12 to my-mcp-server

Changes from v11:
+ New tool: delete_file
~ read_file: error handling improved

View at: https://bellwether.sh/projects/proj_abc123/baselines/12

Exit Codes

CodeMeaning
0Success - baseline uploaded
1Drift detected (with --fail-on-drift)
2Error - upload failed

See Also