Install the CLI with npm or npx
Install the Monito CLI globally or run it with npx, verify the command works, sign in, and check a URL in a real browser.
Requirements
- Node.js 20 or later
- npm, pnpm, yarn, or bun
Install
Install globally to make monito available in your terminal. Choose the command
for your package manager:
npm install -g @monitodev/cliRun without a global install
Use npx @monitodev/cli wherever these docs show monito if you prefer not to
install the CLI globally. The same subcommands and flags work with either form:
npx @monitodev/cli --version
npx @monitodev/cli check --helpVerify the install
With a global install, confirm that the CLI prints its version and the check command's usage:
monito --version
monito check --helpThese commands do not start a browser check. If your shell cannot find monito,
check that your package manager's global binary directory is on PATH, or use
the npx form above.
Run a quick-start check
Sign in through your browser, then confirm the CLI can read your account:
monito auth login
monito auth statusReplace the example URL and expectation with a page you own and a visible result to verify:
monito check https://your-app.example.com "The home page shows a sign-in link" --jsonThe command waits for the verdict by default. Read status and reportUrl in
the JSON output, then open the report to inspect the browser evidence. A completed
passing check confirms that authentication, the browser run, and result retrieval
work together. A failed verdict needs review in the report.
Without a global install, use npx @monitodev/cli auth login,
npx @monitodev/cli auth status, and npx @monitodev/cli check with the same
URL, expectation, and flags. See the check reference for
localhost checks and other options.
Update
npm update -g @monitodev/cliNext Steps
After installing, authenticate to start using the CLI.