oci-cli
Oracle Cloud Infrastructure CLI
What it is and what it does
oci-cli is the official command-line interface for Oracle Cloud Infrastructure, maintained by Oracle Corp. It lets you manage OCI resources—compute instances, storage, networking, databases, and more—directly from the terminal. The package installs as a Python CLI tool with 14 runtime dependencies including cryptography, PyYAML, click, and prompt-toolkit to handle authentication, configuration parsing, and interactive command guidance.
The CLI supports interactive mode (via the -i flag) that provides command suggestions, parameter autocompletion, and color-coded guidance to distinguish required from optional parameters. It's designed for developers and operators who need to automate cloud infrastructure tasks, configure services, or integrate OCI management into scripts and CI/CD pipelines. The tool is production-stable and actively maintained.
Use it for:
- Automate Oracle Cloud Infrastructure provisioning and configuration in deployment scripts or CI/CD pipelines
- Interactively manage compute instances, storage buckets, and networking resources from the command line
- Query and monitor cloud resources using JMESPath filtering (jmespath dependency) for reporting or auditing
- Configure and troubleshoot OCI services without leaving the terminal or using the web console
- Integrate OCI resource management into shell scripts for infrastructure-as-code workflows
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Command-line interface for managing Oracle Cloud Infrastructure resources, providing interactive commands to create, configure, and monitor cloud services.
Yes, if you use Oracle Cloud Infrastructure. It is actively maintained, has no known vulnerabilities, supports modern Python versions (3.6–3.13), and installs with low friction. The permissive dual license poses no restrictions. Install it as the standard tool for OCI CLI operations.
Install
oci-cli on PyPI
pip
pip install oci-cliuv
uv add oci-clipoetry
poetry add oci-cliInstalling oci-cli
Before you install
Low install friction with a pure Python wheel distribution. Actively maintained with a release 3 days old. Supports Python 3.6 through 3.13.
License in practice
Dual-licensed under Universal Permissive License 1.0 and Apache License 2.0, both permissive licenses with minimal restrictions on use or redistribution.
Quickstart
pip install oci-cli
oci --help
oci -i
Requires Oracle Cloud Infrastructure account credentials configured locally (typically via ~/.oci/config file with API key or session token).
Verify before relying
- Whether interactive mode features (-i flag) require additional system dependencies beyond the listed runtime packages
- Performance characteristics or resource overhead when managing large numbers of cloud resources
- Specific Oracle Cloud account setup or authentication requirements beyond standard CLI configuration
Package facts
| License | Universal Permissive License 1.0 or Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 14 — oci, arrow, certifi, cryptography, jmespath, python-dateutil, pytz, six, terminaltables, pyOpenSSL, PyYAML, click, prompt-toolkit, setuptools |
| Maintenance | actively maintained — 3 days since the last release |
| First released | |
| Downloads | 2,275,253/month — #3,175 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: oci_cli-3.90.2-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
ociPython SDK for Oracle Cloud Infrastructure that…
permissive · top 5,000 on PyPI
duplocloud-clientCLI and Python SDK for managing DuploCloud…
permissive · top 15,000 on PyPI
oci-openaiProvides OpenAI-compatible Python clients for…
unclear · top 15,000 on PyPI
ocifsProvides a fsspec-compatible filesystem…
unclear · top 15,000 on PyPI
langchain-ociIntegrates LangChain with Oracle Cloud…
unclear · top 15,000 on PyPI
cumulusciCumulusCI automates Salesforce application…
permissive · top 15,000 on PyPI
ovs-dbgProvides command-line tools to parse, filter,…
permissive · top 15,000 on PyPI
stackit-iaasProvides Python bindings to create and modify…
permissive · top 15,000 on PyPI
openai-codex-cli-binProvides a local command-line interface to…
permissive · top 15,000 on PyPI
c7n-orgRuns Cloud Custodian policies in parallel…
permissive · top 5,000 on PyPI