| copyright |
|
||
|---|---|---|---|
| lastupdated | 2020-03-19 | ||
| keywords | install CLI plug-in, install CLI plugin, update CLI plug-in, update CLI plugin, uninstall CLI plug-in, uninstall CLI plugin, Key Protect CLI plug-in, Key Protect CLI plugin, KMS plug-in, KMS plugin | ||
| subcollection | key-protect |
{:shortdesc: .shortdesc} {:screen: .screen} {:pre: .pre} {:table: .aria-labeledby="caption"} {:external: target="_blank" .external} {:codeblock: .codeblock} {:tip: .tip} {:note: .note} {:important: .important} {:term: .term}
{: #set-up-cli}
You can use the {{site.data.keyword.keymanagementservicelong_notm}} CLI plug-in to help you create, import, and manage encryption keys.
To find out more about using the {{site.data.keyword.keymanagementserviceshort}} CLI plug-in, check out the {{site.data.keyword.keymanagementserviceshort}} CLI reference doc. {: tip}
{: #install-cli}
Before you can set up the {{site.data.keyword.keymanagementserviceshort}} CLI plug-in, install the {{site.data.keyword.cloud_notm}} CLI{: external}.
To install the CLIs:
-
Install the {{site.data.keyword.cloud_notm}} CLI{: external}.
After you install the CLI, you can run
ibmcloudcommands to interact with your cloud services. -
Log in to {{site.data.keyword.cloud_notm}}.
ibmcloud login
{: pre}
If the login fails, run the
ibmcloud login --ssocommand to try again. The--ssoparameter is required when you log in with a federated ID. If this option is used, go to the link listed in the CLI output to generate a one-time passcode. {: note} -
To start managing encryption keys, install the {{site.data.keyword.keymanagementserviceshort}} CLI plug-in.
ibmcloud plugin install key-protect -r "IBM Cloud"{: pre}
-
Optional: Verify that the plug-in was installed successfully.
ibmcloud plugin list
{: pre}
{: #update-cli}
You might want to update CLI periodically to use new features.
To update the CLI:
-
Log in to {{site.data.keyword.cloud_notm}} with the {{site.data.keyword.cloud_notm}} CLI{: external}.
ibmcloud login
{: pre}
If the login fails, run the
ibmcloud login --ssocommand to try again. The--ssoparameter is required when you log in with a federated ID. If this option is used, go to the link listed in the CLI output to generate a one-time passcode. {: note} -
Install the update from the plug-in repository.
ibmcloud plugin update key-protect -r "IBM Cloud"{: pre}
-
Optional: Verify that the plug-in was updated successfully.
ibmcloud plugin list
{: pre}
{: #uninstall-cli}
-
Log in to {{site.data.keyword.cloud_notm}} with the {{site.data.keyword.cloud_notm}} CLI{: external}.
ibmcloud login
{: pre}
If the login fails, run the
ibmcloud login --ssocommand to try again. The--ssoparameter is required when you log in with a federated ID. If this option is used, go to the link listed in the CLI output to generate a one-time passcode. {: note} -
Install the update from the plug-in repository.
ibmcloud plugin uninstall key-protect
{: pre}
-
Optional: Verify that the plug-in was uninstalled successfully.
ibmcloud plugin list
{: pre}