Skip to content

Fix wrong command and API wording in airflowctl docs and help - #75058

Merged
Lee-W merged 1 commit into
apache:mainfrom
mattwang44:docs-airflowctl-help-text-fixes
Oct 19, 2026
Merged

Lee-W merged 1 commit into
apache:mainfrom
mattwang44:docs-airflowctl-help-text-fixes

Conversation

@mattwang44

@mattwang44 mattwang44 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

The airflowctl how-to used airflowctl dagrun trigger --dag-id=..., which fails with "invalid choice"; it is now airflowctl dags trigger <dag_id>.

The --api-url and auth login help said airflowctl talks to the "metadata database" and needs a JWT token. It talks to the API server, and auth login also accepts a username and password; the help now says so, with images regenerated by the prek hook. Also fixes a clt -> ctl typo in the README.

Ran the updated how-to against a real API server; airflowctl tests and the docs build pass.


Was generative AI tooling used to co-author this PR?

The how-to guide showed `airflowctl dagrun trigger --dag-id=...`, which
fails with "invalid choice: 'trigger'": triggering lives under
`airflowctl dags trigger` and takes the Dag id as a positional argument,
so users copying the example got an error straight away.

The `--api-url` and `auth login` help texts described airflowctl as
talking to the "metadata database" and said a JWT token must be passed.
airflowctl only talks to the Airflow API server, and `auth login` also
accepts a username and password (prompting for missing ones in a
terminal), so the old text pointed users at the wrong component and
hid a supported login path.

The README also pointed at a non-existent `airflowctl/clt/commands/`
directory.
@mattwang44
mattwang44 force-pushed the docs-airflowctl-help-text-fixes branch from 30b1980 to b84b784 Compare October 19, 2026 05:49
@Lee-W
Lee-W merged commit 2be399f into apache:main Oct 19, 2026
85 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: airflow-ctl/v0-1-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
❌ airflow-ctl/v0-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 2be399f airflow-ctl/v0-1-test

This should apply the commit to the airflow-ctl/v0-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

@mattwang44
mattwang44 deleted the docs-airflowctl-help-text-fixes branch October 19, 2026 19:14
mattwang44 added a commit to mattwang44/airflow that referenced this pull request Oct 20, 2026
Lee-W pushed a commit that referenced this pull request Oct 20, 2026
shahar1 pushed a commit that referenced this pull request Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants