Skip to content

kcp state version

kcp state version

Report the metadata of a kcp-state.json file

Synopsis

Reads only the top-level metadata of a state file (schema version, KCP build, created/updated timestamps, migration provenance) using lenient JSON parsing, so it works on state files from any KCP version — even ones that cannot be fully loaded by the current build.

kcp state version [flags]

Examples

  # Report the schema version and build metadata of a state file
  kcp state version --state-file kcp-state.json

Options

  -h, --help                help for version
      --state-file string   Path to the state file to inspect (required)

Options inherited from parent commands

      --verbose   Enable verbose logging to console

SEE ALSO

  • kcp state - Operate on kcp-state.json files