Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, scoop, zypper 安装 oci-cli

查看 oci-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

代理安全

代理安全回答

oci-cli controls Oracle Cloud resources and account state.

凭据访问

Reads OCI config, API keys, tenancy data, and environment credentials.

远程变更

Can create, delete, or modify Oracle Cloud resources.

发布/制品风险

Can upload artifacts and deploy infrastructure changes.

推荐控制

Gate mutating oci commands and credential file access.

代理使用指南

Allow read-only listing; require approval for writes, deletes, and credential changes.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install oci-cli

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install oci-cli

MacPorts ports tree · net/oci-cli/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add oci-cli

Alpine Linux edge package indexes · oci-cli · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install oci-cli

Fedora Rawhide package metadata · oci-cli · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#oci-cli

nixpkgs package indexes · pkgs/by-name/oc/oci-cli/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install oci-cli

openSUSE Tumbleweed package metadata · oci-cli · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/oci-cli

Scoop official bucket manifest trees · bucket/oci-cli.json · 来源: api.github.com

概览

软件包摘要

Oracle Cloud Infrastructure CLI

命令和别名

  • create_backup_from_onprem
  • oci

历史

项目历史与用法

OCI CLI is Oracle's open source command-line interface for Oracle Cloud Infrastructure. It gives operators and developers a scriptable interface to OCI objects and services, covering the same core administrative surface as the web Console while adding command-line workflows such as automation and batch execution.

项目历史

The upstream project is maintained by Oracle and distributed from the oracle/oci-cli repository. The README identifies it as the command-line interface for Oracle Cloud Infrastructure, with Oracle as maintainer and community contributions accepted through the public repository.

The README copyright line covers 2016 and 2019, matching OCI CLI's role as part of Oracle's post-Oracle Cloud Infrastructure tooling generation. Later project evolution is visible in the repository's changelog and release stream, while Oracle documentation remains the canonical user-facing reference for installation, configuration, troubleshooting, and command documentation.

The project expanded beyond a basic noninteractive command runner with interactive mode, shell guidance, suggestions, color-coded required and optional parameters, quick references, offline installation assets, and a container image published through GitHub Container Registry.

采用历史

OCI CLI became a standard cross-platform entry point for OCI automation because Oracle documents installation paths for macOS, Linux, Oracle Linux, Fedora, and Windows, and because Homebrew packages it as `oci-cli` with the `oci` executable.

Homebrew's formula API generated on 2026-07-01 reports 40,195 installs over 365 days and 11,792 installs over 90 days, showing sustained package-manager use outside Oracle's own installers. The same API lists binary bottles for macOS and Linux variants, making the package available to both workstation and automation environments.

使用方式

Users configure OCI credentials and profiles, then run `oci` commands to inspect and manage cloud resources. Oracle's documentation frames the tool as usable on its own or alongside the Console, and the README points users to example commands, help output, interactive mode, and troubleshooting documentation.

The package matters operationally because cloud teams can place OCI actions in shell scripts, CI jobs, recovery procedures, and offline administrative environments. The container image path adds a reproducible way to run the CLI where installing Python dependencies directly is inconvenient.

为什么软件包爱好者会关心

For package cataloging, OCI CLI is a large vendor cloud CLI with its own release cadence, Python packaging lineage, OS-specific installers, Homebrew bottles, and a container distribution channel. It is also a useful example of a cloud provider CLI that straddles package managers, language packaging, and official documentation.

时间线

  • 2016: The repository license/copyright record begins in the same period as Oracle's public OCI tooling.
  • 2019: The README license line still names Oracle and the dual UPL-1.0 / Apache-2.0 licensing.
  • 2026-07-01: Homebrew formula metadata lists stable version 3.89.0 and 40,195 installs over the previous 365-day analytics window.

Related projects

  • OCI CLI sits beside Oracle's OCI SDK documentation and configuration model, and its container image is published from Oracle's GitHub container packages. It also overlaps with helper projects and integrations that wrap or invoke the `oci` executable in CI and shell workflows.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:infrastructure,cloud

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 4 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.oci/config
Windows
$Env:UserProfile\.oci\config

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.oci/oci_api_key.pem
Windows
%HOMEDRIVE%%HOMEPATH%\.oci\oci_api_key.pem

可执行文件

已安装的可执行文件

命令类型暴露范围备注
create_backup_from_onpremcli全局可执行文件
ocicli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本3.89.0
管理器更新时间2026-07-01
本地数据OK
上游not checked
检测到的最新版本未检测到

https://docs.cloud.oracle.com/iaas/Content/API/Concepts/cliconcepts.htm

安装元数据

软件包元数据

软件包键brew:oci-cli
版本3.89.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/oci-cli
主页https://docs.cloud.oracle.com/iaas/Content/API/Concepts/cliconcepts.htm
仓库https://github.com/oracle/oci-cli
上游文档https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cliconcepts.htm
许可证UPL-1.0 OR Apache-2.0
源码归档https://files.pythonhosted.org/packages/ba/36/935d19fd65be951730a74ad85a5d3ada84950606433b4e5a91da6e653a98/oci_cli-3.89.0.tar.gz
最后更新2026-07-01T13:20:46Z
Pulseupdated
依赖certifi, cryptography, libyaml, python@3.14
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameoci-cli
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

oci-cli

nix profile install nixpkgs#oci-cli
  • normalized package name match
  • 匹配方式:Oci Cli
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/oc/oci-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

oci-cli 3.77.0-r0

Oracle Cloud Infrastructure CLI

https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cliconcepts.htm

sudo apk add oci-cli
  • License: UPL-1.0 OR Apache-2.0
  • Architecture: x86_64
  • Source Package: oci-cli
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Oci Cli
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: oci-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

oci-cli-pyc 3.77.0-r0

Precompiled Python bytecode for oci-cli

https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cliconcepts.htm

sudo apk add oci-cli-pyc
  • License: UPL-1.0 OR Apache-2.0
  • Architecture: x86_64
  • Source Package: oci-cli
  • 1 依赖
  • normalized package name match
  • 匹配方式:Oci Cli
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: oci-cli-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

oci-cli 3.85.0-2.fc45

Command Line Interface for Oracle Cloud Infrastructure

https://github.com/oracle/oci-cli

sudo dnf install oci-cli
  • License: UPL-1.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: oci-cli
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Oci Cli
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: oci-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

oci-cli 3.83.0-1.1

Oracle Cloud Infrastructure CLI

https://docs.us-phoenix-1.oraclecloud.com/Content/API/SDKDocs/cli.htm

sudo zypper install oci-cli
  • License: Apache-2.0
  • Category: Development/Languages/Python
  • Architecture: noarch
  • Source Package: oci-cli
  • 15 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Oci Cli
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: oci-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

oci-cli

sudo port install oci-cli
  • normalized package name match
  • 匹配方式:Oci Cli
MacPorts ports tree · api.github.com · MacPorts ports tree: net/oci-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/oci-cli

scoop install main/oci-cli
  • normalized package name match
  • 匹配方式:Oci Cli
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/oci-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment