> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands.md).

# 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](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/install-and-upgrade.md) to install the CLI, and [Authenticate](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/authenticate-the-harness-cli.md) to set up credentials.
* **Resource and action matrix:** Go to [Supported resources and actions](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/supported-resources-and-actions.md) to check which actions a resource supports before you build a script.
* **Shared flags:** Go to [Global flags and output formats](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/global-flags-and-output-formats.md) to learn about scope, output formats, filtering, and pagination.

## Command reference by module

| Module                               | Use it to                                                                                                            | Page                                                                                                                                                             |
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Platform                             | Manage organizations, projects, users, roles, connectors, secrets, and delegates.                                    | [Platform](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/platform.md)                                                   |
| Continuous Delivery                  | Manage pipelines, executions, triggers, templates, services, environments, and infrastructure definitions.           | [Continuous Delivery](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/continuous-delivery.md)                             |
| Artifact Registry                    | Manage registries, push and pull artifacts, inspect versions, and run security scans.                                | [Artifact Registry](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/artifact-registry.md)                                 |
| Infrastructure as Code Management    | Manage Terraform and OpenTofu workspaces, Ansible inventories and playbooks, and the module and provider registries. | [Infrastructure as Code Management](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/infrastructure-as-code-management.md) |
| Code Repository                      | Manage repositories, pull requests, branches, commits, tags, and checks.                                             | [Code Repository](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/code-repository.md)                                     |
| GitOps                               | Manage Argo CD-backed agents, applications, clusters, repositories, and ApplicationSets.                             | [GitOps](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/gitops.md)                                                       |
| Governance                           | Manage OPA policies, policy sets, and policy evaluation records.                                                     | [Governance](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/governance.md)                                               |
| Audit                                | Read the audit trail and inspect the YAML diff of a change.                                                          | [Audit](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/audit.md)                                                         |
| Harness Worker Agents                | List, inspect, create, and update Worker Agents from a wrapper YAML definition.                                      | [Worker Agents](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/harness-worker-agents.md)                                 |
| Resilience Testing                   | Manage load tests, test runs, scripts, and templates for JMeter, Locust, and k6.                                     | [Resilience Testing](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/resilience-testing.md)                               |
| Knowledge Graph                      | Explore the entity graph schema and run HQL queries.                                                                 | [Knowledge Graph](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/knowledge-graph.md)                                     |
| Feature Management & Experimentation | Manage feature flags, segments, metrics, and their per-environment definitions.                                      | [Feature Management & Experimentation](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/harness-cli-commands/fme.md)                            |

## Next steps

* Go to [Supported resources and actions](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/supported-resources-and-actions.md) to view the full resource matrix.
* Go to [Troubleshooting](https://developer.harness.io/harness-platform/3.0/harness-cli/cli/troubleshooting.md) to resolve common CLI errors.
