I’m attempting to use the airflow REST API of a deployment following the official documentation (Make requests to the Airflow REST API | Astronomer Documentation). The second step is to use astro deployment inspect -n dev -k metadata.webserver_url
. However, when I run that command, it prints the help for astro deployment
and doesn’t list inspect
as a sub-command.
$ astro deployment inspect -n dev -k metadata.webserver_url
Error: unknown shorthand flag: 'n' in -n
Usage:
astro deployment [command]
Aliases:
deployment, de, deployments
Available Commands:
airflow Manage airflow deployments
create Create a new Astronomer Deployment
delete Delete an Airflow Deployment
list List Airflow Deployment
logs Stream logs from an Airflow Deployment
runtime Manage runtime deployments
service-account Manage astronomer service accounts
team Manage deployment team resources
update Update Airflow Deployments
user Manage Deployment user resources
Flags:
-h, --help help for deployment
--workspace-id string ID of the workspace in which you want to manage deployments, you can leave it empty if you want to use your current context's workspace ID
Global Flags:
--verbosity string Log level (debug, info, warn, error, fatal, panic (default "warning")
Use "astro deployment [command] --help" for more information about a command
The inspect sub-command is documented (astro deployment inspect | Astronomer Documentation), and doesn’t list any reason why it would be filtered out. I also couldn’t find any reason in the for it to be filtered out.
I’ve logged in successfully and can run other commands like astro deployment list
. Why isn’t it this sub-command available?
(links deliberately broken because the “new users can’t post more than one link”)