alpacon token acl file add
Define which file paths an API token is allowed to access via alpacon cp. Path supports wildcard matching (* = any characters). Action must be one of: upload, download, or * (both).
alpacon token acl file add TOKEN [flags]
Options
--path string File path pattern (supports * wildcard)
--action string Allowed action: upload, download, or * (both)
--username string Username restriction: "" = token owner only, "*" = any user
--groupname string Groupname restriction: "" = no restriction, "*" = any group
-h, --help help for add
Examples
Allow uploading to a specific directory:
alpacon token acl file add my-api-token --path "/home/deploy/*" --action upload
Allow downloading log files as root:
alpacon token acl file add my-api-token --path "/var/log/*" --action download --username root
Allow all file operations for any user:
alpacon token acl file add my-api-token --path "*" --action "*" --username "*" --groupname "*"