Installing the toolkit
You can install the toolkit either from npm or from a Management server in your IBM® API Connect cloud.
Before you begin
Features of the toolkit include the default ability for local testing of APIs with a DataPower® Gateway Docker container. When Docker and Docker Compose are present and functioning normally on your system, the DataPower image is downloaded from Docker Hub. For more information, see: Testing APIs with the IBM DataPower Gateway.
The following steps create a software environment that is ready to install the IBM API Connect toolkit.
About this task
npm
command that is installed as part of
Node.js. Installing the toolkit installs: - API Connect
command-line tool,
apic
. - API Connect API Designer visual tool.
- API Connect Micro Gateway.
npm dist-tag ls apiconnect
command. For
example:$ npm dist-tag ls apiconnect
1.0.3.0: 1.0.3
apic-v5.0.1.0: 2.0.18
apic-v5.0.2.1: 2.1.19
apic-v5.0.3.0-iFix1: 2.2.12
apic-v5.0.3.0-iFix2: 2.2.14
apic-v5.0.3.0-iFix4: 2.2.17
apic-v5.0.3.0: 2.2.9
apic-v5.0.4.0-iFix2: 2.3.10
apic-v5.0.4.0: 2.3.6
apic-v5.0.5.0: 2.4.11
apic-v5.0.6.0: 2.5.8
apic-v5.0.6.1: 2.5.17
apic-v5.0.6.2: 2.5.21
apic-v5.0.6.3: 2.5.33
apic-v5.0.6.4: 2.5.40
apic-v5.0.6.5: 2.5.52
apic-v5.0.6.6: 2.5.80
apic-v5.0.7.0: 2.6.2
apic-v5.0.7.1: 2.6.55
apic-v5.0.7.2: 2.6.71
apic-v5.0.8.0: 2.7.30
apic-v5.0.8.1: 2.7.62
apic-v5.0.8.2: 2.7.111
apic-v5.0.8.3: 2.7.209
apic-v5.0.8.4-iFix: 2.8.39
apic-v5.0.8.4: 2.8.14
apic-v5.0.8.5: 3.0.17
apic-v5.0.8.6: 4.0.x
latest: 4.0.x
v5.0.0.1: 1.0.3
npm install
apiconnect@<version>
. For example, if you have API Connect v5.0.6.5, use
the command:npm install apiconnect@3.0.17
Procedure
engine-strict
(or use
the --engine-strict
option) since it will prevent installation from
completing.During installation, you may see errors from the node-gyp
module, but
because these errors are from an optional dependency, the installation should finish
successfully.
You may also see npm warnings of Possible EventEmitter memory leak
detected
, but these are spurious and do not indicate a memory leak or any other
issue.
What to do next
Obtain an IBM Cloud API Key for authenticating with the toolkit.
- Obtain the API Key by completing the following steps:
- Browse to the IBM Cloud Identity and Access Management page.
- In the navigation list, click IBM Cloud API Keys.
- On the IBM Cloud API Keys page, click Create an IBM Cloud API key.
- In the Create API key dialog box, provide a Name and a Description for your new key, and then click Create.
- In the Create API key message box, either Copy or
Download the key to make sure you save a copy. If you save the file, it is
named apiKey.json.Attention: Do not navigate away from the page until you have saved the key. Once you lose this message, you cannot obtain a copy of the key (in that case, delete the key and create a new one).
- Log in to the toolkit with the new API Key and the following
command:
apic login --server=Cloud.apiconnect.ibmcloud.com --apikey=Your_new_api_key
In the command,
Cloud
is the hosted instance of API Connect you are connecting to; for example,us
for US South, oreu-de
for Frankfurt. In Reserved Instance, this is the host name that you use to access API Manager (begins withmgr-
).
Uninstalling the toolkit
Before you begin
apic stop --all
home_dir\.apiconnect
directory, where
home_dir is the home directory of the user account under which the toolkit was
installed. When uninstalling, you have the option to either keep or delete the configuration
settings. The default behavior is to delete the
home_dir\.apiconnect
directory. Use the
--no-config-clear
command to preserve the configuration settings.Procedure
Updating your toolkit installation
Before you begin
apic stop --all
Procedure
What to do next
If you previously used a username and password to authenticate in the API Connect Developer Toolkit, then you must start using API Key authentication instead.
- Obtain the API Key by completing the following steps:
- Browse to the IBM Cloud Identity and Access Management page.
- In the navigation list, click IBM Cloud API Keys.
- On the IBM Cloud API Keys page, click Create an IBM Cloud API key.
- In the Create API key dialog box, provide a Name and a Description for your new key, and then click Create.
- In the Create API key message box, either Copy or
Download the key to make sure you save a copy. If you save the file, it is
named apiKey.json.Attention: Do not navigate away from the page until you have saved the key. Once you lose this message, you cannot obtain a copy of the key (in that case, delete the key and create a new one).
- Log in to the toolkit with the new API Key and the following
command:
apic login --server=Cloud.apiconnect.ibmcloud.com --apikey=Your_new_api_key
In the command,
Cloud
is the hosted instance of API Connect you are connecting to; for example,us
for US South, oreu-de
for Frankfurt. In Reserved Instance, this is the host name that you use to access API Manager (begins withmgr-
).