diff --git a/content/install-guides/oci-cli.md b/content/install-guides/oci-cli.md index 18154282f..cd5a830af 100644 --- a/content/install-guides/oci-cli.md +++ b/content/install-guides/oci-cli.md @@ -22,7 +22,7 @@ tool_install: true weight: 1 --- -[OCI CLI](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm) is a cross-platform command-line tool that can be installed locally on development computers. OCI CLI is used to connect to OCI and execute administrative commands on OCI resources. +The Oracle Cloud Infrastructure Command Line Interface (OCI CLI) is a cross-platform command-line tool that can be installed locally on development computers. OCI CLI is used to connect to OCI and execute administrative commands on OCI resources. It is available for a variety of operating systems and Linux distributions and has multiple ways to install it. @@ -48,53 +48,51 @@ If you see a different result, you are not using an Arm computer running 64-bit ## Download and Install -The easiest way to install OCI CLI for Ubuntu on Arm is to use the installer script. +The easiest way to install OCI CLI for Ubuntu on Arm is to use the install script. -Install OCI using the command below. - -```bash { target="ubuntu:latest" } -bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)" -``` -Hit return for the first prompt then run accept all. To run a 'silent' install that accepts all default values with no prompts, use the --accept-all-defaults parameter. +You can run an automated install with default values or an interactive install to change the default values. +To run an an automated install with default values run: ```bash { target="ubuntu:latest" } - --accept-all-defaults +curl -o install.sh https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh +bash ./install.sh --accept-all-defaults ``` -Otherwise respond to the Installation Script Prompts if you wish to make a change. - +To run an interactive install that allows you to change default values run: +```console +bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)" +``` -Verify OCI CLI installed. +Run the command below to add the `oci` command to your search path: ```bash { target="ubuntu:latest" } -oci --version +source $HOME/.bashrc ``` - Run the command below to have OCI work after the initial install. +Verify OCI CLI is installed using the `--version` option: -```bash { target="ubuntu:latest" } -source $HOME/.bashrc +```bash { target="ubuntu:latest", env_source="~/.bashrc" } +oci --version ``` +Configure OCI CLI using the `setup config` command: -Run the command below to get started on OCI. -```bash { target="ubuntu:latest" } +```console oci setup config ``` +To complete the setup you will need your OCID and API key. -After 'oci setup config' login to the OCI web console to access your OCID and API key you will need this later. +Log in to the OCI web console to access your OCID and API key. -To locate your OCID you open the Profile menu and click Tenancy: . +Open the Profile menu and click Tenancy: to locate your OCID. ![alt-text #center](https://user-images.githubusercontent.com/89662128/249609571-34848e91-c4a5-4266-b5e3-45d48f797de9.png) - To locate your API KEYS open your profile and click API KEYS: ![alt-text #center](https://user-images.githubusercontent.com/89662128/249819544-faa03f40-6d4f-448a-aaef-25870cf3a48c.jpeg "Click add API key, from there generate your API key pair") - -After a successful log in, you can use the [OCI CLI](../oci-cli) and automation tools like [Terraform](../terraform) from the terminal. +After a successful log in, you can use the OCI CLI and automation tools like [Terraform](../terraform) from the terminal.