BlueForge Docs

forge app deploy

Deploy an app via git SHA or artifact upload.

Command

forge app deploy <app-id> [--sha <git-sha>] [--file <path>] [--env <name=value>]

Arguments

NameTypeRequiredNotes
app-id
stringyesApp ID (
app_*
)

Flags

FlagTypeDefaultNotes
--sha
stringGit SHA for git-triggered deploy
--file
pathPath to artifact tarball for upload deploy
--env
string[]Environment variables (repeatable:
--env KEY=val
)

Either

--sha
or
--file
must be provided, but not both.

Examples

Git-triggered deploy:

forge app deploy app_xxxxx --sha a1b2c3d

Artifact upload:

forge app deploy app_xxxxx --file ./dist/app.tar.gz --env NODE_ENV=production

Errors

Exit codeMeaning
0Deploy triggered successfully
1Invalid input or missing --sha/--file
2Auth failure
3App not found
4Build failed

Pitfalls

  • Either --sha or --file — you must provide one. Providing both or neither is an error.
  • Async build — the command returns as soon as the build is queued. Use
    forge app deploy-status <id>
    to track progress.
  • Large artifacts — file uploads over 100 MB may timeout. Use git-triggered deploys for large apps.

See also

{auto-injected}

Tested against

{auto-injected}