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.

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:

  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.