oci-cli

Automate Oracle Cloud Infrastructure CLI workflows across profiles and compartments.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/tomz/agent-skills --skill oci-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oci-cli
Source: https://github.com/tomz/agent-skills/tree/main/oci-cli
Command: npx skills add https://github.com/tomz/agent-skills --skill oci-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configuring and using the Oracle Cloud Infrastructure (OCI) CLI across multiple profiles, regions, and authentication methods is error-prone and time-consuming. This guide consolidates patterns, best practices, and examples to streamline secure, repeatable OCI automation.

Core Features & Use Cases

  • Comprehensive OCI CLI patterns for installation, config, and authentication across environments.
  • Quick references for common commands, output formats, and JMESPath queries to manage OCI resources.
  • Real-world scenarios including multi-profile setups, compartment and tenancy navigation, and scripting routine tasks.

Quick Start

Run the OCI CLI using a configured profile to list compartments.

Frequently Asked Questions about oci-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure OCI CLI for multiple profiles and authentication methods?

OCI CLI configuration supports multiple named profiles and authentication methods by defining separate API keys, config files, and key permissions within a single configuration file. This allows you to switch between environments and compartments securely without re-authenticating.

What is the best way to automate routine Oracle Cloud Infrastructure administration tasks?

Automating Oracle Cloud Infrastructure tasks is best handled by applying OCI CLI patterns for routine administration. Using standard OCI CLI commands within scripts allows repeatable resource management, compartment navigation, and secure execution across multiple tenancy environments.

Does OCI CLI support JMESPath queries for filtering command output?

Yes, OCI CLI supports JMESPath queries to filter and format command output. This feature allows precise extraction of resource data from standard OCI CLI commands, streamlining responses for scripting and automated workflow processing.

Can I manage resources across different OCI compartments using the command line?

Yes, you can manage resources across different OCI compartments using the command line. OCI CLI patterns provide methods for compartment and tenancy navigation, allowing targeted resource administration by specifying compartment IDs within your configured profiles.

How do I handle common errors during Oracle Cloud Infrastructure CLI workflows?

Handling Oracle Cloud Infrastructure CLI errors involves applying established patterns for secure usage and error handling. The guide provides real-world scenarios covering standard OCI CLI commands, configuration validation, and authentication troubleshooting to resolve common workflow failures.