jk
GitHub CLI–style workflows for Jenkins controllers
jk gives developers and operators a modern, scriptable interface to Jenkins: inspect runs, stream logs, manage credentials, and administer controllers from a single cross-platform binary.
Features
- Context-aware auth – store multiple controllers, switch with
jk context use, or pin a context via JK_CONTEXT.
- Friendly pipelines – trigger, rerun, follow, and summarize jobs with human or JSON/YAML output.
- Job provisioning & config – create Bitbucket-backed Multibranch Pipeline jobs, inspect raw
config.xml, patch Jenkinsfile paths, and rescan multibranch jobs.
- Scriptable output –
--format json|yaml, --jq, and --template for machine-friendly pipelines; --quiet for scripting.
- Discovery-first runs – filter with
--filter, bound history with --since, group by parameters, and attach machine-readable metadata for agents.
- Artifacts & tests – browse artifacts, download filtered sets, and surface aggregated test reports.
- Platform operations – cordon nodes, manage credentials, inspect queues, and view installed plugins.
- GitHub CLI parity – command structure and UX mirror
gh, easing adoption in developer toolchains.
Installation
Homebrew (macOS/Linux)
brew install avivsinai/tap/jk
Scoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install jk
Go Install
# Install latest version
go install github.com/avivsinai/jenkins-cli/cmd/jk@latest
# Or install specific version
go install github.com/avivsinai/jenkins-cli/cmd/jk@v0.0.29
Binary will be installed to $GOPATH/bin (or $HOME/go/bin by default).
Binary Downloads
Download prebuilt binaries for your platform from GitHub Releases.
From Source
git clone https://github.com/avivsinai/jenkins-cli.git
cd jenkins-cli
make build # produces ./bin/jk
AI Coding Skill
Install the jk skill for Claude Code or Codex CLI:
Via skills (Recommended)
Using Vercel's skills CLI:
npx skills add avivsinai/jenkins-cli -g -y
Via skild registry
npx skild install @avivsinai/jk -t claude -y
Via Skills Marketplace
Known Issue: Claude Code uses SSH to clone marketplace repos, which fails without SSH keys configured. See issue #14485. Use the skills or skild methods instead.
/plugin marketplace add avivsinai/skills-marketplace
/plugin install jk@avivsinai-marketplace
Manual install
git clone https://github.com/avivsinai/jenkins-cli.git
cp -r jenkins-cli/.claude/skills/jk ~/.claude/skills/
Quickstart
Find jobs fast with jk search (alias for jk run search) before drilling into specific pipelines.