mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-24 13:25:26 +02:00
Co-authored-by: Daria Staferova <daria.staferova@n8n.io> Co-authored-by: Nikhil Kuriakose <nikhil.kuriakose@n8n.io>
36 lines
485 B
Markdown
36 lines
485 B
Markdown
# variable
|
|
|
|
Manage n8n environment variables.
|
|
|
|
## `variable list`
|
|
|
|
List all variables.
|
|
|
|
```bash
|
|
n8n-cli variable list
|
|
```
|
|
|
|
## `variable create`
|
|
|
|
Create a variable.
|
|
|
|
```bash
|
|
n8n-cli variable create --key=API_ENDPOINT --value=https://api.example.com
|
|
```
|
|
|
|
## `variable update`
|
|
|
|
Update a variable's value.
|
|
|
|
```bash
|
|
n8n-cli variable update var-1 --key=API_ENDPOINT --value=https://new-api.example.com
|
|
```
|
|
|
|
## `variable delete`
|
|
|
|
Delete a variable.
|
|
|
|
```bash
|
|
n8n-cli variable delete var-1
|
|
```
|