Summary
Add shell completion support for the nemoclaw CLI to improve user experience.
Currently, users have to type full commands manually. Adding shell completion would help users discover and complete commands faster.
Proposed change
Add shell completion for:
- bash — generate completion script via
nemoclaw completion bash
- zsh — generate completion script via
nemoclaw completion zsh
- fish — generate completion script via
nemoclaw completion fish
Implementation approach
- Add a
completion subcommand to bin/nemoclaw.js that outputs the appropriate completion script
- For each shell type, generate completions for:
- Global commands: onboard, setup, setup-spark, deploy, start, stop, status, list, help
- Sandbox-scoped actions: connect, status, logs, policy-add, policy-list, destroy
- Sandbox names from registry
Example usage
Additional considerations
- Detect current shell automatically when run without arguments
- Provide installation instructions in the completion output
Related
- This is a common pattern in CLI tools (e.g., docker, kubectl, helm)
Summary
Add shell completion support for the nemoclaw CLI to improve user experience.
Currently, users have to type full commands manually. Adding shell completion would help users discover and complete commands faster.
Proposed change
Add shell completion for:
nemoclaw completion bashnemoclaw completion zshnemoclaw completion fishImplementation approach
completionsubcommand tobin/nemoclaw.jsthat outputs the appropriate completion scriptExample usage
Additional considerations
Related