Hello Everyone,
A community question posted here inspired me to write apigeedm plugin, It’s a Nodejs based command line plugin. It’s built on top of apigeetool Node.js plugin written by Apigee Team.
Apigeedm:
It allows you to deploy multiple proxies by executing a simple command at one go. You don’t need to execute apigee deploy command multiple times for multiple proxies individually.
Installation :
Installing this plugin is super smooth. Just execute below command to install apigeedm plugin. Make sure Node.JS & NPM is installed in your machine.
sudo npm install -g apigeedm
Usage :
You will just specify folder location where your apigee proxies are present & apigee credentials, rest tool will take care to deploy multiple proxis in one go. You need to make sure below folder structure of source location that you specify.
Let’s say your root directory is /Users/Anil/Desktop/multipleProxies where multiple proxies are present. Let’s say we have proxies weather1 & weather2. Directory structure should be something like below.
Directory Structure should look like below,
Deploying Multiple Proxies :
Execute below command with source directory option to deploy multiple proxies present in same folder,
apigeedm -s /Users/Anil/Desktop/multipleProxies
Once you execute the command, you will be asked to submit your org credentials,
That’s it, multiple proxies will be deployed to Apigee Edge at one go.
You can also provide org credentials directly while executing the command itself using options provided by command line. It will be helpful if you would like to use this tool in some other script.
apigeedm -s /Users/Anil/Desktop/multipleProxies -b [https://api.enterprise.apigee.com](https://api.enterprise.apigee.com) -o ORGNAME -u USERNAME -p PASSWORD -e ENVNAME -v VIRTUALHOSTS
Hope it will be useful, Keep us posted



