@pushizo/cli
v0.1.0
Published
Pushizo command-line tool: list apps, segments and templates, send notifications
Maintainers
Readme
English
Pushizo CLI — The pushizo command for scripts and terminals. Lists apps, segments and templates as JSON and sends a notification to subscribed users. Reads PUSHIZO_API_KEY, PUSHIZO_APP_ID and PUSHIZO_API_URL from the environment; the key is never printed. Node.js 20+, no dependencies.
Status: @pushizo/cli 0.1.0 is not on npm yet; until then you can install the release archive from this repository. Durum: @pushizo/cli 0.1.0 henüz npm'de değil; o zamana kadar bu deponun sürüm arşivinden kurabilirsiniz.
Install from GitHub until then · O zamana kadar GitHub'dan kurulum:
npm install -g --allow-remote=root https://github.com/pushizo/pushizo-cli/releases/download/v0.1.0/pushizo-cli-0.1.0.tgz
pushizo --helpAfter publication · Yayından sonra:
npm install -g @pushizo/cli
pushizo --helpThe detailed guide below is in Turkish; code samples are language-neutral. Full documentation: docs.pushizo.com/docs/integrations/cli-sdks · API reference: docs.pushizo.com/docs/api.
Türkçe
Pushizo CLI
Betikler ve terminal için pushizo komutu. App, segment ve şablonları JSON olarak listeler; abone kullanıcılara
bildirim gönderir. Node.js 20+; bağımlılığı yoktur.
Kurulum
npm install -g @pushizo/cli
pushizo --helpKurmadan çalıştırmak için: npx @pushizo/cli --help.
Ortam değişkenleri
| Değişken | Açıklama |
|----------|----------|
| PUSHIZO_API_KEY | App veya organizasyon API anahtarı (zorunlu). Çıktıya ve hata mesajlarına yazılmaz. |
| PUSHIZO_APP_ID | segments, templates ve send için app kimliği |
| PUSHIZO_API_URL | API adresi (varsayılan https://api.pushizo.com; yerelde http://localhost:4000) |
Anahtarı komut satırı argümanı olarak vermeyin; kabuk geçmişine düşer. Ortam değişkeni veya gizli bilgi yöneticisi kullanın.
Komutlar
pushizo apps # app listesi
pushizo segments # PUSHIZO_APP_ID segmentleri
pushizo templates # PUSHIZO_APP_ID şablonları
pushizo send "Başlık" "Gövde metni" # "Subscribed Users" segmentine bildirim (en + tr aynı metin)
pushizo --versionÇıktı biçimlendirilmiş JSON'dur; jq ile işlenebilir:
pushizo segments | jq -r '.data[].name'Çıkış kodu başarıda 0, eksik ayar, ağ veya HTTP hatasında 1'dir; hata ayrıntısı standart hataya yazılır.
Daha geniş kullanım (kullanıcılar, kampanyalar, analitik) için sunucu SDK'larını veya REST API'yi kullanın: docs.pushizo.com/docs/api.
Support · Destek
- Guide · Rehber: docs.pushizo.com/docs/integrations/cli-sdks
- API reference & OpenAPI · API referansı ve OpenAPI: docs.pushizo.com/docs/api · pushizo-openapi
- Bugs & ideas · Hata ve öneri: Issues
- Security · Güvenlik: please do not open public issues; email [email protected] · herkese açık issue açmayın, bu adrese yazın.
- Help · Destek: [email protected]
This repository is mirrored automatically from the Pushizo main repository on every release. Please open an issue instead of a pull request; fixes land in the main repository and ship with the next release. Bu depo her sürümde Pushizo ana deposundan otomatik yansıtılır. Pull request yerine issue açın; düzeltmeler ana depoda yapılır ve bir sonraki sürümle buraya gelir.
Released under the MIT License · MIT lisanslıdır — LICENSE.
