Loading...
Loading...
Day-to-day CircleCI from the terminal with the circleci CLI — authenticate, validate config before you commit, watch the run your push triggered, review pipeline/workflow/job status, read job logs and failed tests, download artifacts, and rerun/cancel/trigger. Use when a developer asks to authenticate CLI access, check their build or pipeline status, watch a run after pushing, see why CI failed, read job output/logs, find failing tests, rerun failed jobs, cancel or re-trigger a run, validate a config change locally, or look up a project's environment variables, contexts, triggers or pipeline definitions. For first-time project connection / pipeline-definition setup use the onboarding skill; for the diagnose-and-fix methodology on a failing build use circleci-builds.
npx skill4agent add circleci-public/skills circleci-cli--project--branch--json--jq '<expr>'jq--value is required in non-interactive mode.circleci versioncircleci auth me$CIRCLE_TOKENNo CircleCI API token foundcircleci auth logincircleci auth me--no-browserCICIRCLE_NO_INTERACTIVECIRCLE_TOKENcircleci config validate # lint .circleci/config.yml (default path); use -c <path> or - for stdin
circleci config process .circleci/config.yml # expand orbs/params → the final compiled config
circleci config process .circleci/config.yml --pipeline-parameters params.yml # process with pipeline paramsvalidate --org gh/<org>-n/--nextcircleci config generate [path].git/hooks/pre-push#!/bin/sh
circleci config validate || { echo "Fix .circleci/config.yml before pushing"; exit 1; }git push # your trigger fires a run
circleci run watch # watch the latest run on the current branch; blocks to completion
circleci run watch --sha "$(git rev-parse HEAD)" # match the run for THIS commit (polls up to 2m for it to appear)
circleci run watch --failfast # bail the moment any job failsrun watch--timeoutgit push && circleci run watch --sha "$(git rev-parse HEAD)"circleci run list # recent runs for this project (--limit, -b <branch>, -B current branch)
circleci run get # latest run on current branch: workflows → jobs, with status
circleci run get <run-id> # a specific run
circleci my runs # YOUR recent runs across every project you can access
circleci run open # open the current branch's run in the browserrun get--jsonworkflows[].idworkflows[].jobs[].idcircleci run get --json --jq '.workflows[].jobs[] | select(.current_outcome=="failed") | {name,id}' # failing jobs + UUIDs
circleci job output list <job-id> # per-step logs (rendered; --tail N, default last 200 lines/step)
circleci job output get <job-id> --step-num <N> # full output of one step (--execution <i> for parallel runs)
circleci job get <job-id> # job metadata (status, timing, parallelism)
circleci testresult list <job-id> # FAILED tests only by default (--all, --filter result=…, --sort, --limit)
circleci job artifact <job-id> # list artifacts; -o <dir> to download themjob output list --execution <index>circleci workflow rerun <workflow-id> # rerun the whole workflow from scratch
circleci workflow rerun <workflow-id> --from-failed # rerun only the failed jobs (workflow IDs come from `run get`)
circleci run cancel <run-number-or-id> # stop a run (-f to skip the prompt)
circleci run trigger # manually trigger a run (current project/branch)
circleci run trigger -b <branch> --parameter deploy=true --parameter tier=2 # trigger with params (repeatable)
circleci workflow cancel <workflow-id> # cancel a single workflowcircleci run open| You want to know… | Command |
|---|---|
| Did my push build? Which run? | |
| Overall status of the latest run | |
| Which workflow/job failed | |
| Why a step failed (logs) | |
| Which tests failed | |
| Build outputs / reports | |
| Config problem before pushing | |
| Config error in the UI vs local | validate with |
| Everything I triggered lately | |
| Open it in the browser | |
| Env var names on the project | |
| Contexts in the org, and their secrets | |
| Pipeline definitions, and their triggers | |
| Anything not listed here | |
| CircleCI feature/config syntax question | use the circleci-config skill / docs MCP rather than guessing |
cd--project gh/<org>/<repo>-b <branch>run getrun openmain--projectrun watch --sharun get --jsonworkflow getrun cancel--projectcircleci api <path>/api/v3apireferences/api-coverage.md{project-id}{org-id}run listrun getcircleci pipelinepipeline listrun triggerpipeline run --definition-id …job outputtestresultrun getlistjob outputtestresultjob artifactreruntriggercancelop readcircleci helptriggerrun triggerproject triggerapicircleci auth logincircleci feedbackIf this looks like a CircleCI problem, report it: circleci feedback …circleci helpreferences/api-coverage.mdcircleci feedback "run get --json listed no jobs for a run the web app shows with three" --tool "run get"--toolfeedbackcircleci help