What is o - a smart oci-cli wrapper
mastero is a wrapper for the Oracle Cloud Infrastructure oci command line interface designed to improve user experience. It provides several key capabilities:
- Command Shortcuts: Quickly find commands and get usage info using intuitive, automatic shortcuts (e.g.,
list subninstead ofnetwork subnet list). - Resource Name Resolution: Run commands using human-readable resource names instead of long, complex OCIDs.
- Human-Readable Output: Transform JSON output into clean, formatted tables. You can specify exactly which fields to display using a selector syntax like
name#shape#state.
Note: o is not a replacement for oci. The oci CLI must be installed and configured for o to function.
# Example of transforming a short command into a full OCI command
$ o list subn -c sales -v west -a
# Example of human-readable output with field selection
$ o -o name#shape#shape-conf.ocpus#state list comp inst -c kevco.
display-name shape ocpus lifecycle-state
atos VM.Standard.E4.Flex 1.0 STOPPED
cron VM.Standard.A1.Flex 1.0 RUNNING