oci-clilisted
Install: claude install-skill abdullahkhawer/devops-skills
# Oracle Cloud Infrastructure (OCI) CLI Skill
When running `oci` commands, always pass the `--profile` flag based on the target environment, and specify the region explicitly.
## Configuration
Update the profile map below with your OCI CLI profile names as configured in `~/.oci/config`:
| Environment | Profile | Compartment OCID |
|---|---|---|
| Production | `<your-prod-profile>` | `<your-prod-compartment-ocid>` |
| Staging / Non-Prod | `<your-nonprod-profile>` | `<your-nonprod-compartment-ocid>` |
## Default Region
Set your default region here: **`<your-default-region>`** (e.g. `us-ashburn-1`, `eu-frankfurt-1`).
Always pass `--region <your-default-region>` unless the user specifies a different region.
### Prerequisites (one-time setup by user)
If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.
```bash
brew install oci-cli
oci setup config
oci iam region list --profile <your-profile>
```
## Command Format
```bash
oci <service> <resource> <action> --profile <profile> --region <region> [--compartment-id <compartment-ocid>] [options]
```
### Examples
```bash
# Production
oci compute instance list --profile <your-prod-profile> --region <your-default-region> --compartment-id <your-prod-compartment-ocid>
# Staging / Non-Prod
oci compute instance list --profile <your-nonprod-profile> --region <your-default-region> --compartment-id <your-nonprod-compartment-oc