How to Install CLI Windows?
Step 1: Installing Python
Install a supported version of Python from the Python Windows downloads page. During installation, choose to add Python to the PATH and/or environment variables (depending on the prompt).
Step 2: Creating and Configuring a Virtual Environment
The venv Python module is a virtual environment builder that lets you create isolated Python environments. We recommend installing the CLI in a virtual environment.
Installing and Activating your Virtual Environment.
After Python is installed, set up a virtual environment for your operating system using the following steps.
- Navigate to the directory in which you would like to create the virtual environment.
- Create the virtual environment by running the following command:
- Activate the virtual environment by running the following command:
python -m venv oracle-cli
oracle-cli/Scripts/activate
Step 3: Installing the Command Line Interface
You can download the CLI from GitHub or install the package from Python Package Index (PyPI).
To install using the GitHub download:
- Download and unzipoci-cli.zip.
- Run the following command.
pip install oci_cli-*-py2.py3-none-any.whl
To install using PyPI, run the following command:
pip install oci-cli
For information on how to start a CLI session, see Starting a CLI Session
How to Install CLI LINUX?
Linux and Unix (Including Oracle Linux 8)
- Open a terminal.
- To run the installer script, run the following command.
- /usr/lib/python3.6/site-packages/oci_cli
- /usr/lib/python3.6/site-packages/services
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.
Oracle Linux 7
If you're using Oracle Linux 7, you can use yum to install the CLI.
To use yum to install the CLI:
sudo yum install python36-oci-cli
The CLI will be installed to the Python site packages:
Documentation and examples will be installed in the/usr/share/doc/python36-oci-cli-
To uninstall the CLI:
sudo yum remove python36-oci-cli
About Vast Edge Simplified Cloud Solution
Vast Edge is a global Oracle gold partner, a leading NetSuite SuiteLife partner, Cloud Select, CSP, and velocity designations. Since 2004, Vast Edge has been providing cloud consulting services and has assisted 70+ customers to successfully migrate to cloud till date. Vast Edge has immense knowledge of Oracle Storage Solutions, Oracle SaaS, PaaS, and IaaS products with 100+ Trained Engineers and 40+ Oracle Certified experts to make your cloud journey smooth and successful.
Vast Edge was mentioned on Forbes by Oracle for successfully migrating customers from other clouds and on-prem to Oracle cloud and was recognized by Oracle as one of the top System Integrators at Jan 2019 Seattle event.
Vast Edge offers Small and Medium Business Discounts.
