I choose server with Oracle Linux 8 on OCI always free to complete the setup


Update server before installing the CLI.
[root@testserver tmp]# sudo dnf update

Install Oracle Developer Tools
[root@testserver ~]# sudo dnf -y install oraclelinux-developer-release-el8

Install python
[root@testserver ~]# dnf install python36-oci-cli

Check the OCI CLI version

Setup the OCI to work with our Cloud Account
[root@testserver ~]# oci setup config
Provide OCI User Profile OCID – Profile -> User settings -> OCID
Provide OCI Tenancy OCID – Profile -> Tenancy details -> OCID

Provide region –> Number#10 or ap-mumbai-1

Need to upload the API key on OCI user which will be using for authentication
OCI User Profile -> User settings -> API Keys

Add API key -> Paste the public key

This Completes OCI CLI Setup – Lets validate the setup
[root@testserver ~]# oci iam availability-domain list
[root@testserver ~]# oci iam compartment list

Thank you !
Happy Learning !!