silentfail-cli
v0.1.0
Published
CLI for SilentFail – monitor cron jobs with HTTP pings
Readme
silentfail-cli
CLI for SilentFail – monitor cron jobs with simple HTTP pings.
Installation
npm install -g silentfail-cli
# or
npx silentfail-cliCommands
silentfail login
Authenticate via Device Code Flow. Opens browser to authorize.
silentfail loginsilentfail init
Create a monitored job for the current project and add config to .env.local.
silentfail initsilentfail ping [token]
Send a manual ping. Uses SILENTFAIL_PING_TOKEN from env, or pass token as argument.
silentfail ping
silentfail ping <your-ping-token>
silentfail ping -t <token>Environment
| Variable | Description |
|-----------------------|--------------------------------|
| SILENTFAIL_API_URL | API base (default: https://silentfail.dev) |
| SILENTFAIL_PING_TOKEN | Ping token (set by init) |
| SILENTFAIL_ENDPOINT | Full ping URL (set by init) |
Publishing to npm
- Enable 2FA on your npm account:
npm profile enable-2fa auth-and-writes - Or create a granular access token with "bypass 2FA for publish" at https://www.npmjs.com/settings/~/tokens
- Run:
pnpm publish --access public
If you see 403 Forbidden - Two-factor authentication required, complete step 1 or 2.
