To convert a natural language prompt into a shell command, use the ai command followed by your prompt.
Basic Usage:
ai <prompt>
Example:
ai list all log files
After running a prompt, the CLI will provide the suggested script and an explanation. You can then choose to:
- Yes: Run the script.
- Revise: Edit the command via a new prompt.
- Cancel: Abort the operation.
Tip: If your prompt contains special characters like ? or * that your shell might interpret incorrectly, wrap the prompt in quotes:
ai 'what is my ip address'