Skip to content

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 current
directory_defaults:
/home/user/projects/api:
space: "11111111"

Fields

FieldTypeDescription
workspacestringDefault workspace (team) ID. Set during auth login.
spacestringDefault space ID. Set via space select.
sprint_folderstringFolder ID containing sprint lists. Auto-detected or set via --folder.
editorstringEditor command for interactive descriptions and comments. Falls back to $EDITOR.
promptstringControls interactive prompts. Set to "enabled" by default.
aliasesmapCustom command aliases. Keys are alias names, values are the full command string.
directory_defaultsmapPer-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:

FieldTypeDescription
spacestringSpace 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 12345

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

VariableDescription
CLICKUP_CONFIG_DIROverride the config directory path. Default: ~/.config/clickup.
CLICKUP_CACHE_DIROverride the cache directory path. Default: ~/.cache/clickup.

When CLICKUP_CONFIG_DIR is set, the CLI reads and writes config.yml from that directory instead of the default location.

Cache directory

clickup task search keeps a local index of the workspace so it can match locally instead of paginating the API on every search. It lives in the cache directory, one file per workspace.

The cache is disposable: delete it and the next search rebuilds it. It is kept separate from the config directory for exactly that reason — the config is hand-edited and worth backing up, the cache is a rebuildable mirror.

Terminal window
clickup task search "auth" --refresh # rebuild the index now
clickup task search "auth" --no-cache # skip it for this search
clickup auth logout # delete it along with your credentials
rm -rf ~/.cache/clickup # or just remove it

If HOME is unset — some cron, CI and container environments — the cache falls back to a directory under the system temp path rather than the working directory.

Config file location

The config file path is determined as follows:

  1. If CLICKUP_CONFIG_DIR is set, use $CLICKUP_CONFIG_DIR/config.yml.
  2. Otherwise, use ~/.config/clickup/config.yml.

The directory is created automatically if it does not exist.