Skip to main content

Terraform provider documentation viewer for the CLI

Project description

TFDocs

Read Terraform provider documentation in the terminal

TFDocs is a command-line tool that lets you view provider documentation from the terminal.

WARNING:

This application is still under active development and has bugs! If you decide to use it anyways and anything goes wrong, please open an issue on the github repo describing the bug and any steps to recreate (if you can, if not just a description of the issue will suffice).

Usage

Setup

Before you can view any documentation, you need to initialise the cache. First, navigate to a directory with terraform initialised and run the following command:

  tfdocs init

This will create a cache file called .tfdocs.db in the directory that the command was run. When TFDocs runs, it searches for a cache in the local directory. If you want to run tfdocs from another directory you can move the cache in the filesystem.

The top-level entrypoint for the interface is called tfdocs. Running this command will open the graphical view of the program. A number of flags can be passed to modify its behaviour:

Global Arguments

  • --verbose: Allows the user to increase verbosity
  • --serve-logs: Sends any logs generated by the program while in the GUI to the local log server (accessed using the watch-logs subcommand)
  • --help: View help information

Top-level Specific Arguments

  • --provider PROVIDER: Open the GUI directly to a specified provider

SubCommands

  • init: Sub-command that must be run at least once in a working directory in order to generate the local cache
  • watch-logs: View any logs sent by the program (the main program must be run with --serve-logs)

Installation

Install Script (trivial, not recommended for secure environments)

Too busy to fuss with any of the more involved methods? Run this command in a Linux or Mac terminal to install the program: curl tfdocs.crease.sh/install | bash

PipX (simple, requires Python and PipX, works for any platform)

Tfdocs is published on PyPI under the name tfdocs-cli. You can add Tfdocs to a project by running pip install tfdocs-cli. If you want to install Tfdocs system-wide in a reliable fashion, it's recommended to use pipx instead of pip install -U tfdocs-cli. You can use pipx like so:

pipx install tfdocs-cli

Manual Installation on Linux (any distro, no requirements)

This is the current primary method of installation for different platforms. In the future, different repositories for different platforms will be provided.

  1. Download the AppImage file from the 'Releases' section on GitHub
  curl -O https://tfdocs.crease.sh/release/latest/download
  1. Move the executable somewhere on your PATH, typically /usr/bin/local
  mv tfdocs.AppImage /usr/local/bin/tfdocs
  1. Start a new terminal session, or source your shell's init script (i.e. .bashrc) again
  source ~/.bashrc

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

tfdocs_cli-0.2.23.tar.gz (34.2 kB view details)

Uploaded Source

Built Distribution

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

tfdocs_cli-0.2.23-py3-none-any.whl (48.4 kB view details)

Uploaded Python 3

File details

Details for the file tfdocs_cli-0.2.23.tar.gz.

File metadata

  • Download URL: tfdocs_cli-0.2.23.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tfdocs_cli-0.2.23.tar.gz
Algorithm Hash digest
SHA256 28e4033500a9d215900b185c5951c4683737f59b6f6ee255617dd821a409426b
MD5 bbd0b9e8ed65c11e4a9945facae01dda
BLAKE2b-256 2d16413deef816e423aa4d58f62faa7742a85b75b58c7225c6c0997cd56582a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for tfdocs_cli-0.2.23.tar.gz:

Publisher: release.yaml on Apollo-XIV/tfdocs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tfdocs_cli-0.2.23-py3-none-any.whl.

File metadata

  • Download URL: tfdocs_cli-0.2.23-py3-none-any.whl
  • Upload date:
  • Size: 48.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tfdocs_cli-0.2.23-py3-none-any.whl
Algorithm Hash digest
SHA256 14327eba4f0b53b9c361ec589049c4c739fd9f6f8c72ab556b2f893354459060
MD5 771ace69f7172be5c71b06c52ca59f95
BLAKE2b-256 eee78c3ee19ea8ad6625cb50b461789525e0bfd16d3a668a3115604872645c23

See more details on using hashes here.

Provenance

The following attestation bundles were made for tfdocs_cli-0.2.23-py3-none-any.whl:

Publisher: release.yaml on Apollo-XIV/tfdocs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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