-
Notifications
You must be signed in to change notification settings - Fork 19
1. How to get started
Chris Wiechmann edited this page Jun 4, 2020
·
13 revisions
Getting started with the API-Manager CLI is very simple.
- an API-Manager Version 7.X up & running
- the project has been tested with version 7.6.2 SP2, 7.6.2 SP3, 7.6.2 SP4 & 7.7 (you can verify compatibility yourself as described here)
- Either an environment to execute a very simple Shell-Script or BAT-File, which wraps a Java-Program
- or executing a binary when installed with Chocolately.org
- an installed Java Runtime Environment 8 or higher
- the machine must have access to the API-Manager REST-API on Default-Port: 8075
- Download the latest release from here
- best is to extract the archive including the folder: (e.g. apim-cli-1.0.0) somewhere on your disk
"C:\Axway\Tools" - now create a Short-Cut-Folder pointing to the extracted version like so:
"C:\Axway\Tools\apim-cli" --> "C:\Axway\Tools\apim-cli-1.0.0" - Add the following to you PATH:
"C:\Axway\Tools\apim-cli\scripts" - You can now run the CLI with one of the following scripts:
apim.bat or apim.sh - With that structure:
you can just extract every new version into the same folder and just update the short-cut to the version you want
- best is to extract the archive including the folder: (e.g. apim-cli-1.0.0) somewhere on your disk
If you want to use the API-Management CLI on Windows and you are already using Chocolately.org the installation is just that simple:
choco install axway-apim-cli
To upgrade to the newest version just say:
choco upgrade axway-apim-cli
After installation you can just run apim
- get it from Maven-Central to reference it as a dependency in your projects
<dependency>
<artifactId>apimcli-core</artifactId>
<groupId>com.github.axway-api-management-plus.apim-cli</groupId>
<version>1.0.0</version>
</dependency>
This is especially interesting when integrated into a pipeline based on Maven.