---
schema_version: "1"
id: 47b68b466801a370a0dfd651e03828779a417bd8edda66aced4b525f67e66343
title: CLI Commands for API Governance
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/api-governance/cli-command-list.md
canonical_url: https://docs.mulesoft.com/api-governance/cli-command-list
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 953b7cc6fcc37c82e7fa26f93f814663f1be6234a77a1bf9f770d1474d0468f4
description: MuleSoft Documentation Site
latest: true
---
---
product: API Governance
---

# CLI Commands for API Governance

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

You can use Anypoint CLI commands to automate your API Governance processes and work with custom
rulesets.

<table><colgroup><col> <col></colgroup><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/custom-rulesets-validate-and-publish#publish-ruleset">exchange:asset:upload</a></p></div></div></td><td><div><div><p>Uploads a custom ruleset asset along with its documentation to Exchange (publishes an asset)</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/monitor-api-conformance#governance-api-evaluate">governance:api:evaluate</a></p></div></div></td><td><div><div><p>Evaluates filter criteria to determine which rulesets apply to APIs that meet that criteria</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/custom-rulesets-new#governance-api-inspect">governance:api:inspect</a></p></div></div></td><td><div><div><p>Inspects an API specification and lists its schemas</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/find-conformance-issues#governance-api-validate">governance:api:validate</a></p></div></div></td><td><div><div><p>Validates an API specification against a specified governance ruleset</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/custom-rulesets-validate-and-publish#governance-document">governance:document</a></p></div></div></td><td><div><div><p>Creates the documentation file for a governance ruleset definition</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/create-profiles#governance-profile-create">governance:profile:create</a></p></div></div></td><td><div><div><p>Creates a governance profile</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/create-profiles#governance-profile-delete">governance:profile:delete</a></p></div></div></td><td><div><div><p>Deletes a governance profile</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/create-profiles#governance-profile-info">governance:profile:info</a></p></div></div></td><td><div><div><p>Lists information for a specific governance profile ID</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/create-profiles#governance-profile-list">governance:profile:list</a></p></div></div></td><td><div><div><p>Lists all governance profiles for an organization</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/create-profiles#governance-profile-update">governance:profile:update</a></p></div></div></td><td><div><div><p>Updates a governance profile</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/custom-rulesets-modify#governance-ruleset-clone">governance:ruleset:clone</a></p></div></div></td><td><div><div><p>Clones a governance ruleset and applies specified updates to rules</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/custom-rulesets-modify#governance-ruleset-info">governance:ruleset:info</a></p></div></div></td><td><div><div><p>Lists ruleset rules</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/create-custom-rulesets#governance-ruleset-init">governance:ruleset:init</a></p></div></div></td><td><div><div><p>Initializes a governance ruleset definition based on a data schema</p></div></div></td></tr><tr><td><div><div><p><a href="https://docs.mulesoft.com/api-governance/custom-rulesets-validate-and-publish#governance-ruleset-validate">governance:ruleset:validate</a></p></div></div></td><td><div><div><p>Validates a governance ruleset specification’s format</p></div></div></td></tr></tbody></table>

## Install the Anypoint Platform CLI

If you plan to use the API Governance CLI commands, install Anypoint Platform CLI where you run your
commands. The Anypoint CLI installation includes the API Governance plugin. For detailed
installation instructions, including prerequisite software requirements, see
[Install Anypoint CLI 4.x](https://docs.mulesoft.com/anypoint-cli/latest/install).

## Permissions for Anypoint CLI Governance Commands

Anypoint CLI commands that access functionality in Anypoint Platform require adequate permissions to
execute successfully.

The `governance` commands require the following permissions:

- None:

  Any commands that run locally without accessing Anypoint Platform, such as `ruleset validate`,
  `ruleset document`, and `api validate`

- Governance Administrator:

  Commands that update API Governance entities, such as `profile create`, `profile update`, and
  `profile delete`

- Governance Viewer:

  Commands that list API Governance information only, such as `api inspect` and `profile list`

## Ruleset Development CLI

You can also use an open-source CLI, `ruleset-development-cli`, to help you create custom rulesets.
See
[Create Rulesets Using the Ruleset Development CLI](https://docs.mulesoft.com/api-governance/custom-rulesets-new#create-rulesets-using-cli).

## See Also

- [Getting Started with Anypoint API Governance](https://docs.mulesoft.com/api-governance/get-started)

- [Install Anypoint CLI 4.x](https://docs.mulesoft.com/anypoint-cli/latest/install)
