DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Revolutionize Your MuleSoft Deployments With GitOps
  • Anypoint CLI Commands in MuleSoft
  • Automate and Persist MuleSoft CloudHub Application Logs
  • MuleSoft MCP and A2A in Production: What 17 Recipes Reveal

Trending

  • Data Contracts as the "Circuit Breaker" for Model Reliability
  • Contract-First Integration: Building Scalable Systems With Flyway, OpenAPI, and Kafka
  • Your AI Agent Tests Are Passing, But Your Agent Is Still Broken
  • Building a DevOps-Ready Internal Developer Platform: A Hands-On Guide to Golden Paths, Self-Service, and Automated Delivery Pipelines
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Anypoint CLI With MuleSoft

Anypoint CLI With MuleSoft

Anypoint CLI is a command-line interface used with Anypoint Platform and Anypoint Platform PCE. Find out more about it in this article!

By 
Jitendra Bafna user avatar
Jitendra Bafna
·
Dec. 18, 20 · Presentation
Likes (5)
Comment
Save
Tweet
Share
10.9K Views

Join the DZone community and get the full member experience.

Join For Free

Introduction

Anypoint CLI is a command-line interface used with Anypoint Platform and Anypoint Platform PCE. Anypoint CLI works with

  • Runtime Manager
  • Anypoint Exchange
  • VPCs
  • DLBs
  • Design Center
  • API Manager
  • Access Management

Prerequisites

  • Download and Install NodeJS
  • Install npm package for Anypoint CLI using the below command.
Plain Text
 




x


 
1
$ npm install -g anypoint-cli@latest



  • Download and Install Git.

Anypoint CLI can be configured using one of the below authentication mechanism.

  • Anypoint Username and Password with required access.
  • Client ID and Client Secret. This can be generated using Connected Apps in the Anypoint Platform.
  • Bearer Token.

Credentials File

It is recommended to create a credentials file within ~/.anypoint folder. This folder is not created automatically, and you need to create it at location C:/Users/Username in case of windows.

System Users

Add the below structure in your credentials file.

JSON-LD
 




xxxxxxxxxx
1
23


 
1
{
2
 "default": {
3
  "username": "yourAnypointUserName",
4
  "password": "yourAnypointPassword",
5
  "organization": "",
6
  "environment": "",
7
  "host": ""
8
 },
9
 "otherProfile": {
10
  "username": "",
11
  "password": "",
12
  "organization": "",
13
  "environment": "",
14
  "host": ""
15
 },
16
 "connAppProfile": {
17
  "client_id": "",
18
  "client_secret": "",
19
  "organization": "",
20
  "environment": "",
21
  "host": ""
22
 }
23
}



Provide correct credentials, organization, and environment details.

Here is the video tutorial explaining how to set up and access Anypoint CLI.

Anypoint CLI — Part I | Introduction and Installation | MuleSoft

Anypoint CLI — Part II | Deploying MuleSoft Application To CloudHub | Start and Stop

This video will explain how Anypoint CLI can perform the list of operations with Runtime Manager like start and stop applications, download application logs, deploy the application, etc.

Anypoint CLI — Part III | Anypoint VPC | MuleSoft

This video will explain how Anypoint CLI can perform the list of operations with Anypoint VPC like creating VPC, adding firewall rules, etc.

Anypoint CLI — Part IV | Anypoint Dedicated Load Balancer | MuleSoft

This video will explain how Anypoint CLI can perform the operations with Anypoint DLB like creating DLB, adding certificates and mapping rules, deleting the DLB, etc.

References

https://docs.mulesoft.com/runtime-manager/anypoint-platform-cli-commands

Now, you know how to set up and run Anypoint CLI.

Command-line interface MuleSoft

Opinions expressed by DZone contributors are their own.

Related

  • Revolutionize Your MuleSoft Deployments With GitOps
  • Anypoint CLI Commands in MuleSoft
  • Automate and Persist MuleSoft CloudHub Application Logs
  • MuleSoft MCP and A2A in Production: What 17 Recipes Reveal

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook