CLI Commands
import
Import state or configuration
Import Command
The import
command allows you to import state or configuration data into your Ocuroot system.
Usage
Description
The import command loads state or configuration data into your Ocuroot system. This is useful for:
- Restoring from backups
- Migrating between environments
- Setting up new instances
- Testing configurations
Arguments
file
: Path to the file containing the state or configuration to import
Flags
--format
: Specify input format (json, yaml)--force
: Override existing configurations
Examples
Validation
The import command performs several validation checks:
- File format validation
- Schema validation
- Resource reference validation
- Dependency checks
Related Commands
export
: Export state or configurationsync
: Synchronize state with server