$ oc get ConsoleCLIDownload hcp-cli-download -o json | jq -r ".spec"
The hosted control planes command-line interface, hcp
, is a tool that you can use to get started with hosted control planes. For Day 2 operations, such as management and configuration, use GitOps or your own automation tool.
You can install the hosted control planes command-line interface (CLI), hcp
, by using the CLI.
Get the URL to download the hcp
binary by running the following command:
$ oc get ConsoleCLIDownload hcp-cli-download -o json | jq -r ".spec"
Download the hcp
binary by running the following command:
$ wget <hcp_cli_download_url> (1)
1 | Replace hcp_cli_download_url with the URL that you obtained from the previous step. |
Unpack the downloaded archive by running the following command:
$ tar xvzf hcp.tar.gz
Make the hcp
binary file executable by running the following command:
$ chmod +x hcp
Move the hcp
binary file to a directory in your path by running the following command:
$ sudo mv hcp /usr/local/bin/.
Verify that you see the list of available parameters by running the following command:
$ 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 . |
You can install the hosted control planes command-line interface (CLI), hcp
, by using the OKD web console.
From the OKD 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:
$ tar xvzf hcp.tar.gz
Run the following command to make the binary file executable:
$ chmod +x hcp
Run the following command to move the binary file to a directory in your path:
$ sudo mv hcp /usr/local/bin/.
Verify that you see the list of available parameters by running the following command:
$ 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 . |
You can install the hosted control planes command-line interface (CLI), hcp
, by using the content gateway.
Navigate to the content gateway and download the hcp
binary.
Unpack the downloaded archive by running the following command:
$ tar xvzf hcp.tar.gz
Make the hcp
binary file executable by running the following command:
$ chmod +x hcp
Move the hcp
binary file to a directory in your path by running the following command:
$ sudo mv hcp /usr/local/bin/.
Verify that you see the list of available parameters by running the following command:
$ 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 . |