VOOZH about

URL: https://dzone.com/articles/anypoint-cli-with-mulesoft

โ‡ฑ Anypoint CLI With MuleSoft


Related

  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 Dec. 18, 20 ยท Presentation
Likes
Comment
Save
11.0K 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.

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
  • Managing, Updating, and Organizing Agent Skills

Partner Resources

ร—

Comments

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

Let's be friends: