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
Newsletter
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
  • Chaos Engineering and Kafka In Action: Topic Level Idempotence and Retry Check

Trending

  • How to Migrate From C/C++ to Rust: A Practical Guide for Embedded IoT Systems
  • When Feature Flags Become Workflows: Configuring Multi-Tenant State Machines
  • Introduction to Error Prone: How to Catch Bugs at Compile Time
  • A Software Factory on Kubernetes: Gemini Builds, jev Decides (Genkit + senro in Go)

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  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
·
Dec. 18, 20 · Presentation
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
11.2K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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
  • Chaos Engineering and Kafka In Action: Topic Level Idempotence and Retry Check

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • 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