alpacon token acl
The acl command allows you to configure access control for API tokens, specifying which commands can be executed by each token. It supports creating, listing, and modifying ACL rules to fine-tune command execution permissions based on your security requirements.
alpacon token acl [flags]
alpacon token acl [command]
Available Commands
add- Define access to specific commands for API tokensdelete- Remove an existing command ACL from the API tokenls- Display all command ACLs for an API token
Options
-h, --help help for acl
Examples
List all ACLs for a token
alpacon token acl ls [TOKEN_ID_OR_NAME]
Add a new ACL rule
Interactive mode:
alpacon token acl add [TOKEN_ID_OR_NAME]
With specific token and command:
alpacon token acl add --token=[TOKEN_ID_OR_NAME] --command=[COMMAND]
Available flags for add:
-c, --command string- Command-t, --token string- Token ID
Delete an ACL rule
Delete by command ACL ID:
alpacon token acl delete [COMMAND_ACL_ID]
alpacon token acl rm [COMMAND_ACL_ID]
Delete by token and command:
alpacon token acl rm --token=[TOKEN_ID_OR_NAME] --command=[COMMAND]
Aliases for delete: delete, rm