Deploy Command

The deploy command is used to deploy a specific build of a package to a target environment. This is an offline command that lets you test your deployment logic locally without affecting the server state.

Usage

ocuroot deploy [package] [build-id] [environment]

Description

The deploy command takes a package build and deploys it to the specified environment. It manages the deployment process locally, allowing you to test and validate your deployment configuration and logic before committing changes. This is useful for:

  • Testing deployment configurations
  • Validating environment-specific settings
  • Debugging deployment issues
  • Verifying deployment logic works as expected

Arguments

  • package: The name of the package to deploy
  • build-id: The ID of the build to deploy
  • environment: The target environment for deployment

Examples

# Test deploying a specific build to production environment
ocuroot deploy MyPackage ABC123 production

# Test deploying a build to staging environment
ocuroot deploy MyPackage ABC123 staging
  • build: Build a package
  • environment: Manage deployment environments
  • sync: Synchronize your local state with the Ocuroot server