> 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/use-harness-cli.md).

# Use Harness CLI

- [Harness CLI](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli.md)
- [Harness CLI Overview](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-overview.md): A unified command-line interface for managing Harness pipelines, artifacts, infrastructure, and platform resources.
- [Install and upgrade the Harness CLI](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/install-and-upgrade.md): Install the Harness CLI on macOS or Linux, upgrade to new versions, and uninstall cleanly.
- [Authenticate the Harness CLI](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/authenticate.md): Log in to the Harness CLI, manage named profiles, set up authentication for CI, and enable shell completions.
- [Supported resources and actions](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/supported-resources-and-actions.md): A complete matrix of every resource the Harness CLI supports and which actions are available on each one.
- [Global flags and output formats](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/global-flags-and-output.md): Learn how to use global flags to control scope, output format, pagination, and behavior across all Harness CLI commands.
- [Harness CLI Commands](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands.md)
- [Platform](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/platform-commands.md): Use the Harness CLI to manage the Harness Platform module, including organizations, projects, users, roles, connectors, secrets, delegates, OPA governance policies, and audit events.
- [Continuous Delivery](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/cd-and-pipeline-commands.md): Use the Harness CLI to manage the Continuous Delivery module, including pipelines, executions, triggers, input sets, templates, freeze windows, services, environments, infrastructure definitions, and
- [Artifact Registry](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/artifact-registry-commands.md): Use the Harness CLI to manage the Artifact Registry module, including registries, artifact push and pull, version inspection, metadata management, security scans, and registry migrations.
- [Infrastructure as Code Management](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/iacm-commands.md): Use the Harness CLI to manage the Infrastructure as Code Management module, including Terraform and OpenTofu workspaces, Ansible hosts, inventories, playbooks, and the module and provider registries.
- [Code Repository](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/code-repository-commands.md): Use the Harness CLI to manage the Code Repository module, including repositories, pull requests, reviewers, AI review insights, branches, commits, tags, comments, and checks.
- [GitOps](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/gitops-commands.md): Use the Harness CLI to manage the GitOps module, including agents, applications, destination clusters, source repositories, and ApplicationSets.
- [Governance](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/governance-commands.md): Use the Harness CLI to manage the Governance module, including OPA policies written in Rego, policy sets, and policy evaluation records.
- [Audit](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/audit-commands.md): Use the Harness CLI to read the audit trail, filter audit events by date, resource type, action, and principal, and inspect the YAML diff of a change.
- [Harness Worker Agents](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/harness-cli-commands/worker-agent-commands.md): Use the Harness CLI to list, inspect, create, and update Harness Worker Agents from a wrapper YAML definition.
- [Troubleshooting](https://developer.harness.io/harness-platform/use-harness-cli/harness-cli/troubleshooting.md): Learn how to diagnose and resolve common Harness CLI errors, understand exit codes, and enable debug logging for detailed request information.
