---
title: fastly compute acl update
summary: Update a compute ACL
url: https://www.fastly.com/documentation/reference/cli/compute/acl/update
---

Update a compute ACL

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--acl-id` | Alphanumeric string identifying a compute ACL | Yes | - |
| `--file` | Batch update JSON file passed as file path or content, e.g. $(< batch.json) | No | - |
| `--operation` | Indicating that this entry is to be added to/updated in the ACL | No | - |
| `--prefix` | An IP prefix defined in Classless Inter-Domain Routing (CIDR) format, i.e. a valid IP address (v4 or v6) followed by a forward slash (/) and a prefix length (0-32 or 0-128, depending on address family) | No | - |
| `--action` | The action taken on the IP address | No | - |

## Global options

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--help` | Show context-sensitive help. | No | - |
| `--accept-defaults` | Accept default options for all interactive prompts apart from Yes/No confirmations | No | - |
| `--auto-yes` | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | No | - |
| `--debug-mode` | Print API request and response details (NOTE: can disrupt the normal CLI flow output formatting) | No | - |
| `--non-interactive` | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | No | - |
| `--quiet` | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | No | - |
| `--token` | Fastly API token, or name of a stored auth token (use 'default' for the default token). Falls back to FASTLY_API_TOKEN env var | No | - |
| `--verbose` | Verbose logging | No | - |

