codity clismith
Convert natural language into shell commands. Describe what you want to do, and Codity generates the right command, with safety ratings and explanations.
Usage
codity clismith "<query>" [flags]
Flags
| Flag | Description |
|---|---|
--dry-run |
Show the generated command without offering to run it |
Examples
codity clismith "how to stop all docker containers"
codity clismith "find large files over 100MB"
codity clismith "list all open ports" --dry-run
Output
For each query, Codity returns:
- Generated command: The shell command to run
- Severity: Safety rating: safe, moderate, or dangerous
- Explanation: What the command does
- Alternatives: Other approaches you could take
Safety Ratings
Commands are rated by risk level and require different levels of confirmation:
| Severity | Confirmation Required |
|---|---|
| Safe | None, runs immediately if selected |
| Moderate | Requires y or yes |
| Dangerous | Requires explicit yes (not just y) |
Interactive Menu
After generating a command, you are presented with options:
- (C)opy: Copy the command to your clipboard
- (R)un: Execute the command (with confirmation if needed)
- (Q)uit: Exit without action
warningAlways review generated commands before running them, especially those rated as moderate or dangerous. Codity provides safety ratings as guidance, but you should verify commands match your intent.

