1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/hcp-cli-gateway.adoc
2024-09-11 05:57:28 +00:00

45 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
// * hosted-control-planes/hcp-prepare/hcp-cli.adoc
:_mod-docs-content-type: PROCEDURE
[id="hcp-cli-gateway_{context}"]
= Installing the {hcp} command-line interface by using the content gateway
You can install the {hcp} command-line interface (CLI), `hcp`, by using the content gateway.
.Procedure
. Navigate to the link:https://developers.redhat.com/content-gateway/rest/browse/pub/mce/clients/hcp-cli/[content gateway] and download the `hcp` binary.
. Unpack the downloaded archive by running the following command:
+
[source,terminal]
----
$ tar xvzf hcp.tar.gz
----
. Make the `hcp` binary file executable by running the following command:
+
[source,terminal]
----
$ chmod +x hcp
----
. Move the `hcp` binary file to a directory in your path by running the following command:
+
[source,terminal]
----
$ sudo mv hcp /usr/local/bin/.
----
.Verification
* Verify that you see the list of available parameters by running the following command:
+
[source,terminal]
----
$ hcp create cluster <platform> --help <1>
----
+
<1> You can use the `hcp create cluster` command to create and manage hosted clusters. The supported platforms are `aws`, `agent`, and `kubevirt`.