pushnetgo-cli 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -83,6 +83,25 @@ pushnetgo-cli token check
83
83
  pushnetgo-cli token check --key pushnetgo-xxx
84
84
  ```
85
85
 
86
+ ## Uploading Music (Avoid 403)
87
+
88
+ Do NOT call Firebase Storage REST API directly — requests will be blocked by Security Rules (App Check).
89
+
90
+ Use the Cloud Functions endpoint or CLI instead:
91
+
92
+ ```bash
93
+ # HTTP API (any language)
94
+ curl -X POST https://us-central1-flutter-ai-playground-f8e3b.cloudfunctions.net/unifiedGatewayApi \
95
+ -H "Content-Type: application/json" \
96
+ -H "x-api-key: pushnetgo-xxx" \
97
+ -d '{"action":"sync-music","projectId":"p1","url":"https://..."}'
98
+
99
+ # CLI
100
+ pushnetgo-cli sync-music --url "https://api.mureka.ai/output.mp3"
101
+ ```
102
+
103
+ Both methods use server-side Firebase Admin SDK to bypass Storage rules.
104
+
86
105
  ## API Key Format
87
106
 
88
107
  PushNetGo API keys use the format:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushnetgo-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "PushNetGo App CLI — sync music, validate tokens via HTTP API or local Firebase SDK",
5
5
  "bin": {
6
6
  "pushnetgo-cli": "./bin/pushnetgo-cli.js"