def cli_usage [] {
    let cli_name = ($env | get -o RUN_NAME)
    print "USAGE:"
    print $"  (ansi blue)($cli_name)(ansi reset) <COMMAND> [OPTIONS]"
    print ""
    print "COMMANDS:"
    print "  init              Initialize a new project"
    print "  status            Show project status"
    print "  phase             Manage project phases"
    print "  tool              Manage tools"
    print "  checklist         Manage checklists"
    print "  security          Security management"
    print "  config            Show configuration"
    print "  export            Export project data"
    print "  import            Import project data"
    print ""
    print "OPTIONS (Global):"
    print "  -v, --verbose                Show verbose output"
    print "  -p, --project <NAME>         Project name (auto-detected if omitted)"
    print "      --config <PATH>          Configuration file path (overrides auto-discovery)"
    print "      --remote                 Use remote API instead of local database"
    print "      --api-url <URL>          API server base URL (default: http://localhost:3000)"
    print ""
    print "EXAMPLES:"
    print $"  ($cli_name) init .              # Initialize project in current directory"
    print $"  ($cli_name) status              # Show project status"
    print $"  ($cli_name) phase current       # Show current phase"
    print ""
    print "For more info:"
    print $"  ($cli_name) --help              # Show complete help"
    print $"  ($cli_name) <COMMAND> --help    # Show command-specific help"
}
