Command-line client for YouTrack, covering the day-to-day — issues, commands, projects, users — plus the odd jobs: knowledge-base articles, agile boards, admin settings, and raw REST calls when nothing else fits. Built for people at a terminal and AI agents driving YouTrack in a pipeline.
Full documentation — installation, authentication, configuration, and a command reference — lives under docs/.
Security notice: YouTrack does not support granular token scopes; any token grants full account access. See Security before using
youtrackin pipelines or with AI agents.
macOS & Linux (install script):
curl -fsSL https://jb.gg/youtrack-cli/install | bashNew installs use ~/.local/bin without sudo; rerunning the script updates an existing unmanaged installation in place. Missing Bash/Zsh PATH entries are added automatically. Restart your shell afterward, or use the printed PATH command. Package-managed installations should be updated through their package manager.
The installers verify the downloaded archive against checksums.txt and, when gpg is installed, verify its signature against the pinned JetBrains key.
Homebrew (macOS & Linux):
brew install jetbrains/utils/youtrackWindows (Winget):
winget install JetBrains.YouTrackCLIChocolatey:
choco install youtrackcliScoop:
scoop bucket add jetbrains https://github.com/JetBrains/scoop-utils
scoop install youtrackPackage-manager releases may lag GitHub releases. If a package is unavailable, use an install script.
youtrack update upgrades the CLI through the method that installed it. Without a terminal it only reports the status; pass --yes (for example youtrack update --yes --json from an app) to upgrade anyway and get a non-zero exit code when the upgrade fails. In a terminal, the CLI also offers the update before a command runs when a newer release is out. Set YOUTRACK_NO_UPDATE=1 to turn off update checks.
Windows (PowerShell):
irm https://jb.gg/youtrack-cli/install.ps1 | iexWindows (CMD):
curl -fsSL https://jb.gg/youtrack-cli/install.cmd -o install.cmd && install.cmd && del install.cmdWindows installers use %USERPROFILE%\.local\bin and add it to the user PATH. Set YOUTRACK_INSTALL_RELEASE or YOUTRACK_INSTALL_DIR to choose a version or destination in PowerShell; CMD accepts install.cmd [version] [directory].
Alternatively, download the matching *windows_x86_64.zip or *windows_arm64.zip release archive, extract it, and add the folder to your PATH.
More installation methods (deb, rpm, go install)
Debian/Ubuntu:
curl -fsSLO https://github.com/JetBrains/youtrack-cli/releases/latest/download/youtrack_linux_amd64.deb
sudo dpkg -i youtrack_linux_amd64.debRHEL/Fedora:
curl -fsSLO https://github.com/JetBrains/youtrack-cli/releases/latest/download/youtrack_linux_amd64.rpm
sudo rpm -i youtrack_linux_amd64.rpmReplace amd64 with arm64 on ARM machines.
Build from source (requires Go 1.26+):
go install github.com/JetBrains/youtrack-cli@latestSee the getting started guide for the full walkthrough.
Authenticate once and the CLI remembers the instance:
youtrack auth loginIt asks for the YouTrack URL (pre-filled with https://youtrack.jetbrains.com or your active instance), opens your browser to sign in through Hub, and saves an OAuth session that refreshes itself. Hub limits the session to 90 days by default. The CLI tells you when to sign in again. Over SSH, pass --no-browser and paste the redirect URL back.
For CI and scripts, save a permanent token instead. A permanent token does not expire:
youtrack auth login https://example.youtrack.cloud --permanent
youtrack auth status # auth method, expiry, refresh token present — never the token itselfApps and scripts without a terminal sign in through the browser with --web: youtrack auth login https://example.youtrack.cloud --web --json. It never prompts and fails at once when something is missing. The authorization URL goes to stderr as a {"authorizationUrl": "..."} line (a plain line without --json), so the caller can open it if the browser does not open.
Auth commands mask the token in their output, JSON included. Pass --show-token when a script needs the full value, for example youtrack auth login --permanent --save=false --json --show-token | jq -r .token.
Then:
# your open issues
youtrack issue list --query "assignee: me State: Open"
# pick columns, mixing issue attributes and custom fields, like the issue list UI
youtrack issue list --query "project: DEMO #Unresolved" --fields "idReadable,summary,Priority,State,Assignee"
# create an issue
youtrack issue create --project DEMO --summary "Login button unresponsive on Safari"
# long markdown from stdin, no shell quoting
youtrack issue comment create DEMO-42 --text-file - <<'EOF'
Repro: run `make` with "$HOME" unset.
EOF
# move it along
youtrack issue command DEMO-42 "State In Progress"
# see every field of an issue: type, required, value, and whether it has choices
youtrack issue field list DEMO-42
# discover selectable values in this issue's field context
youtrack issue field list-values DEMO-42 Priority --json
# set several values of a multi-value field, or clear a field
youtrack issue field set DEMO-42 Subsystem --value "Platform. Auth & Licensing" --value UI
youtrack issue field set DEMO-42 Assignee --clear
# view an issue with its five most recent comments
youtrack issue view DEMO-42 --comments 5
# find a tag and tag an issue by its exact name
youtrack tag list --query release
youtrack issue tag add DEMO-42 "release blocker"
# only the fields you name, without the default projection or description
youtrack issue view DEMO-42 --only-fields --fields idReadable,summary,reporter --json
# comments with pinned state and visibility, deleted ones included
youtrack issue comment list DEMO-42 --include-deleted --json
# what a command would do, without applying it
youtrack issue command suggest DEMO-42 "State "
# tag an issue, refusing to create the tag if it does not exist
youtrack issue command DEMO-42 "tag regression" --no-new-tags
# link a commit to an issue, and list what is linked
youtrack issue vcs attach DEMO-42 1a2b3c4d5e6f7081
youtrack issue vcs list DEMO-42
# call any REST endpoint: body from a file, response saved unparsed
youtrack raw /api/issues/DEMO-42 --method POST --body-file update.json
youtrack raw /api/issues/DEMO-42 --fields "id,summary,description" --output issue.json
# restrict an attachment in its initial upload request
youtrack issue attachment add DEMO-42 --file report.txt --visibility user:alice
# keep the CLI itself up to date
youtrack updateEvery command takes --json or --plain for scripting, and --fields to pick table/plain columns and pull extra fields from the API. When no command covers what you need, youtrack raw calls the REST API directly with your stored credentials. You can register several instances and switch between them, sign in through the browser, or point at a server with environment variables — see authentication and configuration.
Set YOUTRACK_RO=1 to block every write at the client layer — a safety net for AI agents, CI read jobs, and exploration.
Canonical verbs across every group: view, list, create, update, delete. get is an alias of view, and add is an alias of create on groups that create records. Elsewhere add is the canonical verb for associating an existing entity (issue tag add, project team add-user). Run youtrack <group> --help for the full subcommand list, or see the command reference.
| Group | Commands |
|---|---|
| issue | list, view, create, update, delete, count, command (+ command suggest), assign/unassign, watch/unwatch, vote/unvote, sprint, tag, visibility, comment, link, attachment, field (+ field list, field list-values), reaction, draft, workitem, activity, vcs |
| project | list, view, create, update, delete, archive, team, field, template, timetrack, workflow |
| article | list, view, create, update, delete, comment, attachment, tag/untag, child, parent, set-parent, visibility |
| board | list, view, create, update, delete, sprint |
| tag | list, create, delete, issue |
| search | list, view, create, delete, share |
| user | list, view, current, create, delete, ban/unban, drafts, locale, timezone, profile, tag |
| group | list, view, create, delete, member, role |
| role | list, view, create, update, delete, grant, revoke, assignments, permission, permissions |
| org | list, create, delete |
| field | list, create, delete, privacy, bundle, prototypes, workitem, worktime |
| workflow | list, create, delete, restore, rule |
| settings | view, feature |
| app | list, plugin, deactivate, delete |
| dashboard | list, create, update, delete |
| gantt | list, update, delete, settings, member |
| auth | login (get-token), logout, status, refresh-token |
| instance | add, login, list, use, version, delete, refresh-token |
| raw | Authenticated request to any REST endpoint (--body-file, --output, --paginate) |
| update | Check for a newer CLI release and upgrade through the detected install method |
| skill | list, install, update, remove, guide |
To restrict who sees an uploaded file, pass --visibility to issue attachment add. To make the file visible to everyone who can see the project, pass --public.
The CLI ships with an Agent Skill that teaches coding agents (Claude Code, Cursor, and others) how to drive youtrack:
youtrack skill install # install the bundled skill for detected agents
youtrack skill update # update to the version bundled with this release
youtrack skill remove # uninstall
youtrack skill guide # print the guide that installed skills point toInstalled skills are short stubs that tell the agent to run youtrack skill guide, so after a CLI upgrade agents read the instructions for the new version without reinstalling.
The guide prints Markdown by default, including through a pipe. Use --json or --format json to receive that Markdown as a JSON string.
or specifically for Claude Code via the GitHub CLI:
gh skill install JetBrains/youtrack-cli youtrack-cli --allow-hidden-dirs --agent claude-codeSee AI agent integration for read-only mode, JSON output, and skill details.
- Getting started — install, authenticate, and run your first commands
- Authentication — tokens, browser SSO (OAuth client registration, headless sign-in, automatic refresh), multiple instances, credential precedence
- Configuration — config file, environment variables, global flags, update checks
- Scripting and automation — JSON/plain output, field projection, exit codes, CI
- Security — token disclaimer,
YOUTRACK_RO, keyring storage, command-mutability reference
YouTrack CLI is open source under the Apache-2.0 license. Bug reports and pull requests are welcome — CONTRIBUTING.md covers how the project is built and tested.
