Skip to main content
The infraudit CLI is a single static Go binary with no runtime dependencies. You can build it from source or pull it directly with go install if you already have a Go toolchain.

Prerequisites

Installation

Pull and build the latest CLI in one step:
go install github.com/pratik-mahalle/infraudit/cmd/cli@latest
The binary lands in $GOPATH/bin/ (typically $HOME/go/bin/). Make sure that directory is in your PATH:
echo 'export PATH="$HOME/go/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Verify the installation

Run the following command to confirm the binary is available:
infraudit --help
You should see the top-level command list. If you get command not found, the install directory is not in your PATH. Fix it using the instructions in the tab above that matches your installation method.
The version subcommand is available as infraudit version to print the exact build version once a server connection is configured.

First-time setup

1

Initialize the config file

Run the interactive setup wizard to set your server URL and default output format:
infraudit config init
# > Enter server URL: https://api.infraudit.dev
# > Default output format: table
2

Log in

Authenticate with your InfraAudit account:
infraudit auth login
# > Email: you@example.com
# > Password: ********
# > Logged in as you@example.com
3

Verify connectivity

Check that the CLI can reach the server:
infraudit status

Shell completion

Tab completion is available for bash, zsh, fish, and PowerShell. See Shell completion for setup instructions.

Uninstall

Remove the binary and config directory:
rm $(which infraudit)
rm -rf ~/.infraudit