Cloud Storage Sync Configuration

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:
    python -m venv oracle-cli
  • 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:

  • 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.

    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:

  • /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-/directory.
To uninstall the CLI:

sudo yum remove python36-oci-cli

Google meet iconteams iconDemo iconVast Edge contact us icon
Copyrights © 29 March 2024 All Rights Reserved by Vast Edge Inc.