---
title: "alpacon token acl"
description: "Manage server, command, and file access rules for tokens. 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

Manage server, command, and file access rules for tokens.

## Usage

```text
alpacon token acl [flags]
alpacon token acl [command]
```

## Key facts

- Use `server` rules to choose accessible servers.
- Use `command` rules for remote commands and `file` rules for file transfers.
- Without a rule for an access type, that access is denied.

## Flags

| Flag | Type | Description | Default |
| --- | --- | --- | --- |
| `-h, --help` | `bool` | help for acl | `false` |
| `--output` | `string` | Output format: table or json | `table` |

## Examples

List server access rules

```bash
alpacon token acl server ls my-api-token
```

## Access types

| Type | Controls | Used for |
| --- | --- | --- |
| `command` | Shell commands | `alpacon exec` and non-interactive `alpacon websh` |
| `server` | Target servers | Websh, exec, and cp operations on that server |
| `file` | File paths and transfer direction | `alpacon cp` |

Command ACLs apply to `alpacon exec` and non-interactive `alpacon websh SERVER "command"`. They do not restrict interactive `alpacon websh SERVER` sessions.

## Related commands

  
    Manage command ACL rules (websh/exec)
  
  
    Manage server ACL rules
  
  
    Manage file ACL rules (cp)

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