Skip to content

Commit

Permalink
Merge pull request #374 from jasonrandrews/review
Browse files Browse the repository at this point in the history
edits to OCI CLI intall guide
  • Loading branch information
jasonrandrews authored Jun 29, 2023
2 parents 595fd9e + bc63de4 commit f836800
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions content/install-guides/oci-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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: <your_tenancy_name>.
Open the Profile menu and click Tenancy: <your_tenancy_name> 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.

0 comments on commit f836800

Please sign in to comment.