@gitgate/gg-cli 0.1.0 → 0.1.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 +108 -0
  2. package/package.json +3 -2
package/README.md ADDED
@@ -0,0 +1,108 @@
1
+ # @gitgate/gg-cli
2
+
3
+ Command-line interface for [gitgate](https://gitgate.com) — modern git hosting on Cloudflare's edge.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @gitgate/gg-cli
9
+ ```
10
+
11
+ ## Authenticate
12
+
13
+ ```bash
14
+ gg auth login --token gg_your_token
15
+ gg auth status
16
+ ```
17
+
18
+ Create a token at gitgate.com/settings/tokens, or use `gg auth token create`.
19
+
20
+ ## Commands
21
+
22
+ ### Repositories
23
+
24
+ ```bash
25
+ gg repo create my-project
26
+ gg repo list
27
+ gg repo view owner/repo
28
+ gg repo clone owner/repo
29
+ gg repo fork owner/repo
30
+ gg repo delete owner/repo
31
+ ```
32
+
33
+ ### Pull Requests
34
+
35
+ ```bash
36
+ gg pr create --title "Add feature" --base main --head feature-branch
37
+ gg pr list
38
+ gg pr view owner/repo 5
39
+ gg pr merge owner/repo 5 --strategy squash
40
+ gg pr review owner/repo 5 --approve
41
+ gg pr diff owner/repo 5
42
+ gg pr close owner/repo 5
43
+ ```
44
+
45
+ ### Issues
46
+
47
+ ```bash
48
+ gg issue create --title "Bug report"
49
+ gg issue list
50
+ gg issue view owner/repo 12
51
+ gg issue close owner/repo 12
52
+ gg issue comment owner/repo 12 "Fixed in #5"
53
+ ```
54
+
55
+ ### CI/CD
56
+
57
+ ```bash
58
+ gg run list owner/repo
59
+ gg run view owner/repo 42
60
+ gg run rerun owner/repo 42
61
+ gg run cancel owner/repo 42
62
+ ```
63
+
64
+ ### Search
65
+
66
+ ```bash
67
+ gg search "handleAuth" --scope code
68
+ gg search "my-project" --scope repos
69
+ gg search "login bug" --scope issues
70
+ ```
71
+
72
+ ### Import from GitHub
73
+
74
+ ```bash
75
+ gg import github https://github.com/you/repo --token ghp_...
76
+ ```
77
+
78
+ Imports full git history (objects, branches, tags), issues, PRs, and labels.
79
+
80
+ ### Visualizations
81
+
82
+ ```bash
83
+ gg viz owner/repo # Full dashboard
84
+ gg viz activity owner/repo # Weekly commit activity
85
+ gg viz langs owner/repo # Language breakdown
86
+ ```
87
+
88
+ ## Configuration
89
+
90
+ Config is stored at `~/.config/gg-cli/config.json`:
91
+
92
+ ```json
93
+ {
94
+ "token": "gg_...",
95
+ "username": "alice",
96
+ "apiUrl": "https://api.gitgate.com"
97
+ }
98
+ ```
99
+
100
+ Override the API URL for self-hosted or dev:
101
+
102
+ ```bash
103
+ gg auth login --token gg_... --api-url https://gitgate-api-dev.noundry.workers.dev
104
+ ```
105
+
106
+ ## License
107
+
108
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitgate/gg-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "gitgate CLI — manage repos, issues, PRs, and CI from the terminal",
5
5
  "private": false,
6
6
  "type": "module",
@@ -8,7 +8,8 @@
8
8
  "gg": "./dist/index.js"
9
9
  },
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "README.md"
12
13
  ],
13
14
  "scripts": {
14
15
  "build": "tsc",