Skip to main content

CLI tool to fetch Terraform AzureRM provider documentation from the official Terraform Registry

Project description

azurerm-cli

CLI tool to fetch Terraform AzureRM provider documentation from the official Terraform Registry.

Installation

# Install from PyPI
pip install azurerm-cli

# Or install from source
pip install -e .

Usage

Fetch documentation

# Fetch resource documentation (latest version)
azurerm-cli doc azurerm_virtual_machine

# Fetch data source documentation
azurerm-cli doc azurerm_virtual_network --category data-sources

# Fetch specific version
azurerm-cli doc azurerm_virtual_machine --version 3.50.0

# Save to file
azurerm-cli doc azurerm_virtual_machine --output docs/vm.md

List resources

# List all resources
azurerm-cli list resources

# List data sources
azurerm-cli list data-sources

# List for specific version
azurerm-cli list resources --version 4.64.0

# Limit results
azurerm-cli list resources --limit 10

Search

# Search resources
azurerm-cli search redis

# Search data sources
azurerm-cli search storage --category data-sources

# Search with version
azurerm-cli search virtual_network --version 3.50.0

Configuration

Default Version

You can set a default provider version so you don't need to specify --version each time:

# Set default version using --set-default flag
azurerm-cli doc azurerm_virtual_machine --version 4.60.0 --set-default

# Or use environment variable
export AZurerm_CLI_VERSION=4.60.0

After setting a default, commands will use that version automatically:

azurerm-cli doc azurerm_virtual_machine  # Uses default version 4.60.0

The config file is stored at ~/.azurerm-cli/config. To clear the default, delete this file.

Options

  • --verbose, -V: Enable verbose output
  • --version: Show version information

Development

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run with verbose
python -m azurerm_cli doc azurerm_virtual_machine -V

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azurerm_cli-0.1.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azurerm_cli-0.1.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file azurerm_cli-0.1.1.tar.gz.

File metadata

  • Download URL: azurerm_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for azurerm_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d3c611c23b47188b64fe23e23416ea6c157074c000a5f66eaf0a68cd8e820447
MD5 d38cea0d23fb74a01872e81cf5b0d2ab
BLAKE2b-256 5787d756d707cb4778abd7057a99c0c3e86372111c65f551c8678781957eed77

See more details on using hashes here.

File details

Details for the file azurerm_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: azurerm_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for azurerm_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 641a6224e28f9fc21c473493b60d5635427ea04a947c37b9ec4f34ad7ae38f5b
MD5 fbea56910dd2a615b57ec9be8d8897fc
BLAKE2b-256 58d0004cee59c1eebfb4f10ffc39fe324c69f81f5928819d479f26cde4c57eca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page