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.

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.

Commands

  • tfdocs: Top-level entrypoint for the interface. Running this command will open the graphical view of the program
    • init: Sub-command that must be run at least once in a working directory in order to generate the local cache

Installation

Coming Soon: 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 | 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 https://github.com/Apollo-XIV/tfdocs/releases/latest/PLATFORM.AppImage
    
  2. Move the executable somewhere on your PATH, typically /usr/bin
  mv tfdocs.AppImage /usr/local/bin
  1. Start a new terminal session, or source your .rc file 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.16.tar.gz (32.8 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.16-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tfdocs_cli-0.2.16.tar.gz
  • Upload date:
  • Size: 32.8 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.16.tar.gz
Algorithm Hash digest
SHA256 fa6e8649e0d012547836161f9009ddb7f4783eb521ba422eeb560ad65fae656a
MD5 7f0d3b0a93e5d7e3d07e873680776e31
BLAKE2b-256 8ef94b925f8cdadb4b704a0647ed3cc98574f7414c4dcfd7a15937f15a535165

See more details on using hashes here.

Provenance

The following attestation bundles were made for tfdocs_cli-0.2.16.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.16-py3-none-any.whl.

File metadata

  • Download URL: tfdocs_cli-0.2.16-py3-none-any.whl
  • Upload date:
  • Size: 47.1 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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 6468ffd94b67180e2e5323d9e7ff78eb0983296a37343a98ad0a94dc582039c8
MD5 e344e70d364fdfa23cc741bf48ae13f9
BLAKE2b-256 173a47537a8942d383d00e6ee830ca5fce7a8816600a0cde214b5ee7a9e1a61b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tfdocs_cli-0.2.16-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