Skip to content
Cloud
Docs

Build CLI reference

Source: @socra/build-cli@0.2.2.

This reference includes every command, argument, and option declared by this released package. Defaults and accepted values are included where the package declares them. Command-specific validation and permissions also apply; see the API reference for resource contracts.

Use socra build --help, or append --help to any command, to inspect the locally installed version.

socra build

Build source into immutable OCI artifacts

CommandPurpose
socra build createSnapshot the current directory and wait for its OCI artifact
socra build getShow a build
socra build listList builds for a project
socra build logsPrint build logs
socra build cancelCancel a queued or running build
socra build artifactContent-addressed OCI artifacts

socra build create

Snapshot the current directory and wait for its OCI artifact

Text
socra build create [options]

Options

OptionInputDescription
--projectValueSocra project id (or SOCRA_PROJECT)
--profileValuebun-web, bun-service, or docker
--rootValuePackage root within the repository
--nameValueArtifact/workload name
--asyncPresence flagReturn immediately after queuing

socra build get

Show a build

Text
socra build get <id>

Arguments

ArgumentRequiredDescription
idYesBuild id

socra build list

List builds for a project

Text
socra build list [options]

Options

OptionInputDescription
--projectValueSocra project id
--statusValueBuild status
--limitValuePage size
--afterValuePage cursor

socra build logs

Print build logs

Text
socra build logs <id>

Arguments

ArgumentRequiredDescription
idYesBuild id

socra build cancel

Cancel a queued or running build

Text
socra build cancel <id>

Arguments

ArgumentRequiredDescription
idYesBuild id

socra build artifact

Content-addressed OCI artifacts

CommandPurpose
socra build artifact getShow an artifact
socra build artifact listList artifacts for a project

socra build artifact get

Show an artifact

Text
socra build artifact get <id>

Arguments

ArgumentRequiredDescription
idYesArtifact id

socra build artifact list

List artifacts for a project

Text
socra build artifact list [options]

Options

OptionInputDescription
--projectValueSocra project id
--buildValueFilter by build id
--limitValuePage size
--afterValuePage cursor

Next step

Return to the Build overview.