CLI for Agent Fabric Plugin
Use these commands to author, publish, and deploy agent network projects.
| Command | Description |
|---|---|
Builds the agent network project and validates configuration |
|
Creates a new agent network project and generates the initial configuration files |
|
Deploys the agent network project to the target environment |
|
Publishes the agent network project to Anypoint Exchange |
|
Sets up the gateways for the agent network |
agent-network:project:build
> anypoint-cli-agent-fabric-plugin agent-network project build [flags]
Builds the current agent network project using the Maven wrapper (mvnw or mvnw.cmd).
This command validates the configuration and generates the artifacts required for publishing and deployment.
In addition to the default flags, this command accepts these flags:
| Flag | Description | Example |
|---|---|---|
|
Bearer token |
|
|
Client ID |
|
|
Client Secret |
|
|
Collect metrics |
|
|
Enable debug mode |
|
|
Environment name |
|
|
Force update the dependencies |
|
|
Host URL |
|
|
Organization name |
|
|
Password |
|
|
Path to the project |
|
|
Username |
|
agent-network:project:create
> anypoint-cli-agent-fabric-plugin agent-network project create --name <projectName> [flags]
Creates a new agent network project in the current directory.
The command generates a project folder with initial configuration files, including agent-network.yaml.
In addition to the default flags, this command accepts these flags:
| Flag | Description | Example |
|---|---|---|
|
(Required) Name of the project |
|
|
Output directory for the project |
|
|
API version |
|
|
Asset name (GAV). Valid characters are 'A-Z', 'a-z', '0-9', '_' and '-'. |
|
|
Asset version (GAV) |
|
|
Bearer token |
|
|
Client ID |
|
|
Client Secret |
|
|
Collect metrics |
|
|
Create a new directory under |
|
|
Environment name |
|
|
Group ID (GAV) |
|
|
Host URL |
|
|
Organization name |
|
|
Password |
|
|
Tab size for indenting the API specification |
|
|
Username |
|
agent-network:project:deploy
> anypoint-cli-agent-fabric-plugin agent-network project deploy [flags]
Deploys the agent network application.
By default, the command uses single-gateway mode with the agent-network-gw gateway.
You can override this using the -g flag or switch to separate-gateways mode using -i and -e flags.
In addition to the default flags, this command accepts these flags:
| Flag | Description | Example |
|---|---|---|
|
Name of the target egress gateway (separate-gateways mode; requires |
|
|
Name of the gateway for single-gateway mode (recommended). Mutually exclusive with |
|
|
Name of the target ingress gateway. Combine with |
|
|
Name of the target space to deploy. In single-gateway mode, optional; when provided it must match the gateway’s target space (validated, not used for lookup). In separate-gateways mode, defaults to |
|
|
Bearer token |
|
|
Client ID |
|
|
Client Secret |
|
|
Collect metrics |
|
|
Disable tracing functionalities |
|
|
Do not wait for the agent network to be ready |
|
|
Environment name |
|
|
Host URL |
|
|
Max retries to check the status of the deploying application |
|
|
Organization name |
|
|
Password |
|
|
Path to the project |
|
|
Process timeout in milliseconds |
|
|
Property to override in |
|
|
Request timeout in milliseconds |
|
|
Username |
|
|
Format output as JSON |
|
Example
$ anypoint-cli-agent-fabric-plugin agent-network project deploy $ anypoint-cli-agent-fabric-plugin agent-network project deploy --property apiKey:sk-xxx $ anypoint-cli-agent-fabric-plugin agent-network project deploy --property apiKey:sk-xxx --property role:user $ anypoint-cli-agent-fabric-plugin agent-network project deploy --path ./my-project --property myAgent.url:https://api.example.com
agent-network:project:publish
> anypoint-cli-agent-fabric-plugin agent-network project publish [flags]
Publishes the current agent network project to Anypoint Exchange. The command outputs links and details for all created assets.
In addition to the default flags, this command accepts these flags:
| Flag | Description | Example |
|---|---|---|
|
Bearer token |
|
|
Client ID |
|
|
Client Secret |
|
|
Collect metrics |
|
|
Enable debug mode |
|
|
Environment name |
|
|
Host URL |
|
|
Organization name |
|
|
Password |
|
|
Path to the project |
|
|
Username |
|
|
Format output as JSON |
|
agent-network:setup:gateways
> anypoint-cli-agent-fabric-plugin agent-network setup gateways [flags]
Sets up the agent network environment with the required gateways in the specified target space (private space, RTF, or shared space). This step is required only if the target space doesn’t already have gateways. In the typical (happy path) workflow, you run it once per target space before the first deployment.
In addition to the default flags, this command accepts these flags:
| Flag | Description | Example |
|---|---|---|
|
Name of the egress gateway (separate-gateway mode; requires |
|
|
Name of the gateway for single-gateway mode (recommended). Mutually exclusive with |
|
|
Name of the ingress gateway (separate-gateway mode) |
|
|
Name of the target space (private space, RTF, or shared space) where you set up the agent network environment |
|
|
Bearer token |
|
|
Client ID |
|
|
Client Secret |
|
|
Collect metrics |
|
|
Do not wait for the gateways to be running |
|
|
Environment name |
|
|
Host URL |
|
|
Organization name |
|
|
Password |
|
|
Username |
|



