Server Command

The server command starts and manages the Ocuroot server instance.

Usage

ocuroot server [flags]

Description

The server command starts an Ocuroot server instance that:

  • Handles API requests
  • Manages state
  • Coordinates deployments
  • Processes builds
  • Monitors environments

Flags

  • --port: Specify server port (default: 8080)
  • --host: Specify host address
  • --config: Path to server configuration file
  • --log-level: Set logging level

Examples

# Start server with default settings
ocuroot server

# Start server on specific port
ocuroot server --port 9000

# Start with custom configuration
ocuroot server --config server-config.yaml

# Start with debug logging
ocuroot server --log-level debug

Configuration

The server can be configured through:

  • Command line flags
  • Configuration file
  • Environment variables

Key configuration options include:

  • Network settings
  • Authentication
  • Storage options
  • Logging preferences
  • Resource limits
  • generate-server-secret: Generate server secret