BetaBạn đang đọc tài liệu kênh beta (
3.2.0-beta.10). Tính năng có thể thay đổi trước bản stable tiếp theo.Chuyển sang stable →sync
ak secrets sync
Đồng bộ secret giữa các máy của bạn với mã hóa đầu cuối (preview).
Đồng bộ secret giữa các máy của bạn với mã hóa đầu cuối (preview).
Dùng ak secrets sync với đối số và tùy chọn dưới đây. Phần help nguyên bản giữ nguyên thuật ngữ, cú pháp, tác động và điều kiện thực thi của CLI để đối chiếu chính xác.
Contract và help của lệnh
Sync secrets across your machines with end-to-end encryption (preview)
Synopsis
Opt-in. Values, names and metadata are encrypted on this device before upload; the server cannot read them. With sync off, ak secrets makes no network requests. resolve always reads this device's local store and never waits for the network. Changes sync when ak secrets sync now runs, or continuously under --watch.
Examples
ak secrets sync enable --recovery-kit-out ./vault-recovery-kit.txt
ak secrets sync now
ak secrets sync status --jsonOptions
-h, --help help for sync
--json Emit machine-readable JSON (implies --no-interactive)
--no-interactive Disable interactive prompts (CI-safe)
-q, --quiet Suppress non-error output on stderr
-V, --verbose Extra diagnostic output on stderr (loses to --quiet)
-y, --yes Assume yes for all promptsSEE ALSO
- ak secrets - Manage named secret values (API keys, tokens)
- ak secrets sync disable - Stop syncing on this device; local secrets stay
- ak secrets sync enable - Create a synced vault from this device's secrets
- ak secrets sync now - Run one sync cycle now, or keep syncing with --watch
- ak secrets sync recover - Restore the vault on this device with the vault password or recovery key
- ak secrets sync rotate-recovery - Replace the recovery key, and optionally the vault password
- ak secrets sync settle - Resolve a sync conflict by choosing which value to keep
- ak secrets sync status - Show this device's sync state without contacting the server