awx) is the official command-line interface for Ansible AWX, providing programmatic access to AWX resources through a simple and intuitive command structure.
Overview
Theawxkit package provides:
- awx - The main CLI tool for interacting with AWX/Ansible Automation Platform
- akit - An interactive Python session with awxkit loaded
awxkit Python library and provides HTTP OPTIONS-based resource discovery and action mapping.
Requirements
- Python: 3.11 or higher (Python 3.11 and 3.12 are officially supported)
- Operating System: Linux or macOS
- Network Access: Connection to an AWX or Ansible Automation Platform instance
Installation Methods
Install from PyPI
The recommended way to install the AWX CLI is via pip:Install from GitHub
To install a specific version matching your AWX deployment:$VERSION with your AWX version (e.g., 23.4.0). To see all available releases, visit: https://github.com/ansible/awx/releases
Install from Source
For development or customization:Core Dependencies
The following dependencies are automatically installed:- PyYAML - YAML parsing support
- requests - HTTP client library
- setuptools - Python package utilities
Optional Dependencies
Output Formatting
For advanced JSON output filtering with jq:The jq extra requires
libtool and other build dependencies on some platforms. See jq PyPI page for platform-specific requirements.WebSocket Support
For real-time job output monitoring via WebSockets:Cryptography
For additional cryptographic functionality:Install All Optional Features
Verify Installation
After installation, verify the CLI is available:Platform-Specific Notes
Linux
On most Linux distributions, you can install directly with pip. Some distributions may require:macOS
On macOS, use Homebrew’s Python or the system Python:Virtual Environments
It’s recommended to use virtual environments to avoid conflicts:Ansible Automation Platform Considerations
When using AWX CLI with Red Hat Ansible Automation Platform 2.5 and later, you must set an environment variable:~/.bashrc, ~/.zshrc) to make it persistent:
Upgrade AWX CLI
To upgrade to the latest version:Uninstall
To remove the AWX CLI:Next Steps
After installation, proceed to:- Configuration - Set up authentication and connection settings
- Usage - Learn basic CLI commands and patterns
- Commands - Explore available resources and actions