---
title: "alpacon token acl file add"
description: "Allow a token to transfer files matching a path pattern. See the command syntax, available flags, defaults, and examples before running it in your workspace."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# alpacon token acl file add

Allow a token to transfer files matching a path pattern.

## Usage

`alpacon token acl file add TOKEN [flags]`

## Key facts

- Choose `upload`, `download`, or `*` for both directions.
- The path pattern supports the `*` wildcard.
- Omitting `--username` restricts the rule to the token owner.

## Flags

| Flag | Type | Description | Default |
| --- | --- | --- | --- |
| `--action` | `string` | Allowed action: upload, download, or \* | — |
| `--groupname` | `string` | Groupname restriction: "" = no restriction, "\*" = any group | — |
| `-h, --help` | `bool` | help for add | `false` |
| `--path` | `string` | File path pattern (supports \* wildcard) | — |
| `--username` | `string` | Username restriction: "" = token owner only, "\*" = any user | — |
| `--output` | `string` | Output format: table or json | `table` |

## Examples

Allow uploading to a specific directory

```bash
alpacon token acl file add my-api-token --path "/home/deploy/*" --action upload
```

Allow downloading log files as root

```bash
alpacon token acl file add my-api-token --path "/var/log/*" --action download --username root
```

Allow all file operations for any user

```bash
alpacon token acl file add my-api-token --path "*" --action "*" --username "*" --groupname "*"
```

Source: https://docs.alpacax.com/reference/cli/token/acl-file-add/
