Configuration
The CLI stores configuration in a YAML file at ~/.config/clickup/config.yml. This file is created automatically during clickup auth login.
Config file reference
workspace: "1234567"space: "89012345"sprint_folder: "67890123"editor: "vim"prompt: "enabled"aliases: v: task view s: sprint currentdirectory_defaults: /home/user/projects/api: space: "11111111"Fields
| Field | Type | Description |
|---|---|---|
workspace | string | Default workspace (team) ID. Set during auth login. |
space | string | Default space ID. Set via space select. |
sprint_folder | string | Folder ID containing sprint lists. Auto-detected or set via --folder. |
editor | string | Editor command for interactive descriptions and comments. Falls back to $EDITOR. |
prompt | string | Controls interactive prompts. Set to "enabled" by default. |
aliases | map | Custom command aliases. Keys are alias names, values are the full command string. |
directory_defaults | map | Per-directory configuration overrides (see below). |
Per-directory defaults
You can configure different spaces for different project directories. When you run a command from a directory that has an entry in directory_defaults, the CLI uses that directory’s space instead of the global default.
directory_defaults: /home/user/projects/api: space: "11111111" /home/user/projects/frontend: space: "22222222"Each directory entry supports the following fields:
| Field | Type | Description |
|---|---|---|
space | string | Space ID to use when running commands from this directory. |
The CLI checks the current working directory against the directory_defaults map. If a match is found, the directory-specific values override the global settings.
Custom aliases
Define aliases to create shortcuts for frequently used commands:
aliases: v: task view s: sprint current tl: task list --list-id 12345GitHub link storage
The link commands store GitHub links in the task’s markdown_description field, rendered as rich text in the ClickUp UI. See the GitHub linking strategy section of the git integration guide for format details and examples.
Environment variables
| Variable | Description |
|---|---|
CLICKUP_CONFIG_DIR | Override the config directory path. Default: ~/.config/clickup. |
When CLICKUP_CONFIG_DIR is set, the CLI reads and writes config.yml from that directory instead of the default location.
Config file location
The config file path is determined as follows:
- If
CLICKUP_CONFIG_DIRis set, use$CLICKUP_CONFIG_DIR/config.yml. - Otherwise, use
~/.config/clickup/config.yml.
The directory is created automatically if it does not exist.