@sensef/bazinga
v1.0.8
Published
A command-line tool for sending push notifications via bazinga-server with Google OAuth authentication
Maintainers
Readme
Bazinga CLI
██████╗ █████╗ ███████╗██╗███╗ ██╗ ██████╗ █████╗ ██╗
██╔══██╗██╔══██╗╚══███╔╝██║████╗ ██║██╔════╝ ██╔══██╗██║
██████╔╝███████║ ███╔╝ ██║██╔██╗ ██║██║ ███╗███████║██║
██╔══██╗██╔══██║ ███╔╝ ██║██║╚██╗██║██║ ██║██╔══██║╚═╝
██████╔╝██║ ██║███████╗██║██║ ╚████║╚██████╔╝██║ ██║██╗
╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚═╝A command-line tool for sending notifications via bazinga-server.
Installation
# Global installation
npm install -g @sensef/bazinga
# Or use npx (no installation needed)
npx @sensef/bazinga loginEnvironment Configuration
Bazinga CLI supports both local and production environments.
Quick Start
# Local development (default in config)
export BAZINGA_ENV=local
bazinga login
# Production
export BAZINGA_ENV=production
bazinga loginConfiguration File
Edit configs/cli.json or ~/.config/bazinga-cli/cli.json:
{
"environment": "local",
"localServerUrl": "http://localhost:8081",
"productionServerUrl": "https://bazingaapi.saien.pro"
}📖 Full guide: See ../ENVIRONMENT_CONFIG.md
Development
Development Install
npm run dev-installThis command automatically:
- Increments patch version (+1)
- Builds the project
- Installs globally (npm link)
Usage
Check Version
bazinga --version
# or
bazinga -VLogin
Login with Google OAuth:
bazinga loginSend Notification
Task ID is auto-generated - no manual input needed.
Method 1: Command-line Arguments (Recommended)
Pass all info via arguments without interactive input:
bazinga notify -t "Deploy complete" -c "Production deployment successful"Options:
-t, --title <title>- Notification title (required)-c, --content <content>- Notification content (optional)
Method 2: Interactive Mode
If no arguments provided, enter interactive mode:
bazinga notifyThen enter:
- Title
- Content
Check Login Status
bazinga statusLogout
bazinga logoutConfiguration
Config file location: ~/.bazinga/config.json
Default configuration:
{
"serverBaseUrl": "https://bazinga.example.com"
}Development
Build
npm run buildDev Mode
npm run devVersion Management
Manually bump version:
npm run bump-version