ti fs-vault create-grant
Creates a time-limited delegated grant for one agent and scope.
Syntax
ti fs-vault create-grant
--agent-id <string>
--permission <string>
--scope <string>
--ttl <duration>
[--dry-run]
[--file-system-id <string>]
[--fs-token <string>]
[--help]
[--label-hint <string>]
[--token-only]
[--version]
Options
--agent-id <string>: Agent ID for the delegated grant. [required]--permission <string>: Grant permission:readorwrite. [required]--scope <string>: Vault scope such as secret or secret/field; repeatable. [required]--ttl <duration>: Grant time to live, for example,1h. [required]--dry-run: Validate the request without applying changes.--file-system-id <string>: Select the file system. You can also setTI_FS_FILE_SYSTEM_ID.--fs-token <string>: Set the file system user token. If omitted, usesTI_FS_TOKEN.--help: Display help information.--label-hint <string>: Optional grant label hint.--token-only: Print only the delegated bearer token.--version: Display version information.
For options shared by all commands, see Global options.
Examples
Create a temporary read grant:
# Limit an agent to one secret field for ten minutes. ti fs-vault create-grant --file-system-id <file-system-id> --agent-id deploy-agent --scope db-prod/DB_URL --permission read --ttl 10mReturn only the delegated token:
# Produce token-only output for injection into an isolated CI job. ti fs-vault create-grant --file-system-id <file-system-id> --agent-id ci-agent --scope api-dev/TOKEN --permission read --ttl 5m --token-only