If you're using Oracle Linux 9, you can use dnf
to install the CLI.
We strongly recommend running sudo dnf update
regularly to ensure your system is up-to-date by installing available updated RPMs.
To use dnf
to install the CLI:
sudo dnf -y install oraclelinux-developer-release-el9
sudo dnf install python39-oci-cli
The CLI will be installed to the Python site packages:
/usr/lib/python3.9/site-packages/oci_cli
/usr/lib/python3.9/site-packages/services
Documentation and examples will be installed in the /usr/share/doc/python39-oci-cli-<version>/
directory.
To uninstall the CLI:
sudo dnf remove python39-oci-cli
Oracle Linux 8
If you're using Oracle Linux 8, you can use dnf
to install the CLI.
Oracle Linux 8 uses Python 3.6 by default. For improved performance, we recommend that you upgrade to Python version 3.9 or later and install a compatible version of the CLI. For detailed instructions, see the manual installation instructions.
NoteWe strongly recommend running sudo dnf update
regularly to ensure your system is up-to-date by installing available updated RPMs.
To use dnf
to install the CLI:
sudo dnf -y install oraclelinux-developer-release-el8
sudo dnf install python36-oci-cli
The CLI will be installed to the Python site packages:
/usr/lib/python3.6/site-packages/oci_cli
/usr/lib/python3.6/site-packages/services
Documentation and examples will be installed in the /usr/share/doc/python36-oci-cli-<version>/
directory.
To uninstall the CLI:
sudo dnf remove python36-oci-cli
Oracle Linux 7
If you're using Oracle Linux 7, you can use yum to install the CLI.
TipOracle Linux 7 uses Python 3.6 by default. For improved performance, we recommend that you upgrade to Python version 3.9 or later and install a compatible version of the CLI. For detailed instructions, see the manual installation instructions.
To use yum to install the CLI:
sudo yum install python36-oci-cli
The CLI will be installed to the Python site packages:
/usr/lib/python3.6/site-packages/oci_cli
/usr/lib/python3.6/site-packages/services
Documentation and examples will be installed in the /usr/share/doc/python36-oci-cli-<version>/
directory.
To uninstall the CLI:
sudo yum remove python36-oci-cli
Mac OS
You can use Homebrew to install, upgrade, and uninstall the CLI on Mac OS.
To install the CLI on Mac OS with Homebrew:
brew update && brew install oci-cli
To upgrade your CLI install on Mac OS using Homebrew:
brew update && brew upgrade oci-cli
To uninstall the CLI on Mac OS using Homebrew:
WindowsYou can install the CLI on Windows by using the MSI installer or by using PowerShell.
To install the CLI on Windows using the MSI installer: NoteThe MSI CLI installer will overwrite any existing versions of the CLI on your Windows system. If you need to install multiple versions of the CLI, for subsequent installs create a virtual environment and use the manual installation method. For more information, see Manual and Offline Installations.
To install the CLI on Windows using PowerShell:
The installer enables auto-complete by installing and running a script. To allow this script to run, you must enable the RemoteSigned execution policy.
To configure the remote execution policy for PowerShell, run the following command.
Set-ExecutionPolicy RemoteSigned
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.ps1 -OutFile install.ps1
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.ps1'))
Respond to the Installation Script Prompts.
To run the installer script
withoutprompting the user, accepting the default settings, run the following command:
./install.ps1 -AcceptAllDefaults
The installer script automatically installs the CLI and its dependencies, Python and virtualenv. Before running the installer, be sure you meet the requirements.
NoteOracle Linux 8 and Oracle Linux Cloud Developer 7 have the CLI pre-installed.
bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"
Note
To run a 'silent' install that accepts all default values with no prompts, use the --accept-all-defaults
parameter.
To install the CLI in an environment not listed here, see Manual and Offline Installations.
Verifying the OCI CLI Installationoci --version
The installation script prompts you for the following information.
oci.exe
to your PATH.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4