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 thewatch-logssubcommand)--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 cachewatch-logs: View any logs sent by the program (the main program must be run with--serve-logs)
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/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.
- Download the AppImage file from the 'Releases' section on GitHub
curl https://github.com/Apollo-XIV/tfdocs/releases/latest/PLATFORM.AppImage
- Move the executable somewhere on your PATH, typically
/usr/bin
mv tfdocs.AppImage /usr/local/bin
- Start a new terminal session, or source your shell's init script (i.e.
.bashrc) again
source ~/.bashrc
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tfdocs_cli-0.2.20.tar.gz.
File metadata
- Download URL: tfdocs_cli-0.2.20.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44a356f2f869a28c1e94ddf26a9957faa8b025cdeb2bea195762814494c763c6
|
|
| MD5 |
369bd09691d65892fc6f7d6e6367427a
|
|
| BLAKE2b-256 |
b700eb87e9e5494395ee5490c7e523cdbb0d2e6e40da43f1c4406197a41c849a
|
Provenance
The following attestation bundles were made for tfdocs_cli-0.2.20.tar.gz:
Publisher:
release.yaml on Apollo-XIV/tfdocs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tfdocs_cli-0.2.20.tar.gz -
Subject digest:
44a356f2f869a28c1e94ddf26a9957faa8b025cdeb2bea195762814494c763c6 - Sigstore transparency entry: 157361819
- Sigstore integration time:
-
Permalink:
Apollo-XIV/tfdocs@94fbcbb4c19af53352772eb79df48f63db918dc3 -
Branch / Tag:
refs/tags/v0.2.20 - Owner: https://github.com/Apollo-XIV
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@94fbcbb4c19af53352772eb79df48f63db918dc3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tfdocs_cli-0.2.20-py3-none-any.whl.
File metadata
- Download URL: tfdocs_cli-0.2.20-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dd836dbadc3041d352fbbb5c0d5db7f2480c875c7f46d95432c9b20d0ec9d44
|
|
| MD5 |
3f4da5d1306f1ccc07d0d1929cda9793
|
|
| BLAKE2b-256 |
60d4878b832aa63ef6112c3b572e47dd228909eb5933bb91ba2d5db297bac223
|
Provenance
The following attestation bundles were made for tfdocs_cli-0.2.20-py3-none-any.whl:
Publisher:
release.yaml on Apollo-XIV/tfdocs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tfdocs_cli-0.2.20-py3-none-any.whl -
Subject digest:
3dd836dbadc3041d352fbbb5c0d5db7f2480c875c7f46d95432c9b20d0ec9d44 - Sigstore transparency entry: 157361820
- Sigstore integration time:
-
Permalink:
Apollo-XIV/tfdocs@94fbcbb4c19af53352772eb79df48f63db918dc3 -
Branch / Tag:
refs/tags/v0.2.20 - Owner: https://github.com/Apollo-XIV
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@94fbcbb4c19af53352772eb79df48f63db918dc3 -
Trigger Event:
push
-
Statement type: