feat: integrate nexus API commands as first-class noun-verb subcommands by feluelle · Pull Request #2019 · astronomer/astro-cli

@feluelle

Auto-generate CLI commands from the Astronomer API spec via nexus and
register them directly on the root in noun-verb format (e.g.
`astro deployment create`). Nexus commands take priority; remaining
cloud commands fill gaps via automatic merge. This removes ~70
hand-written cloud commands now covered by the API spec.

Key changes:
- Add ConfigAdapter bridging astro-cli's viper config to nexus
- Register nexus commands in noun-verb format on root command
- Merge cloud commands underneath nexus nouns (nexus-first priority)
- Preserve `astro deploy` action semantics alongside nexus deploy noun
- Remove superseded deployment/workspace/organization cloud commands
  (CRUD, user/team/token management, inspect, hibernate, wake-up)
- Add interactive prompts for required body fields (with retry loops)
- Add delete confirmation prompts with --force bypass
- Pretty-print JSON output in terminals; raw JSON when piped
- Format API errors as "Error (<status>): <message>"
- Add BREAKING_CHANGES.md documenting all removals and changes

@feluelle feluelle changed the title Add nexus API integration as astro nexus subcommands Integrate nexus API commands as first-class noun-verb subcommands

Mar 6, 2026

@feluelle feluelle changed the title Integrate nexus API commands as first-class noun-verb subcommands feat: integrate nexus API commands as first-class noun-verb subcommands

Mar 6, 2026