@assertkit/cli
v0.7.1
Published
Command-line interface for AssertKit. Watch inboxes, run flows, manage custom domains from the terminal.
Downloads
2,524
Maintainers
Readme
@assertkit/cli
Command-line interface for AssertKit. Watch inboxes during dev, run flows from CI, send one-off emails.
# Global install
npm install -g @assertkit/cli
# Or via npx
npx @assertkit/cli inbox watch qa-signupAuth
export ASSERTKIT_API_KEY=ak_live_... # from /dashboard/api-keysOr pass --api-key per call.
Recipes
# Tail an inbox during local dev
assertkit inbox watch qa-signup --from noreply
# Wait for OTP in a shell script
otp=$(assertkit inbox watch qa-test --kind otp --once --timeout 30000 \
| grep '\[otp\]' | awk '{print $2}')
# Run a flow + fail CI on non-pass
assertkit flow run signup-smoke --wait --timeout 120000
# Send (Pro+ only)
assertkit send --from support --to [email protected] --text "Hi"Run assertkit --help for the full surface.
License
MIT
