How to configure Oracle OCI CLI in 5 minutes

Guillermo Musumeci
2 min readNov 18, 2019

The Oracle OCI CLI is a tool built on Python (version 2.7.5 or 3.5 or later), running on Mac, Windows, or Linux, used to deploy Oracle Cloud Infrastructure.

The Python code makes calls to Oracle Cloud Infrastructure APIs to provide the functionality implemented for the various services. These are REST APIs that use HTTPS requests and responses.

1. Requirements:

We will need to generate the private key & fingerprint and copy the tenancy_ocid & user_ocid from the console to configure the OCI Provider.

The process is described in detail in the following link: https://docs.cloud.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm

2. Installing OCI CLI in macOS, Linux, and Unix

To install the CLI in these operating systems, open your Terminal and type the following command:

bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"

3. Installing OCI CLI in Windows

Open the PowerShell console using the Run as Administrator option, and type the following line to configure PowerShell execution policy:

Set-ExecutionPolicy RemoteSigned

--

--

Guillermo Musumeci

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | ex-AWS | Entrepreneur | Book Author | Husband & Dad of ✌