Harness CLI Commands
Browse the Harness CLI command reference by module, with examples and flags for each resource and action.
The Harness CLI follows a consistent harness <verb> <noun> pattern across every module. Each page in this section covers one module: the resources it exposes, the actions each resource supports, and worked examples you can run from a terminal or a script.
Before you begin
Harness CLI installed and authenticated: Go to Install and upgrade to install the CLI, and Authenticate to set up credentials.
Resource and action matrix: Go to Supported resources and actions to check which actions a resource supports before you build a script.
Shared flags: Go to Global flags and output formats to learn about scope, output formats, filtering, and pagination.
Command reference by module
Continuous Delivery
Manage pipelines, executions, triggers, templates, services, environments, and infrastructure definitions.
Artifact Registry
Manage registries, push and pull artifacts, inspect versions, and run security scans.
Infrastructure as Code Management
Manage Terraform and OpenTofu workspaces, Ansible inventories and playbooks, and the module and provider registries.
Code Repository
Manage repositories, pull requests, branches, commits, tags, and checks.
GitOps
Manage Argo CD-backed agents, applications, clusters, repositories, and ApplicationSets.
Harness Worker Agents
List, inspect, create, and update Worker Agents from a wrapper YAML definition.
Resilience Testing
Manage load tests, test runs, scripts, and templates for JMeter, Locust, and k6.
Feature Management & Experimentation
Manage feature flags, segments, metrics, and their per-environment definitions.
Next steps
Go to Supported resources and actions to view the full resource matrix.
Go to Troubleshooting to resolve common CLI errors.
Last updated
Was this helpful?