New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@billpeet/yt-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@billpeet/yt-cli

YouTrack CLI tool for AI agent and developer use

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

yt-cli

A YouTrack CLI tool designed for AI agent use and developer workflows. Outputs JSON by default, accepts all input via flags (no interactive prompts), and has no native binary dependencies.

Installation

npm install -g @billpeet/yt-cli

Or run locally without installing:

npm run build
node bin/yt.js --help

Setup

Authenticate against your YouTrack instance:

yt setup --url https://yourcompany.youtrack.cloud --token perm:yourtoken

This validates the connection by calling /api/users/me, then saves credentials to ~/.config/yt-cli/config.json.

Environment Variables

Override or replace the config file at any time:

VariableDescription
YOUTRACK_BASE_URLYouTrack base URL
YOUTRACK_TOKENYouTrack permanent API token

Environment variables take priority over the config file.

Commands

yt setup

yt setup --url <url> --token <token>

yt issue search <query>

Search issues using YouTrack query syntax.

yt issue search "project: FOO #Unresolved"
yt issue search "assignee: me #Unresolved" --top 10
yt issue search "project: FOO" --fields "id,idReadable,summary"

Options:

  • --top <n> — Max results (default: 50)
  • --skip <n> — Offset for pagination (default: 0)
  • --fields <fields> — Comma-separated field list
  • --format text — Human-readable output
  • --pretty — Pretty-print JSON

yt issue get <id>

yt issue get FOO-123
yt issue get FOO-123 --fields "id,idReadable,summary,description"

yt issue create

yt issue create --project FOO --summary "Bug: login fails on Safari"
yt issue create --project FOO --summary "Feature request" --description "Details here"

Note: --project accepts the project short name (e.g. FOO) or the internal project ID.

yt issue update <id>

yt issue update FOO-123 --summary "Updated title"
yt issue update FOO-123 --description "New description"
yt issue update FOO-123 --field "State=In Progress" --field "Priority=High"

--field can be repeated for multiple custom fields. Format: FieldName=Value.

yt issue comments <id>

yt issue comments FOO-123

yt issue comment <id>

yt issue comment FOO-123 --text "This is fixed in v2.1"

yt project list

yt project list
yt project list --fields "id,shortName,name,description"

yt user me

yt user me

Output Formats

JSON (default)

All commands output raw JSON to stdout. Errors go to stderr as {"error": "..."}.

# Pipe into jq for filtering
yt issue search "project: FOO" | jq '.[].idReadable'

# Get just the summary of one issue
yt issue get FOO-123 | jq '.summary'

Pretty JSON

yt issue get FOO-123 --pretty

Human-readable text

yt issue search "project: FOO" --format text
yt project list --format text
yt user me --format text

Exit Codes

CodeMeaning
0Success
1Error (API failure, missing config, invalid input)

Usage with AI Agents (Claude Code)

yt-cli is designed to be called directly by AI agents like Claude Code. JSON output with no interactive prompts makes it easy to parse and chain:

# Find unresolved issues assigned to me
yt issue search "assignee: me #Unresolved" --top 5

# Get full details of a specific issue
yt issue get PROJ-42

# Create an issue and capture the new ID
NEW=$(yt issue create --project PROJ --summary "Auto-created issue" | jq -r '.idReadable')
echo "Created $NEW"

# Add a comment
yt issue comment "$NEW" --text "Investigated and confirmed."

Development

# Run from source (no build step)
npm run dev -- issue search "project: FOO"

# Build TypeScript
npm run build

# Run built binary
node bin/yt.js --help

Config is stored at ~/.config/yt-cli/config.json.

Keywords

youtrack

FAQs

Package last updated on 17 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts