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
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Revolutionize Your MuleSoft Deployments With GitOps
  • Anypoint CLI Commands in MuleSoft
  • Automate and Persist MuleSoft CloudHub Application Logs
  • 5 Best Node.js Practices to Develop Scalable and Robust Applications

Trending

  • How to Format Articles for DZone
  • How AI Is Changing the Way Developers Write Code
  • Mastering Fluent Bit: Installing and Configuring Fluent Bit Using Container Images (Part 2)
  • APIs for Logistics Orchestration: Designing for Compliance, Exceptions, and Edge Cases
  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
DZone Core CORE ·
Dec. 18, 20 · Presentation
Likes (5)
Comment
Save
Tweet
Share
10.5K 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
  • 5 Best Node.js Practices to Develop Scalable and Robust Applications

Partner Resources

×

Comments
Oops! Something Went Wrong

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

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

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 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!