@globio/cli 0.0.1 → 0.1.0

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.
@@ -0,0 +1,41 @@
1
+ name: Publish @globio/cli
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: read
12
+ id-token: write
13
+
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
+
18
+ - name: Setup Node.js
19
+ uses: actions/setup-node@v4
20
+ with:
21
+ node-version: '20'
22
+ registry-url: 'https://registry.npmjs.org'
23
+
24
+ - name: Install dependencies
25
+ run: npm install
26
+
27
+ - name: Build
28
+ run: npm run build
29
+
30
+ - name: Publish to npm
31
+ run: npm publish --access public
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34
+
35
+ - name: Setup Deno for JSR
36
+ uses: denoland/setup-deno@v1
37
+
38
+ - name: Publish to JSR
39
+ run: npx jsr publish --allow-dirty
40
+ env:
41
+ JSR_TOKEN: ${{ secrets.JSR_TOKEN }}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Globio
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,90 @@
1
+ # @globio/cli
2
+
3
+ The official CLI for [Globio](https://globio.stanlink.online)
4
+ — game backend as a service built on Cloudflare Workers.
5
+
6
+ ## Install
7
+
8
+ ```bash
9
+ # Run without installing
10
+ npx @globio/cli <command>
11
+
12
+ # Or install globally
13
+ npm install -g @globio/cli
14
+ ```
15
+
16
+ ## Quick Start
17
+
18
+ ```bash
19
+ npx @globio/cli login
20
+ npx @globio/cli init
21
+ ```
22
+
23
+ ## Migrate from Firebase
24
+
25
+ ```bash
26
+ # Migrate all Firestore collections to GlobalDoc
27
+ npx @globio/cli migrate firestore \
28
+ --from ./serviceAccountKey.json \
29
+ --all
30
+
31
+ # Migrate Firebase Storage to GlobalVault
32
+ npx @globio/cli migrate firebase-storage \
33
+ --from ./serviceAccountKey.json \
34
+ --bucket gs://my-game.appspot.com \
35
+ --all
36
+ ```
37
+
38
+ ## Commands
39
+
40
+ ### Auth
41
+ ```bash
42
+ globio login # authenticate
43
+ globio logout
44
+ globio whoami # show active account and project
45
+ ```
46
+
47
+ ### Projects
48
+ ```bash
49
+ globio projects list
50
+ globio projects use <projectId>
51
+ ```
52
+
53
+ ### Services
54
+ ```bash
55
+ globio services list
56
+ ```
57
+
58
+ ### Functions (GlobalCode)
59
+ ```bash
60
+ globio functions list
61
+ globio functions create <slug> # scaffold locally
62
+ globio functions deploy <slug> # deploy to Globio
63
+ globio functions invoke <slug> --input '{"key":"value"}'
64
+ globio functions logs <slug>
65
+ globio functions enable <slug>
66
+ globio functions disable <slug>
67
+ globio functions delete <slug>
68
+ ```
69
+
70
+ ### Migrate from Firebase
71
+ ```bash
72
+ globio migrate firestore \
73
+ --from ./serviceAccountKey.json \
74
+ --collection players
75
+
76
+ globio migrate firestore \
77
+ --from ./serviceAccountKey.json \
78
+ --all
79
+
80
+ globio migrate firebase-storage \
81
+ --from ./serviceAccountKey.json \
82
+ --bucket gs://my-game.appspot.com \
83
+ --all
84
+ ```
85
+
86
+ ## Built with Globio
87
+
88
+ - [SDK](https://npmjs.com/package/@globio/sdk)
89
+ - [Console](https://console.globio.stanlink.online)
90
+ - [Docs](https://globio.stanlink.online/docs)