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.

  • 1
    Navigate to the directory in which you would like to create the virtual environment.
  • 2
    Create the virtual environment by running the following command:
    python -m venv oracle-cli
  • 3
    Activate the virtual environment by running the following command:
    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:

  • 1
    Download and unzipoci-cli.zip.
  • 2
    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)

  • 1
    Open a terminal.
  • 2
    To run the installer script, run the following command.

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

Your Vision, Our Expertise

Elevating Your Software Product Engineering Journey with Vast Edge

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:

  • 1
    /usr/lib/python3.6/site-packages/oci_cli
  • 2
    /usr/lib/python3.6/site-packages/services

Documentation and examples will be installed in the/usr/share/doc/python36-oci-cli-/directory.
To uninstall the CLI:

sudo yum remove python36-oci-cli

Copyrights © 21 December 2024 All Rights Reserved by Vast Edge Inc.