3.0.0-beta.15). Tính năng có thể thay đổi trước bản stable tiếp theo.Chuyển sang stable →secrets
ak secrets grants
Liệt kê các grant đã ghi cho agent.
Liệt kê các grant đã ghi cho agent.
Dùng ak secrets grants 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
List recorded agent grants
Synopsis
Show every grant recorded under {AGENTKIT_HOME}/secrets/grants.json, which is ~/.agentkit unless AGENTKIT_HOME says otherwise. Grants whose expiry has passed are pruned as they are read, so what this prints is what would actually apply right now. A block outranks any allow on the same scope.
Effects: Reads the grants file. Rows that have already expired are compacted out of it as housekeeping, so a listing can rewrite the file even though it decides nothing. Stored secret values are not read.
Exit status: 0 success, 1 command failure, 2 invalid flags or arguments
ak secrets grants [flags]Examples
ak secrets grants # table
ak secrets grants --json # machine-readableOptions
-h, --help help for grants
--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)