# cscli allowlists add

## cscli allowlists add[​](#cscli-allowlists-add "Direct link to cscli allowlists add")

Add content to an allowlist

TEXTCOPY

```
cscli allowlists add [allowlist_name] [value...] [-e expiration] [-d comment] [flags]
```

### Examples[​](#examples "Direct link to Examples")

TEXTCOPY

```
cscli allowlists add my_allowlist 1.2.3.4 2.3.4.5 -e 1h -d "my comment"
```

### Options[​](#options "Direct link to Options")

TEXTCOPY

```
  -d, --comment string        comment for the value
  -e, --expiration duration   expiration duration (default 0s)
  -h, --help                  help for add
```

### Options inherited from parent commands[​](#options-inherited-from-parent-commands "Direct link to Options inherited from parent commands")

TEXTCOPY

```
      --color string    Output color: yes, no, auto (default "auto")
  -c, --config string   path to crowdsec config file (default "/etc/crowdsec/config.yaml")
      --debug           Set logging to debug
      --error           Set logging to error
      --info            Set logging to info
  -o, --output string   Output format: human, json, raw
      --trace           Set logging to trace
      --warning         Set logging to warning
```

### SEE ALSO[​](#see-also "Direct link to SEE ALSO")

* [cscli allowlists](https://docs.crowdsec.net/docs/next/cscli/cscli_allowlists.md) - Manage centralized allowlists
