Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Oracle Cloud Infrastructure CLI

$ oci Official High Risk
Oracle · Cloud & Infra · UPL-1.0 OR Apache-2.0 · macos / linux / windows

The Oracle Cloud Infrastructure CLI (oci) emits JSON natively on every command, supports JMESPath --query filtering, --from-json payload files, --generate-full-command-json-input schema introspection, and --force for non-interactive operations.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install oci-cli
CLI vs MCP Decision CLI Preferred vs MCP

oci outputs structured JSON by default and generates exact request schemas via --generate-full-command-json-input without needing an MCP bridge.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Default JSON output, JMESPath --query, and --generate-full-command-json-input make complex OCI payloads discoverable.

  • JSON output by default; supports --query and --generate-full-command-json-input
Trust & Safety 19 / 25

Explicit --profile, compartment scoping, and confirmation prompts on deletes (unless --force) reduce accidents, though general --dry-run is missing.

  • Requires --force to bypass delete confirmations
Setup & Portability 11 / 15

Installable via Homebrew and pip, but Python dependencies are heavy and require PEM key setup in ~/.oci/config.

  • Homebrew oci-cli and PyPI oci-cli packages
Utility & Efficiency 14 / 15

Full OCI API coverage with --from-json and --query filtering.

  • Supports --from-json and client-side JMESPath projection
Maintenance & Lineage 10 / 10

Official Oracle repository (oracle/oci-cli) updated alongside OCI service launches.

  • First-party oracle/oci-cli repository
Docs & Verifiability 9 / 10

Auto-generated --help and full reference docs match the API spec.

  • Complete CLI reference generated from OCI OpenAPI specs

Security, Auth & Guardrails

Auth Modes
Config File Service Account Env API Key
Credential Storage

Reads API signing keys and compartment defaults from ~/.oci/config, or uses OCI_CLI_PROFILE and OCI_CLI_AUTH (e.g. instance/resource principals).

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

CLI is free (UPL-1.0 / Apache-2.0); OCI resource creation incurs cloud billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# OCI CLI Agent Rules
- Pin `--profile` and explicit `--compartment-id` OCIDs on every call.
- Use `--query` on `list` commands to strip verbose OCIDs and metadata.
- Never pass `--force` on `delete`/`terminate` commands without explicit user confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

List OCI regions subscribed by the tenancy
oci iam region-subscription list --query 'data[].{region:"region-name",status:status}'

Emits JSON by default and trims fields with JMESPath --query.

Inspect exact JSON input schema for a command
oci compute instance launch --generate-full-command-json-input

Prints the complete JSON payload template offline for safe parameter construction.

Strengths for Agents

  • + Outputs structured JSON by default without needing an extra output flag.
  • + --generate-full-command-json-input exposes full payload schemas offline.
  • + Built-in JMESPath --query trims long OCID-heavy responses.

Caveats & Pitfalls

  • ! Heavy Python distribution and long OCID identifiers increase setup and prompt friction.
  • ! Lacks a universal --dry-run flag for resource mutations.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI