Basic usage
Pass your request as a quoted argument toopsh:
Examples
Exit codes
Flags
--print-only
Preview the generated command without running it. Opsh displays the command and explanation, then exits without executing anything:
--shell
Override shell detection for the session. Opsh normally detects your current shell automatically, but you can force it to generate commands for a specific shell:
zsh and bash.
Using one-shot mode in scripts and automation
One-shot mode is well-suited for automation workflows because it exits cleanly after each command. You can capture the exit code to handle success and failure:--print-only to preview commands in a CI or review workflow without executing anything.

