Skip to content

Add --team-name support to pool CLI commands#68110

Merged
o-nikolas merged 1 commit into
apache:mainfrom
aws-mwaa:onikolas/pool-team-cli
Jun 8, 2026
Merged

Add --team-name support to pool CLI commands#68110
o-nikolas merged 1 commit into
apache:mainfrom
aws-mwaa:onikolas/pool-team-cli

Conversation

@o-nikolas

@o-nikolas o-nikolas commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Add the ability to assign pools to teams via the CLI:

  • airflow pools set --team-name
  • Pool import/export JSON includes team_name field
  • Pool list/get output shows team_name column

Validates that multi_team mode is enabled when team_name is provided.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

Add the ability to assign pools to teams via the CLI:
- airflow pools set --team-name <team>
- Pool import/export JSON includes team_name field
- Pool list/get output shows team_name column

Validates that multi_team mode is enabled when team_name is provided.

@vincbeck vincbeck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to approve if needed but this is not needed, airflowctl will very soon replace airflow CLI for this kind of operation. And airflowctl is just a wrapper on top of Airflow API, so it is already handled

@o-nikolas

Copy link
Copy Markdown
Contributor Author

Happy to approve if needed but this is not needed, airflowctl will very soon replace airflow CLI for this kind of operation. And airflowctl is just a wrapper on top of Airflow API, so it is already handled

Yeah, fair, but even if there is a little bit of a gap I think we should include this. We've already had some folks hit this and be confused that it isn't available on the CLI.

@o-nikolas o-nikolas merged commit f90ebd0 into apache:main Jun 8, 2026
95 checks passed
@o-nikolas o-nikolas deleted the onikolas/pool-team-cli branch June 8, 2026 16:47
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.3.0 milestone Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants