autonomy config migrate

Migrate a config file to the current schema version (v1)

Synopsis

Detects the schema version of a config file and migrates it to v1.

Supported source versions:
  v0 / unversioned — pre-unified format with legacy section and field names:
    node.*              → identity.*
    server.*            → orchestrator.*
    logging.*           → observability.*
    metrics.*           → observability.*
    relay.success       → relay.success_condition
    relay.workers       → relay.worker_count
    relay.dial_timeout  → relay.dial_timeout_seconds
    relay.ack_timeout   → relay.ack_timeout_seconds
    relay.peers[].{id,address} → relay.known_peers[].{peer_id,addr}

  v1 — already current; passed through without modification.

The output format defaults to the same format as the input file.
Use --format to override (yaml or toml).

Dry-run mode (--dry-run) prints the list of changes without writing output.

Examples:
  # Migrate in place (overwrite):
  autonomy config migrate --input autonomy.yaml --output autonomy.yaml

  # Preview changes without writing:
  autonomy config migrate --input autonomy.yaml --dry-run

  # Migrate and convert format to TOML:
  autonomy config migrate --input autonomy.yaml --output autonomy.toml --format toml

Usage

autonomy config migrate [flags]

Options

      --dry-run         print the list of changes without writing any output
      --format string   output format override: "yaml" or "toml" (default: same as input)
  -i, --input string    input config file (use "-" for stdin; default: stdin)
  -o, --output string   output file (use "-" or omit for stdout)

See also