Recalculate Command

The recalculate command forces a recalculation of the system state.

Usage

ocuroot recalculate [flags]

Description

The recalculate command triggers a fresh calculation of the system state. This is useful when:

  • State might be out of sync
  • Changes aren’t being detected
  • Troubleshooting deployment issues
  • Verifying system consistency

Flags

  • --environment: Recalculate specific environment(s)
  • --package: Recalculate specific package(s)

Examples

# Recalculate entire system state
ocuroot recalculate

# Recalculate specific environment
ocuroot recalculate --environment production

# Recalculate specific package
ocuroot recalculate --package frontend

Process

During recalculation, the system:

  1. Evaluates current state
  2. Checks all dependencies
  3. Updates package states
  4. Verifies environment configurations
  5. Updates deployment status
  • sync: Synchronize state with server
  • review: Review system changes