Guard

Guard CLI

Install the Guard CLI, choose a workspace and view your monitors from the terminal.

Use the Guard CLI to view and manage your monitors and Hosting projects from the terminal. Check the environment and workspace before changing monitors or projects.

Install

bun add -g @infaris/guard-cli
npm install -g @infaris/guard-cli   # without Bun: Node 18 or later
infaris-guard --version
infaris-guard --help

You can also run it once with bunx @infaris/guard-cli --help.

Sign in and choose a workspace

infaris-guard login
infaris-guard whoami
infaris-guard env ls
infaris-guard org ls
infaris-guard org switch "Example team"

During login, select the environment and complete sign-in in your browser. Use whoami, env ls and org ls to check where you are working. You can select a workspace for one command with --org <id>. On a machine without a browser, use infaris-guard login link followed by infaris-guard login code -.

Read monitoring data

infaris-guard status
infaris-guard domains ls
infaris-guard services ls
infaris-guard incidents ls
infaris-guard help domains

Use --json for output your scripts can read. Run infaris-guard doctor to check connectivity and your session. For the API-key-based REST API, see API and integrations.

Hosting: deploying static sites

List the available Hosting commands and view publishing help:

infaris-guard hosting commands
infaris-guard hosting up --help

Follow the Hosting quickstart to publish a project. The Hosting CLI guide explains linking, logs and configuration.