PYTHON:
If you’re using Oracle Linux 7, you can 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
oci-cli command:
bash -c “$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)”
Installation Script Prompts
The installation script prompts you for the following information.
Windows and Linux: You are prompted to provide a location for installing the binaries and executables.
The script will install Python.
Note:
1.Will specify the directory for the oci-cli binaries.
2.Will create password files for oci-cli object movements.
SYNTAX FOR UPLOADING FILE TO OCI.
/u01/oracle-cli/oci os object bulk-upload -ns <NAMESPACE> -bn <BUCKET_NAME> –src-dir <SOURCE_DIR> –part-size 1024 –parallel-upload-count 10