Metadata-Version: 2.4
Name: apache-airflow-ctl
Version: 0.1.2
Summary: Apache Airflow command line tool for communicating with an Apache Airflow, using the API.
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-ctl/stable/index.html
Project-URL: Downloads, https://archive.apache.org/dist/airflow/airflow-ctl/
Project-URL: Homepage, https://airflow.apache.org/
Project-URL: Release Notes, https://airflow.apache.org/docs/apache-airflow-ctl/stable/changelog.html
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
Project-URL: Source Code, https://github.com/apache/airflow
Project-URL: LinkedIn, https://www.linkedin.com/company/apache-airflow/
Project-URL: Mastodon, https://fosstodon.org/@airflow
Project-URL: Bluesky, https://bsky.app/profile/apache-airflow.bsky.social
Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Classifier: Framework :: Apache Airflow
Requires-Python: !=3.14,>=3.10
Requires-Dist: argcomplete>=1.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: keyring>=25.7.0
Requires-Dist: lazy-object-proxy>=1.2.0
Requires-Dist: methodtools>=0.4.7
Requires-Dist: platformdirs>=4.3.6
Requires-Dist: pydantic>=2.11.0
Requires-Dist: rich-argparse>=1.0.0
Requires-Dist: structlog>=25.4.0
Requires-Dist: tabulate>=0.9.0
Requires-Dist: uuid6>=2024.7.10
Provides-Extra: dev
Requires-Dist: keyrings-alt>=5.0.2; extra == 'dev'
Description-Content-Type: text/markdown

<!--
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
 -->

# airflowctl

A command-line tool for interacting with Apache Airflow instances through the Airflow REST API. It offers a convenient interface for performing common operations remotely without direct access to the Airflow scheduler or webserver.

## Features

- Communicates with Airflow instances through the REST API
- Supports authentication using Airflow API tokens
- Executes commands against remote Airflow deployments
- Provides intuitive command organization with group-based structure
- Includes detailed help documentation for all commands

## Requirements

- Python 3.10 or later (compatible with Python >= 3.10 and < 3.13)
- Network access to an Apache Airflow instance with REST API enabled
- Keyring backend installed in operating system for secure token storage

## Usage

Access the tool from your terminal:

### Command Line

```bash
airflowctl --help
```

## Contributing

Want to help improve Apache Airflow? Check out our [contributing documentation](https://github.com/apache/airflow/blob/main/contributing-docs/README.rst).

### Additional Contribution Guidelines

- Please ensure API is running while doing development testing.
- There are two ways to have a CLI command,
  - Auto Generated Commands
  - Implemented Commands

#### Auto Generated Commands

Auto generation of commands directly from operations methods under `airflow-ctl/src/airflowctl/api/operations.py`.
Whenever operation is mapped with proper datamodel and response model, it will be automatically added to the command.

You can check each command with `airflowctl <command> --help` to see the available options.

#### Implemented Commands

Implemented commands are the ones which are not auto generated and need to be implemented manually.
You can check the implemented commands under `airflow-ctl/src/airflowctl/clt/commands/`.
