Documentation for key Commando features.
- Auto-Discovery - Commands discovered from exports automatically
- Module Metadata - Customize groups with
__module__export - Subcommand Groups - Organize commands under namespaces
- Commander Integration - Rich CLI via Commander.js
- List modules in
.commando/config.yml - Export commands from module files (auto-discovery)
- Add
__module__to customize group name (optional) - Framework groups commands automatically (subcommand groups)
- Commander parses and invokes commands (integration)
# .commando/config.yml
modules:
- ./website// .commando/website.ts
export const __module__ = {
group: 'website',
description: 'Website deployment'
};
export const deploy: CommandoCommand = {
description: 'Deploy website',
defineCommand: (cmd) => {
cmd
.argument('<env>', 'Environment')
.option('--dry-run', 'Preview');
},
execute: async (options, args, context) => {
const env = args[0];
console.log(`Deploying to ${env}`);
}
};Result: cmdo website deploy staging --dry-run
- docs/command-patterns.md - Quick reference for writing commands
- docs/libraries/ - CLI library reference