mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
// Module included in the following assemblies:
|
|
// * hosted-control-planes/hcp-prepare/hcp-cli.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="hcp-cli-console_{context}"]
|
|
= Installing the {hcp} command-line interface by using the web console
|
|
|
|
You can install the {hcp} command-line interface (CLI), `hcp`, by using the {product-title} web console.
|
|
|
|
.Procedure
|
|
|
|
. From the {product-title} web console, click the *Help icon* -> *Command Line Tools*.
|
|
|
|
. Click *Download hcp CLI* for your platform.
|
|
|
|
. Unpack the downloaded archive by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ tar xvzf hcp.tar.gz
|
|
----
|
|
|
|
. Run the following command to make the binary file executable:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ chmod +x hcp
|
|
----
|
|
|
|
. Run the following command to move the binary file to a directory in your path:
|
|
+
|
|
[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`.
|