Aller au contenu principal
BlueForge
Commencer gratuitement

Agent pack

forge CLI (forge-control)

The control-plane CLI — apps, fleet, vault, status — from forge --help and the workspace docs.

Rendered from docs/agent-pack/forge-cli.mdrelease v0.2.0Edit on forge-git

Source: forge 2.10.7 --help (verified 2026-10-11) and the workspace CLAUDE.md files.

Deploy

  • Default path is merge to main on forge-git after CI; main-push auto-deploys, feature branches skip.
  • Two shapes, one trigger (measured 2026-11-20 across the fleet): either the platform's build webhook watches main and deploys (forge-auth, property-platform, most repos — forge app history <slug> shows the rows with SOURCE=webhook), or the repo's own push workflow fires that webhook for it (construction-os-platform's .gitea/workflows/deploy.yml runs on push: [main, staging] and POSTs https://forge.blueforge.studio/api/webhook). Either way the merge to main is the trigger and forge app-deploy by hand is only for an explicit rerun, preview or hot-fix. The difference shows up only when a deploy does not happen: in the second shape the repo's own CI is the thing that failed — look at it before deploying anything by hand.
  • A repo can also ship its own deploy workflow that calls forge app-deploy <slug> --wait itself (it used to be property-platform's; those workflows are gone, and the registry shows webhook-sourced deploys instead). Read the repo's own docs/DEPLOYMENT.md before assuming a shape — a stale guide is a known trap here (property-platform's §9 documented deploy workflows that had already been deleted).
  • Explicit rerun / hot-fix: forge app-deploy --server --no-dns from the repo root. --from-git builds the pushed tip of the branch checked out, so run it from a main checkout and confirm the commit with forge app deployment <id>.
  • --no-dns is not honoured server-side: the worker's DNS drift correction can repoint live records. For migrations set dns.enabled:false in the config instead.
  • --preview is a status label, not isolation (measured 2026-11-11 from @blueforge/deploy-pipeline dispatch.ts, by the forge-git session): same host, same stages, same Caddy/DNS writes — only the terminal status differs (preview-deployed instead of deployed). It does not select an env (--env does). For no public surface use --no-public (drops caddy.routes + dns.cnames); for database preview branches use forge preview <branch> — a separate subsystem (promote/snapshots). Honoured only by the v2 pipeline; the v1 fall-through parses it and ignores it.
  • Workspace-mode deploys take ~20+ min and are silent while building on the host. A queued/delayed deploy with a reset clock is congestion; redeploying only adds to the queue.

Inspect and operate

forge app status <slug> [--watch 5], app list, app history, app deployment <id>, app deploys <slug>, app inflight, app restart, app releases, app rollback <slug> [--to <sha>], deployments show <id>, smoke <app> <env>, app-verify [app] [--env e].

Watching a running deploy (forge >= 2.10.18; published on packr 2026-10-25, output not yet checked against a live deploy by blueforge):

  • forge app deployment <id> prints a stage line for a running webhook deploy (last stage reached, how long ago, what it waits on). --follow tails its live output; the feed is live only, not replayed, so earlier lines are not shown. Its "Phases" block lists declared phase scripts only (preBuild ... preUpload), not pipeline stages.
  • forge deployments show <id> is the full picture: Lifecycle, Stages (per-stage durations; the deploy stage's spans such as lock wait, artifact upload, container swap), Queue state and the Decisions log. Rows from before 2026-10-25 have no stage durations.
  • forge app inflight has a STAGE column for webhook rows and one line with the build queue's waiting / active / workers and its verdict. A deploy re-queued by host admission ("app host at its build limit") is contention, not a stall.
  • A build whose worker vanished is failed in about seven minutes at worst and announced as a deploy.failure event (forge-control build-worker, 2026-10-25); before that it sat building for the 90-minute timeout.

CI and promotion (in forge-control main, published from forge 2.10.42, being released; confirm with forge ci shards --help): ci pool-compare|releases|shards|shard-weights, promote status|run|hold|rollback, deployments environments. promote is behind STAGING_PROMOTE_ENABLED (off). Details and caveats: docs/agent-pack/fgit.md, section "CI improvements, 2026-11-16".

Config and registry

forge init (create blueforge.config.json), sync (push config to mission-control), vault (secrets: forge vault push --app <slug> for app-scoped values; a source=env secret resolves on the deploy host, so use source=vault), blueforge-register|unregister|sync (catalog registration), sidecar-migrate. Never print vault values.

Gotchas

  • Migrations do not apply at boot; run them by hand per the repo's docs/DEPLOYMENT.md.
  • blueforge-unregister is only for a real removal, never moves, evictions or blue/green flips.
  • A merged PR is not a deployed one: verify with forge app deployment <id> / app status.
  • Read-only exploration is fine; anything that deploys, restarts, rolls back or touches the vault needs the operator's instruction.

Restez informé

Notes de version et accès anticipé

Un e-mail à chaque nouveauté : fonctionnalités de la plateforme, nouvelles applications et invitations de lancement. Inscrivez-vous sur la liste d'attente pour accéder en avant-première à l'inscription en libre-service et aux sites de promotion.

Pas de spam. Désabonnement en un clic.