@edgepush/cli
v1.1.0
Published
Command line interface for edgepush. Send push notifications from your terminal.
Maintainers
Readme
@edgepush/cli
Command line interface for edgepush. Send push notifications from your terminal.
Install
npm install -g @edgepush/cli
# or
pnpm add -g @edgepush/cli
# or
bun add -g @edgepush/cliLogin
edgepush login
# Enter API base URL [https://app.edgepush.dev]:
# Opening browser for sign-in...Signs in via GitHub OAuth in your browser, then creates an API key
for the selected app. Credentials are stored in
~/.config/edgepush/config.json (mode 600).
Send a push
edgepush send DEVICE_TOKEN \
--title "Hello" \
--body "From the command line" \
--data '{"url":"myapp://home"}'Get a receipt
edgepush receipt abc123-ticket-idAll commands
edgepush login Sign in via browser (OAuth)
edgepush whoami Show the configured account
edgepush send <token> [options] Send a push notification
edgepush receipt <id> Get a delivery receipt
edgepush --help Show helpEnvironment variables
| Variable | Purpose |
|---|---|
| EDGEPUSH_API_KEY | Override the saved API key |
| EDGEPUSH_BASE_URL | Override the API base URL |
License
MIT
