Observed since 20 Oct, 21:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A command-line utility for interacting with Apache Airflow REST API
A command-line utility for interacting with the Airflow REST API. Compatible with both Airflow 2.9.x (basic auth) and 3.x (JWT auth).
uv tool install afcli
Or with pip:
pip install afcli
You can set authentication credentials using environment variables:
export AIRFLOW_HOST="airflow.example.com:8080" # Default: localhost:8080
export AIRFLOW_USER="admin"
export AIRFLOW_PASSWORD="your-password"
Command line arguments override environment variables:
afcli --host airflow.example.com:8080 --user admin --password secret list
By default, the tool connects to localhost:8080:
# Using environment variables
afcli list
# Using command line arguments
afcli --user admin --password secret status my_dag
afcli list
afcli list --limit 10 # Show only 10 DAGs
afcli list --all # Include inactive DAGs
afcli status <dag_id>
Shows DAG configuration and recent runs with color-coded states.
afcli pause <dag_id>
afcli unpause <dag_id>
afcli trigger <dag_id>
afcli trigger <dag_id> --config '{"key": "value"}'
afcli tasks <dag_id>
afcli tasks <dag_id> --run-id <specific_run_id>
Shows all tasks with color-coded states:
afcli logs <dag_id> <task_id>
afcli logs <dag_id> <task_id> --run-id <specific_run_id> --try-number 2
# Clear all failed tasks in the latest run
afcli clear <dag_id>
# Clear a specific task
afcli clear <dag_id> --task-id <task_id>
# Skip confirmation prompt
afcli clear <dag_id> -y
# Set credentials via environment
export AIRFLOW_USER=admin
export AIRFLOW_PASSWORD=secret
# List all DAGs
afcli list
# Check status of example_dag
afcli status example_dag
# Trigger example_dag with configuration
afcli trigger example_dag --config '{"date": "2024-01-01"}'
# View all tasks in the latest run
afcli tasks example_dag
# View logs for a specific task
afcli logs example_dag process_data
# Clear all failed tasks
afcli clear example_dag
The tool automatically detects and uses the appropriate authentication method:
/auth/token and includes it in API requests.Authentication happens transparently - simply provide your credentials and the tool will use the appropriate method.
# Install with test dependencies
uv pip install -e ".[test]"
# Run all tests
pytest
# Run with coverage
pytest --cov=afcli --cov-report=html
# Run specific test categories
pytest -m unit # Unit tests only
pytest -m integration # Integration tests only
# Use Makefile commands
make test # All tests
make test-cov # With coverage report
make test-unit # Unit tests only
pypistats · 57 observations shown. Missing days are unknown. Source category: overall: without mirrors.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-20 – 2026-10-20 | 3 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-17 – 2026-10-17 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-16 – 2026-10-16 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-15 – 2026-10-15 | 7 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-14 – 2026-10-14 | 7 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-13 – 2026-10-13 | 3 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-11 – 2026-10-11 | 6 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-10 – 2026-10-10 | 9 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-09 – 2026-10-09 | 13 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-08 – 2026-10-08 | 9 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-07 – 2026-10-07 | 7 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-06 – 2026-10-06 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-03 – 2026-10-03 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-02 – 2026-10-02 | 11 | 2026-10-21T16:10:05.1141493Z |
| 2026-10-01 – 2026-10-01 | 15 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-30 – 2026-09-30 | 6 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-29 – 2026-09-29 | 10 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-28 – 2026-09-28 | 5 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-27 – 2026-09-27 | 4 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-26 – 2026-09-26 | 5 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-25 – 2026-09-25 | 4 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-24 – 2026-09-24 | 5 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-23 – 2026-09-23 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-22 – 2026-09-22 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-21 – 2026-09-21 | 3 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-20 – 2026-09-20 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-19 – 2026-09-19 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-18 – 2026-09-18 | 5 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-17 – 2026-09-17 | 13 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-15 – 2026-09-15 | 24 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-14 – 2026-09-14 | 6 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-12 – 2026-09-12 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-09 – 2026-09-09 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-08 – 2026-09-08 | 3 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-07 – 2026-09-07 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-06 – 2026-09-06 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-05 – 2026-09-05 | 4 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-04 – 2026-09-04 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-09-01 – 2026-09-01 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-31 – 2026-08-31 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-28 – 2026-08-28 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-27 – 2026-08-27 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-24 – 2026-08-24 | 6 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-23 – 2026-08-23 | 4 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-20 – 2026-08-20 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-17 – 2026-08-17 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-14 – 2026-08-14 | 4 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-13 – 2026-08-13 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-09 – 2026-08-09 | 9 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-06 – 2026-08-06 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-05 – 2026-08-05 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-03 – 2026-08-03 | 6 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-02 – 2026-08-02 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-08-01 – 2026-08-01 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-07-27 – 2026-07-27 | 2 | 2026-10-21T16:10:05.1141493Z |
| 2026-07-24 – 2026-07-24 | 1 | 2026-10-21T16:10:05.1141493Z |
| 2026-07-23 – 2026-07-23 | 2 | 2026-10-21T16:10:05.1141493Z |
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.12 | 24 Jun 2025 | 9 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:2af0a08e25292f3344ffeae317a40db3090e6a869575de4382ec586b1cf0659a