You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-15Lines changed: 37 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,46 @@
1
1
# Axway API-Management CLI
2
2
3
-
This CLI tool allows you to control the Axway API management solution without access through the Web UI. You can call the CLI manually or integrate it into a CI/CD pipeline. The CLI is based on [Swagger-Promote](https://github.com/Axway-API-Management-Plus/apimanager-swagger-promote), which has been refactored to support more use-cases than only APIs.
3
+
This CLI allows you to control the Axway API management solution without access through the Web UI. You can call the CLI manually or integrate it into a CI/CD pipeline. The CLI is based on [Swagger-Promote](https://github.com/Axway-API-Management-Plus/apimanager-swagger-promote), which has been refactored to support more use-cases than only API-Import and -Export.
4
4
5
5
## Everything as code
6
-
The basic idea for the so-called "Everything as code" approach is that the desired state of something is declared in a configuration file which stored in your version management system. A toolis replicating that declared state to become the actual state. This is used for instance to manage a complex Cloud-Infrastructure called Infrastructure as code. You may read more here: https://hackernoon.com/everything-as-code-explained-0ibg32a3
6
+
The basic idea for the so-called "Everything as code" approach is that the desired state of something (API, Application, etc.) is declared in a configuration file which stored in your version management system. A tool, like this CLI, is then replicating that declared state to become the actual state in the target environment. This is used for instance to manage complex Cloud-Infrastructure called Infrastructure as code. You may read more here: https://hackernoon.com/everything-as-code-explained-0ibg32a3
7
7
8
8
This CLI is following the same approach for your APIs, Applications, etc. Everything is declared as code in a config file and stored in your version management system. The CLI transfers this desired state manually or automatically via a pipeline into the API management platform to become the actual state.
9
-
Additionally the CLI supports basic administrative commands for instance to display entities and perform simple tasks.
9
+
Additionally the CLI supports basic administrative commands for instance to list and filter entities and perform simple tasks. More will be added very soon.
10
10
11
11
Watch this video (28 min): https://youtu.be/2i8i1zMAMps to get an overview + demo.
12
12
13
-
With that, an API developer is just providing the desired state configuration of the API, Application. When checked in, the [CI/CD-Pipeline](https://github.com/Axway-API-Management-Plus/apim-cli/wiki/9.-Jenkins-Integration-with-GitHub-&-Bitbucket) picks it up and replicates it into the API Manager.
13
+
With that, an API developer or the operations team is just providing the desired state configuration of the API, Application. When checked in, the [CI/CD-Pipeline](https://github.com/Axway-API-Management-Plus/apim-cli/wiki/9.-Jenkins-Integration-with-GitHub-&-Bitbucket) picks it up and replicates it into the API Manager.
|**import**|Replicates an API into the API-Manager |
23
-
|**export**|Exports one or more APIs from a running API-Manager |
19
+
The CLI is flexible and is extended with new functions via modules. These can be accessed and discovered via the CLI on the basis of groups and their commands.
20
+
To get an overview about the groups just call `apim`:
21
+
```
22
+
Available commands and options:
23
+
apim app - Manage your applications
24
+
apim api - Manage your APIs
25
+
```
26
+
To get for instance a `wide` list of APIs on the stage: `prod` execute the following command:
To get a list of commands for each group call for instance `apim app`
24
42
25
-
### Applications
26
-
| Command | Comment |
27
-
| :--- | :--- |
28
-
|**import**|Replicates an application into the API-Manager |
29
-
|**export**|Exports one or more applications from a running API-Manager |
43
+
The CLI is flexible and more commands will be added. For an up-to-date list of the supported groups and commands, see the [documentation](https://github.com/Axway-API-Management-Plus/apim-cli/wiki#supported-commands).
30
44
31
45
## Quality assurance process
32
46
By using this CLI to control your Axway API management infrastructure it becomes a key component of your CI/CD process. Product quality is therefore very important so that you can be confident this CLI is doing what it's supposed to do.
@@ -38,8 +52,12 @@ The automated End-2-End test suite contains of __113__ different scenarios, whic
Version 7.5.3 is NOT supported. Version 7.6.2 SP3 is required.
43
61
44
62
## Get started
45
63
@@ -50,11 +68,15 @@ scripts\apim api import -c samples/basic/minimal-config-api-definition.json -s a
50
68
```
51
69
This command is reading the API-Management platform configuration details from the environment file: `env.api-env.properties` and replicates the given desired API state in the configuration file: `minimal-config-api-definition.json` into the API-Management platform.
52
70
71
+
Please see the [documentation](https://github.com/Axway-API-Management-Plus/apim-cli/wikis) for more information.
Please read [Contributing.md](https://github.com/Axway-API-Management-Plus/Common/blob/master/Contributing.md) for details on our code of conduct, and the process for submitting pull requests to us.
59
81
Also please read this page on [how to contribute](https://github.com/Axway-API-Management-Plus/apimanager-swagger-promote/wiki/7.1-Contribute-to-this-project) to this project.
0 commit comments