Skip to content

xops credential store restore

以下列出命令用法和可用选项。已安装版本支持的参数以 --help 为准。

text
For new key-file wrapping material, a missing configured key_file is generated as 32 random bytes with mode 0600. Existing valid key files are reused without changes. The parent directory must exist. Unlock and resume require the original key file.

Usage:
  xops credential store restore <storeID> [flags]

Flags:
      --backup-config string           Trusted schema-v2 backup configuration (required)
      --from string                    Explicit source vault working directory
  -h, --help                           help for restore
      --json                           Print metadata-only JSON result
      --maintenance-timeout duration   Total maintenance deadline (default 30m0s)
      --source-key-file string         Source key file path
      --source-unlock string           Source mode: prompt or key-file

Global Flags:
      --color string       ANSI 颜色输出 (auto=自动检测管道/重定向, never=禁用, always=强制启用)
      --debug              开启调试模式 (等同于 --log-level=debug)
      --lang string        界面语言 (zh/en)
      --log-level string   设置内部诊断日志级别 (debug, info, warn, error)

MIT License