Build Command

The build command runs the build function for a specified package and returns the set of outputs generated through the build process. This is an offline command that allows you to test your build logic locally before committing changes.

Usage

ocuroot build [package]

Description

The build command uses the local state of your repository, including any uncommitted changes, to build the specified package. This allows you to test and validate your build logic without affecting the server state. The results of the build will not be stored on the Ocuroot server.

Examples

# Build a specific package locally
ocuroot build MyPackage

# Build all modified packages
ocuroot build

Flags

  • --format: Specify the output format (optional)

Output

The command returns the build outputs generated during the build process. These outputs can include:

  • Build artifacts
  • Build metadata
  • Any errors or warnings encountered during the build
  • deploy: Deploy a built package to an environment
  • review: Run review functions for modified files