Skip to content

CircleCI Commands

The CircleCI CLI helps validate config, run jobs locally, and interact with the CircleCI API.

Example Config

version: 2.1
orbs:
  hello: circleci/hello-build@0.0.5
workflows:
  hello-workflow:
    jobs:
      - hello/hello-build

Useful CLI Tasks

  • Validate CI configuration.
  • Run jobs locally.
  • Query the CircleCI API.
  • Manage orbs and contexts.

Practical Notes

  • Keep config in .circleci/config.yml.
  • Prefer reusable commands and executors.
  • Use contexts for shared secrets.