CLI for DX Mule Plugin
Use these commands to manage Mule Runtimes, scaffold Mule projects, and introspect connector metadata from the command line.
| Command | Description |
|---|---|
Lists all available Mule runtime versions from Exchange |
|
Downloads a Mule runtime to the local machine |
|
Shows or sets the path to the local Mule runtime installation |
|
Scaffolds a new Mule project with Maven structure and connector dependencies |
|
Introspects a connector’s operations, sources, configs, and connection providers |
dx:mule:runtime:list
> anypoint-cli-v4 dx:mule:runtime:list [flags]
Lists all available Mule runtime versions from Exchange.
Use the --output flag to specify the response format. Supported values are table (default) and json.
This command requires Anypoint credentials (username/password, client ID/secret, or bearer token).
This command accepts the default flags.
dx:mule:runtime:download
> anypoint-cli-v4 dx:mule:runtime:download [flags]
Downloads a Mule runtime to the local machine. If --version is omitted, the latest available version is downloaded.
This command requires Anypoint credentials (username/password, client ID/secret, or bearer token).
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example |
|---|---|---|
|
Mule runtime version to download. If omitted, downloads the latest available version. |
|
dx:mule:runtime:path
> anypoint-cli-v4 dx:mule:runtime:path [flags]
Shows the path to the local Mule runtime installation. Use --set to point the CLI to a specific runtime directory.
No Anypoint credentials are required for this command.
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example |
|---|---|---|
|
Sets the path to the local Mule runtime installation |
|
dx:mule:project:create
> anypoint-cli-v4 dx:mule:project:create <PROJECTNAME> --group-id <value> [flags]
Scaffolds a new Mule project with a standard Maven structure and the specified connector dependencies.
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example |
|---|---|---|
|
Maven group ID for the project |
|
|
Comma-separated list of connector dependencies in |
|
|
Mule runtime version for the project. Default: |
|
dx:mule:describe-connector
> anypoint-cli-v4 dx:mule:describe-connector --connector <groupId:artifactId:version> [flags]
Introspects a connector and returns details about its operations, event sources, configurations, and connection providers. Use --type to drill into a specific component.
In addition to the default flags, this command accepts the following flags:
| Flag | Description | Example |
|---|---|---|
|
Connector GAV coordinates in |
|
|
Detail type to return. If omitted, returns a high-level overview (namespace, operations, sources, configs). |
|
|
Name of the component to inspect. Required when |
|
|
Configuration name. Required when |
|
|
Output format. Supported values: |
|
Examples
$ anypoint-cli-v4 dx:mule:describe-connector \ --connector com.mulesoft.connectors:mule-salesforce-connector:10.20.0 \ --output json
$ anypoint-cli-v4 dx:mule:describe-connector \ --connector com.mulesoft.connectors:mule-salesforce-connector:10.20.0 \ --type operation --name query --output json
$ anypoint-cli-v4 dx:mule:describe-connector \ --connector com.mulesoft.connectors:mule-salesforce-connector:10.20.0 \ --type source --name on-new-object --output json
$ anypoint-cli-v4 dx:mule:describe-connector \ --connector com.mulesoft.connectors:mule-salesforce-connector:10.20.0 \ --type connection-provider --name basic-connection --config-name sfdc-config --output json



