mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
54 lines
1.7 KiB
Plaintext
54 lines
1.7 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.
|
|
|
|
.Prerequisites
|
|
|
|
* On an {product-title} cluster, you have installed {mce} 2.5 or later. The {mce-short} is automatically installed when you install Red{nbsp}Hat Advanced Cluster Management. You can also install {mce-short} without Red{nbsp}Hat Advanced Management as an Operator from {product-title} OperatorHub.
|
|
|
|
.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/.
|
|
----
|
|
|
|
[NOTE]
|
|
====
|
|
If you download the CLI on a Mac computer, you might see a warning about the `hcp` binary file. You need to adjust your security settings to allow the binary file to be run.
|
|
====
|
|
|
|
.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`.
|