@mohammadhprp/system-prompt 0.12.1 → 0.12.3
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.
- package/framework/agents/README.md +0 -1
- package/framework/commands/README.md +1 -1
- package/framework/commands/mr.md +8 -9
- package/framework/commands/review.md +1 -1
- package/framework/mcps/README.md +0 -4
- package/framework/plugins/ponytail/README.md +0 -1
- package/framework/plugins/ponytail/capabilities.md +1 -1
- package/framework/references/standards/api.md +0 -1
- package/framework/references/standards/architecture.md +0 -1
- package/framework/references/standards/database.md +0 -1
- package/framework/references/standards/debugging.md +0 -1
- package/framework/references/standards/documentation.md +0 -1
- package/framework/references/standards/logging.md +0 -1
- package/framework/references/standards/naming.md +0 -1
- package/framework/references/standards/observability.md +0 -1
- package/framework/references/standards/performance.md +0 -1
- package/framework/references/standards/pull-requests.md +0 -1
- package/framework/references/standards/security.md +0 -1
- package/framework/references/standards/testing.md +0 -1
- package/framework/skills/README.md +4 -14
- package/framework/skills/glab/SKILL.md +222 -0
- package/framework/skills/glab/references/commands-detailed.md +616 -0
- package/framework/skills/glab/references/quick-reference.md +145 -0
- package/framework/skills/glab/references/troubleshooting.md +669 -0
- package/framework/skills/improve/SKILL.md +135 -0
- package/framework/skills/improve/examples.md +19 -0
- package/framework/skills/improve/references/audit-playbook.md +130 -0
- package/framework/skills/improve/references/closing-the-loop.md +96 -0
- package/framework/skills/improve/references/plan-template.md +197 -0
- package/framework/skills/jira-cli/SKILL.md +260 -0
- package/framework/skills/jira-cli/references/commands-detailed.md +268 -0
- package/framework/skills/jira-cli/references/quick-reference.md +111 -0
- package/framework/skills/jira-cli/references/troubleshooting.md +114 -0
- package/framework/skills/laravel-best-practices/SKILL.md +56 -216
- package/framework/skills/laravel-best-practices/references/architecture.md +1 -1
- package/framework/skills/laravel-best-practices/references/checklist.md +139 -0
- package/framework/skills/laravel-best-practices/references/eloquent.md +4 -2
- package/framework/skills/laravel-best-practices/references/infer-conventions.md +97 -0
- package/framework/skills/laravel-best-practices/references/pest-testing.md +47 -18
- package/framework/skills/laravel-best-practices/references/security.md +1 -1
- package/framework/skills/laravel-best-practices/references/style.md +1 -1
- package/framework/skills/laravel-best-practices/references/tailwindcss.md +0 -1
- package/framework/styles/README.md +9 -4
- package/framework/styles/factory/DESIGN.md +360 -0
- package/framework/styles/factory/README.md +32 -0
- package/framework/styles/factory/assets/preview.jpg +0 -0
- package/framework/styles/huly/DESIGN.md +449 -0
- package/framework/styles/huly/README.md +32 -0
- package/framework/styles/huly/assets/preview.jpg +0 -0
- package/framework/styles/notion/DESIGN.md +423 -0
- package/framework/styles/notion/README.md +32 -0
- package/framework/styles/notion/assets/preview.jpg +0 -0
- package/package.json +1 -1
- package/src/catalog.js +7 -19
- package/framework/agents/backend-architect.md +0 -146
- package/framework/mcps/github-mcp/README.md +0 -51
- package/framework/mcps/github-mcp/capabilities.md +0 -83
- package/framework/mcps/github-mcp/configs/.env.example +0 -1
- package/framework/mcps/github-mcp/configs/opencode.json +0 -13
- package/framework/mcps/github-mcp/install.md +0 -60
- package/framework/mcps/github-mcp/troubleshooting.md +0 -79
- package/framework/mcps/gitlab-mcp/README.md +0 -53
- package/framework/mcps/gitlab-mcp/capabilities.md +0 -216
- package/framework/mcps/gitlab-mcp/configs/.env.example +0 -2
- package/framework/mcps/gitlab-mcp/configs/opencode.json +0 -13
- package/framework/mcps/gitlab-mcp/install.md +0 -99
- package/framework/mcps/gitlab-mcp/troubleshooting.md +0 -116
- package/framework/mcps/jira-mcp/README.md +0 -52
- package/framework/mcps/jira-mcp/capabilities.md +0 -79
- package/framework/mcps/jira-mcp/configs/.env.example +0 -2
- package/framework/mcps/jira-mcp/configs/opencode.json +0 -13
- package/framework/mcps/jira-mcp/install.md +0 -94
- package/framework/mcps/jira-mcp/troubleshooting.md +0 -113
- package/framework/mcps/notion-mcp/README.md +0 -57
- package/framework/mcps/notion-mcp/capabilities.md +0 -118
- package/framework/mcps/notion-mcp/configs/opencode.json +0 -9
- package/framework/mcps/notion-mcp/install.md +0 -70
- package/framework/mcps/notion-mcp/troubleshooting.md +0 -95
- package/framework/skills/brainstorming/SKILL.md +0 -159
- package/framework/skills/brainstorming/examples.md +0 -49
- package/framework/skills/brainstorming/scripts/frame-template.html +0 -213
- package/framework/skills/brainstorming/scripts/helper.js +0 -167
- package/framework/skills/brainstorming/scripts/server.cjs +0 -723
- package/framework/skills/brainstorming/scripts/start-server.sh +0 -209
- package/framework/skills/brainstorming/scripts/stop-server.sh +0 -120
- package/framework/skills/brainstorming/visual-companion.md +0 -291
- package/framework/skills/code-review/SKILL.md +0 -72
- package/framework/skills/code-review/examples.md +0 -31
- package/framework/skills/codenavi/SKILL.md +0 -306
- package/framework/skills/codenavi/examples.md +0 -33
- package/framework/skills/codenavi/references/coding-principles.md +0 -143
- package/framework/skills/codenavi/references/notebook-spec.md +0 -171
- package/framework/skills/create-adr/SKILL.md +0 -429
- package/framework/skills/create-adr/examples.md +0 -35
- package/framework/skills/design/SKILL.md +0 -399
- package/framework/skills/design/examples.md +0 -34
- package/framework/skills/gitlab-mcp/SKILL.md +0 -83
- package/framework/skills/gitlab-mcp/examples.md +0 -31
- package/framework/skills/gitlab-mcp/references/code-review.md +0 -110
- package/framework/skills/gitlab-mcp/references/issues.md +0 -141
- package/framework/skills/gitlab-mcp/references/merge-requests.md +0 -120
- package/framework/skills/gitlab-mcp/references/pipelines.md +0 -67
- package/framework/skills/gitlab-mcp/references/search.md +0 -17
- package/framework/skills/gitlab-mcp/references/webhooks.md +0 -32
- package/framework/skills/gitlab-mcp/references/work-items.md +0 -50
- package/framework/skills/great-interface/SKILL.md +0 -43
- package/framework/skills/great-interface/references/animations.md +0 -205
- package/framework/skills/great-interface/references/better-accessibility.md +0 -106
- package/framework/skills/great-interface/references/better-colors.md +0 -100
- package/framework/skills/great-interface/references/better-interface.md +0 -132
- package/framework/skills/great-interface/references/better-layout.md +0 -76
- package/framework/skills/great-interface/references/better-typography.md +0 -157
- package/framework/skills/great-interface/references/better-ui.md +0 -107
- package/framework/skills/great-interface/references/better-writing.md +0 -109
- package/framework/skills/great-interface/references/choosing-fonts.md +0 -64
- package/framework/skills/great-interface/references/color-formats.md +0 -90
- package/framework/skills/great-interface/references/color-usage.md +0 -118
- package/framework/skills/great-interface/references/contrast.md +0 -79
- package/framework/skills/great-interface/references/css-cheat-sheet.md +0 -65
- package/framework/skills/great-interface/references/details-and-accessibility.md +0 -119
- package/framework/skills/great-interface/references/enter-exit.md +0 -147
- package/framework/skills/great-interface/references/explain-interface.md +0 -126
- package/framework/skills/great-interface/references/find-the-effect.md +0 -94
- package/framework/skills/great-interface/references/focus-and-keyboard.md +0 -131
- package/framework/skills/great-interface/references/forms.md +0 -84
- package/framework/skills/great-interface/references/from-an-image.md +0 -55
- package/framework/skills/great-interface/references/grouping-and-alignment.md +0 -123
- package/framework/skills/great-interface/references/hit-areas.md +0 -94
- package/framework/skills/great-interface/references/icon-transitions.md +0 -102
- package/framework/skills/great-interface/references/icons.md +0 -110
- package/framework/skills/great-interface/references/interface-review.md +0 -148
- package/framework/skills/great-interface/references/motion-and-zoom.md +0 -79
- package/framework/skills/great-interface/references/no-browser.md +0 -73
- package/framework/skills/great-interface/references/palette-generation.md +0 -104
- package/framework/skills/great-interface/references/palette-structure.md +0 -76
- package/framework/skills/great-interface/references/performance.md +0 -88
- package/framework/skills/great-interface/references/picker.md +0 -76
- package/framework/skills/great-interface/references/read-the-system.md +0 -178
- package/framework/skills/great-interface/references/removed-signals.md +0 -38
- package/framework/skills/great-interface/references/review-format.md +0 -46
- package/framework/skills/great-interface/references/scope-resolution.md +0 -88
- package/framework/skills/great-interface/references/screen-readers.md +0 -101
- package/framework/skills/great-interface/references/semantics-and-aria.md +0 -84
- package/framework/skills/great-interface/references/spacing-and-adaptivity.md +0 -159
- package/framework/skills/great-interface/references/spacing-and-sizing.md +0 -121
- package/framework/skills/great-interface/references/surfaces.md +0 -219
- package/framework/skills/great-interface/references/token-naming.md +0 -97
- package/framework/skills/great-interface/references/variable-fonts-and-opentype.md +0 -105
- package/framework/skills/great-interface/references/variant.md +0 -104
- package/framework/skills/great-interface/references/wrapping-and-punctuation.md +0 -55
- package/framework/skills/jira-mcp/SKILL.md +0 -57
- package/framework/skills/jira-mcp/examples.md +0 -31
- package/framework/skills/jira-mcp/references/comments.md +0 -27
- package/framework/skills/jira-mcp/references/issues.md +0 -97
- package/framework/skills/jira-mcp/references/projects.md +0 -39
- package/framework/skills/learning-opportunities/SKILL.md +0 -140
- package/framework/skills/learning-opportunities/examples.md +0 -34
- package/framework/skills/learning-opportunities/references/PRINCIPLES.md +0 -42
- package/framework/skills/notion-mcp/SKILL.md +0 -57
- package/framework/skills/notion-mcp/examples.md +0 -31
- package/framework/skills/notion-mcp/references/comments.md +0 -112
- package/framework/skills/notion-mcp/references/databases.md +0 -193
- package/framework/skills/notion-mcp/references/pages.md +0 -235
- package/framework/skills/spec-driven-eval/SKILL.md +0 -341
- package/framework/skills/spec-driven-eval/examples.md +0 -35
- package/framework/skills/spec-driven-eval/references/quickstart.md +0 -118
- package/framework/skills/spec-driven-eval/references/reference.md +0 -295
- package/framework/skills/technical-design-doc-creator/README.md +0 -411
- package/framework/skills/technical-design-doc-creator/SKILL.md +0 -1484
- package/framework/skills/technical-design-doc-creator/examples.md +0 -35
- package/framework/skills/web-design-guidelines/SKILL.md +0 -65
- package/framework/skills/web-design-guidelines/examples.md +0 -32
- package/framework/skills/web-design-guidelines/references/guideline.md +0 -174
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
# glab Commands - Detailed Reference
|
|
2
|
+
|
|
3
|
+
This is a comprehensive reference for all glab commands. This file is loaded when detailed command information is needed.
|
|
4
|
+
|
|
5
|
+
## Merge Requests (MR)
|
|
6
|
+
|
|
7
|
+
### Listing Merge Requests
|
|
8
|
+
```bash
|
|
9
|
+
# List MRs assigned to you
|
|
10
|
+
glab mr list --assignee=@me
|
|
11
|
+
|
|
12
|
+
# List MRs where you're a reviewer
|
|
13
|
+
glab mr list --reviewer=@me
|
|
14
|
+
|
|
15
|
+
# List all open MRs
|
|
16
|
+
glab mr list
|
|
17
|
+
|
|
18
|
+
# Filter by state
|
|
19
|
+
glab mr list --state=merged
|
|
20
|
+
glab mr list --state=closed
|
|
21
|
+
glab mr list --state=all
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Creating Merge Requests
|
|
25
|
+
```bash
|
|
26
|
+
# Create MR from current branch (interactive)
|
|
27
|
+
glab mr create
|
|
28
|
+
|
|
29
|
+
# Create MR with title and description
|
|
30
|
+
glab mr create --title "Fix bug" --description "Fixes issue #123"
|
|
31
|
+
|
|
32
|
+
# Create MR for specific issue
|
|
33
|
+
glab mr create 123
|
|
34
|
+
|
|
35
|
+
# Create draft MR
|
|
36
|
+
glab mr create --draft
|
|
37
|
+
|
|
38
|
+
# Create MR and assign reviewers
|
|
39
|
+
glab mr create --reviewer=username1,username2
|
|
40
|
+
|
|
41
|
+
# Create MR with labels
|
|
42
|
+
glab mr create --label="bug,priority:high"
|
|
43
|
+
|
|
44
|
+
# Create MR with assignee
|
|
45
|
+
glab mr create --assignee=username
|
|
46
|
+
|
|
47
|
+
# Create MR to a specific target branch
|
|
48
|
+
glab mr create --target-branch=develop
|
|
49
|
+
|
|
50
|
+
# Create MR and remove source branch after merge
|
|
51
|
+
glab mr create --remove-source-branch
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Viewing and Interacting with MRs
|
|
55
|
+
```bash
|
|
56
|
+
# View MR details (opens in browser by default)
|
|
57
|
+
glab mr view 123
|
|
58
|
+
|
|
59
|
+
# View MR in terminal
|
|
60
|
+
glab mr view 123 --web=false
|
|
61
|
+
|
|
62
|
+
# View MR with comments
|
|
63
|
+
glab mr view 123 --comments
|
|
64
|
+
|
|
65
|
+
# Checkout MR branch locally
|
|
66
|
+
glab mr checkout 243
|
|
67
|
+
|
|
68
|
+
# Approve MR
|
|
69
|
+
glab mr approve 123
|
|
70
|
+
|
|
71
|
+
# Unapprove MR
|
|
72
|
+
glab mr unapprove 123
|
|
73
|
+
|
|
74
|
+
# Merge MR
|
|
75
|
+
glab mr merge 123
|
|
76
|
+
|
|
77
|
+
# Merge and delete source branch
|
|
78
|
+
glab mr merge 123 --remove-source-branch
|
|
79
|
+
|
|
80
|
+
# Close MR without merging
|
|
81
|
+
glab mr close 123
|
|
82
|
+
|
|
83
|
+
# Reopen closed MR
|
|
84
|
+
glab mr reopen 123
|
|
85
|
+
|
|
86
|
+
# Add note/comment to MR
|
|
87
|
+
glab mr note 123 -m "Looks good to me"
|
|
88
|
+
|
|
89
|
+
# Update MR title
|
|
90
|
+
glab mr update 123 --title "New title"
|
|
91
|
+
|
|
92
|
+
# Update MR description
|
|
93
|
+
glab mr update 123 --description "New description"
|
|
94
|
+
|
|
95
|
+
# Mark MR as draft
|
|
96
|
+
glab mr update 123 --draft
|
|
97
|
+
|
|
98
|
+
# Mark MR as ready (remove draft status)
|
|
99
|
+
glab mr update 123 --ready
|
|
100
|
+
|
|
101
|
+
# Subscribe to MR notifications
|
|
102
|
+
glab mr subscribe 123
|
|
103
|
+
|
|
104
|
+
# Unsubscribe from MR notifications
|
|
105
|
+
glab mr unsubscribe 123
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Issues
|
|
109
|
+
|
|
110
|
+
### Listing Issues
|
|
111
|
+
```bash
|
|
112
|
+
# List all issues
|
|
113
|
+
glab issue list
|
|
114
|
+
|
|
115
|
+
# List issues assigned to you
|
|
116
|
+
glab issue list --assignee=@me
|
|
117
|
+
|
|
118
|
+
# List issues with specific label
|
|
119
|
+
glab issue list --label=bug
|
|
120
|
+
|
|
121
|
+
# List issues with multiple labels
|
|
122
|
+
glab issue list --label="bug,priority:high"
|
|
123
|
+
|
|
124
|
+
# List closed issues
|
|
125
|
+
glab issue list --state=closed
|
|
126
|
+
|
|
127
|
+
# List all issues (open and closed)
|
|
128
|
+
glab issue list --state=all
|
|
129
|
+
|
|
130
|
+
# Search issues
|
|
131
|
+
glab issue list --search="login error"
|
|
132
|
+
|
|
133
|
+
# List issues assigned to specific user
|
|
134
|
+
glab issue list --assignee=username
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Creating and Managing Issues
|
|
138
|
+
```bash
|
|
139
|
+
# Create issue interactively
|
|
140
|
+
glab issue create
|
|
141
|
+
|
|
142
|
+
# Create issue with title and description
|
|
143
|
+
glab issue create --title "Bug in login" --description "Users cannot log in"
|
|
144
|
+
|
|
145
|
+
# Create issue with labels
|
|
146
|
+
glab issue create --title "Feature request" --label="enhancement,feature"
|
|
147
|
+
|
|
148
|
+
# Create issue with assignee
|
|
149
|
+
glab issue create --title "Fix bug" --assignee=username
|
|
150
|
+
|
|
151
|
+
# Create confidential issue
|
|
152
|
+
glab issue create --title "Security issue" --confidential
|
|
153
|
+
|
|
154
|
+
# View issue details
|
|
155
|
+
glab issue view 456
|
|
156
|
+
|
|
157
|
+
# View issue in browser
|
|
158
|
+
glab issue view 456 --web
|
|
159
|
+
|
|
160
|
+
# Close issue
|
|
161
|
+
glab issue close 456
|
|
162
|
+
|
|
163
|
+
# Close with a comment
|
|
164
|
+
glab issue close 456 -m "Fixed in MR !123"
|
|
165
|
+
|
|
166
|
+
# Reopen issue
|
|
167
|
+
glab issue reopen 456
|
|
168
|
+
|
|
169
|
+
# Update issue title
|
|
170
|
+
glab issue update 456 --title "New title"
|
|
171
|
+
|
|
172
|
+
# Update issue description
|
|
173
|
+
glab issue update 456 --description "New description"
|
|
174
|
+
|
|
175
|
+
# Add labels to issue
|
|
176
|
+
glab issue update 456 --label="bug,confirmed"
|
|
177
|
+
|
|
178
|
+
# Assign issue
|
|
179
|
+
glab issue update 456 --assignee=username
|
|
180
|
+
|
|
181
|
+
# Subscribe to issue
|
|
182
|
+
glab issue subscribe 456
|
|
183
|
+
|
|
184
|
+
# Unsubscribe from issue
|
|
185
|
+
glab issue unsubscribe 456
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## CI/CD Pipelines
|
|
189
|
+
|
|
190
|
+
### Viewing Pipelines
|
|
191
|
+
```bash
|
|
192
|
+
# Watch pipeline in progress (interactive)
|
|
193
|
+
glab pipeline ci view
|
|
194
|
+
|
|
195
|
+
# List recent pipelines
|
|
196
|
+
glab ci list
|
|
197
|
+
|
|
198
|
+
# List pipelines with specific status
|
|
199
|
+
glab ci list --status=failed
|
|
200
|
+
glab ci list --status=success
|
|
201
|
+
glab ci list --status=running
|
|
202
|
+
|
|
203
|
+
# View specific pipeline status
|
|
204
|
+
glab ci status
|
|
205
|
+
|
|
206
|
+
# View pipeline for specific branch
|
|
207
|
+
glab ci status --branch=main
|
|
208
|
+
|
|
209
|
+
# Get pipeline trace/logs
|
|
210
|
+
glab ci trace
|
|
211
|
+
|
|
212
|
+
# Get trace for specific job
|
|
213
|
+
glab ci trace <job-id>
|
|
214
|
+
|
|
215
|
+
# View pipeline details
|
|
216
|
+
glab ci view <pipeline-id>
|
|
217
|
+
|
|
218
|
+
# Delete a pipeline
|
|
219
|
+
glab ci delete <pipeline-id>
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Triggering and Managing Pipelines
|
|
223
|
+
```bash
|
|
224
|
+
# Run/trigger pipeline
|
|
225
|
+
glab ci run
|
|
226
|
+
|
|
227
|
+
# Run pipeline for specific branch
|
|
228
|
+
glab ci run --branch=develop
|
|
229
|
+
|
|
230
|
+
# Run pipeline with variables
|
|
231
|
+
glab ci run --variables-file /tmp/variables.json
|
|
232
|
+
|
|
233
|
+
# Run pipeline with inline variables
|
|
234
|
+
glab ci run -V KEY1=value1 -V KEY2=value2
|
|
235
|
+
|
|
236
|
+
# Retry failed pipeline
|
|
237
|
+
glab ci retry
|
|
238
|
+
|
|
239
|
+
# Retry specific pipeline
|
|
240
|
+
glab ci retry <pipeline-id>
|
|
241
|
+
|
|
242
|
+
# Cancel running pipeline
|
|
243
|
+
glab ci cancel
|
|
244
|
+
|
|
245
|
+
# Cancel specific pipeline
|
|
246
|
+
glab ci cancel <pipeline-id>
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### CI Configuration
|
|
250
|
+
```bash
|
|
251
|
+
# Lint .gitlab-ci.yml file in current directory
|
|
252
|
+
glab ci lint
|
|
253
|
+
|
|
254
|
+
# Lint specific file
|
|
255
|
+
glab ci lint --path=.gitlab-ci.yml
|
|
256
|
+
|
|
257
|
+
# View CI configuration
|
|
258
|
+
glab ci config
|
|
259
|
+
|
|
260
|
+
# Get CI job artifacts
|
|
261
|
+
glab ci artifact <job-id>
|
|
262
|
+
|
|
263
|
+
# Download artifacts to specific path
|
|
264
|
+
glab ci artifact <job-id> -p path/to/download
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
## Repository Operations
|
|
268
|
+
|
|
269
|
+
### Cloning Repositories
|
|
270
|
+
```bash
|
|
271
|
+
# Clone repository
|
|
272
|
+
glab repo clone namespace/project
|
|
273
|
+
|
|
274
|
+
# Clone to specific directory
|
|
275
|
+
glab repo clone namespace/project target-dir
|
|
276
|
+
|
|
277
|
+
# Clone from self-hosted GitLab
|
|
278
|
+
GITLAB_HOST=gitlab.example.org glab repo clone groupname/project
|
|
279
|
+
|
|
280
|
+
# Clone repository by group (interactive)
|
|
281
|
+
glab repo clone -g groupname
|
|
282
|
+
|
|
283
|
+
# Clone with specific protocol
|
|
284
|
+
glab repo clone namespace/project --protocol=ssh
|
|
285
|
+
glab repo clone namespace/project --protocol=https
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Repository Information and Management
|
|
289
|
+
```bash
|
|
290
|
+
# View repository details
|
|
291
|
+
glab repo view
|
|
292
|
+
|
|
293
|
+
# View specific repository
|
|
294
|
+
glab repo view owner/repo
|
|
295
|
+
|
|
296
|
+
# View in browser
|
|
297
|
+
glab repo view --web
|
|
298
|
+
|
|
299
|
+
# Fork repository
|
|
300
|
+
glab repo fork
|
|
301
|
+
|
|
302
|
+
# Fork to specific namespace
|
|
303
|
+
glab repo fork --clone --namespace=mygroup
|
|
304
|
+
|
|
305
|
+
# Archive repository
|
|
306
|
+
glab repo archive owner/project
|
|
307
|
+
|
|
308
|
+
# Unarchive repository
|
|
309
|
+
glab repo unarchive owner/project
|
|
310
|
+
|
|
311
|
+
# Delete repository
|
|
312
|
+
glab repo delete owner/project
|
|
313
|
+
|
|
314
|
+
# Create repository
|
|
315
|
+
glab repo create project-name
|
|
316
|
+
|
|
317
|
+
# Create private repository
|
|
318
|
+
glab repo create project-name --private
|
|
319
|
+
|
|
320
|
+
# Create repository with description
|
|
321
|
+
glab repo create project-name --description "My project"
|
|
322
|
+
|
|
323
|
+
# Mirror repository
|
|
324
|
+
glab repo mirror source-repo target-repo
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
## API Access
|
|
328
|
+
|
|
329
|
+
### Making API Calls
|
|
330
|
+
```bash
|
|
331
|
+
# GET request
|
|
332
|
+
glab api projects/:id/merge_requests
|
|
333
|
+
|
|
334
|
+
# GET with specific project ID
|
|
335
|
+
glab api projects/12345/merge_requests
|
|
336
|
+
|
|
337
|
+
# POST request with data
|
|
338
|
+
glab api --method POST projects/:id/issues --field title="Bug report"
|
|
339
|
+
|
|
340
|
+
# POST with multiple fields
|
|
341
|
+
glab api --method POST projects/:id/issues \
|
|
342
|
+
--field title="Bug" \
|
|
343
|
+
--field description="Description here" \
|
|
344
|
+
--field labels="bug,priority:high"
|
|
345
|
+
|
|
346
|
+
# PUT request
|
|
347
|
+
glab api --method PUT projects/:id/merge_requests/1 --field title="New Title"
|
|
348
|
+
|
|
349
|
+
# DELETE request
|
|
350
|
+
glab api --method DELETE projects/:id/issues/123
|
|
351
|
+
|
|
352
|
+
# Paginated API request (auto-fetches all pages)
|
|
353
|
+
glab api --paginate projects/:id/issues
|
|
354
|
+
|
|
355
|
+
# Pagination with query parameters (specify per_page in URL)
|
|
356
|
+
glab api "projects/:id/issues?per_page=100"
|
|
357
|
+
|
|
358
|
+
# Combine pagination flag with query parameters
|
|
359
|
+
glab api --paginate "projects/:id/merge_requests?per_page=50&state=opened"
|
|
360
|
+
|
|
361
|
+
# Manual pagination (specific page)
|
|
362
|
+
glab api "projects/:id/issues?page=2&per_page=100"
|
|
363
|
+
|
|
364
|
+
# Include response headers
|
|
365
|
+
glab api --include projects/:id
|
|
366
|
+
|
|
367
|
+
# Silent mode (no progress)
|
|
368
|
+
glab api --silent projects/:id/merge_requests
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
## Labels
|
|
372
|
+
|
|
373
|
+
```bash
|
|
374
|
+
# List all labels
|
|
375
|
+
glab label list
|
|
376
|
+
|
|
377
|
+
# Create label
|
|
378
|
+
glab label create "bug" --color="#FF0000"
|
|
379
|
+
|
|
380
|
+
# Create label with description
|
|
381
|
+
glab label create "feature" --color="#00FF00" --description "New features"
|
|
382
|
+
|
|
383
|
+
# Delete label
|
|
384
|
+
glab label delete "old-label"
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
## Releases
|
|
388
|
+
|
|
389
|
+
```bash
|
|
390
|
+
# List releases
|
|
391
|
+
glab release list
|
|
392
|
+
|
|
393
|
+
# Create release
|
|
394
|
+
glab release create v1.0.0
|
|
395
|
+
|
|
396
|
+
# Create release with notes
|
|
397
|
+
glab release create v1.0.0 --notes "Release notes here"
|
|
398
|
+
|
|
399
|
+
# Create release from file
|
|
400
|
+
glab release create v1.0.0 --notes-file CHANGELOG.md
|
|
401
|
+
|
|
402
|
+
# Create release with assets
|
|
403
|
+
glab release create v1.0.0 --asset-links='[{"name":"Asset","url":"https://..."}]'
|
|
404
|
+
|
|
405
|
+
# View specific release
|
|
406
|
+
glab release view v1.0.0
|
|
407
|
+
|
|
408
|
+
# Download release assets
|
|
409
|
+
glab release download v1.0.0
|
|
410
|
+
|
|
411
|
+
# Delete release
|
|
412
|
+
glab release delete v1.0.0
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
## Snippets
|
|
416
|
+
|
|
417
|
+
```bash
|
|
418
|
+
# List snippets
|
|
419
|
+
glab snippet list
|
|
420
|
+
|
|
421
|
+
# List all snippets (including private)
|
|
422
|
+
glab snippet list --all
|
|
423
|
+
|
|
424
|
+
# Create snippet
|
|
425
|
+
glab snippet create --title "Config" --filename config.yml
|
|
426
|
+
|
|
427
|
+
# Create snippet from file
|
|
428
|
+
glab snippet create --title "Script" myfile.sh
|
|
429
|
+
|
|
430
|
+
# Create private snippet
|
|
431
|
+
glab snippet create --title "Secret" --private secret.txt
|
|
432
|
+
|
|
433
|
+
# View snippet
|
|
434
|
+
glab snippet view <snippet-id>
|
|
435
|
+
|
|
436
|
+
# Delete snippet
|
|
437
|
+
glab snippet delete <snippet-id>
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
## User Operations
|
|
441
|
+
|
|
442
|
+
```bash
|
|
443
|
+
# View current user information
|
|
444
|
+
glab user view
|
|
445
|
+
|
|
446
|
+
# View specific user
|
|
447
|
+
glab user view username
|
|
448
|
+
|
|
449
|
+
# List user's events
|
|
450
|
+
glab user events
|
|
451
|
+
|
|
452
|
+
# List specific user's events
|
|
453
|
+
glab user events username
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
## Variables (CI/CD)
|
|
457
|
+
|
|
458
|
+
```bash
|
|
459
|
+
# List variables
|
|
460
|
+
glab variable list
|
|
461
|
+
|
|
462
|
+
# Get specific variable
|
|
463
|
+
glab variable get VAR_NAME
|
|
464
|
+
|
|
465
|
+
# Set/create variable
|
|
466
|
+
glab variable set VAR_NAME value
|
|
467
|
+
|
|
468
|
+
# Set protected variable
|
|
469
|
+
glab variable set VAR_NAME value --protected
|
|
470
|
+
|
|
471
|
+
# Set masked variable
|
|
472
|
+
glab variable set VAR_NAME value --masked
|
|
473
|
+
|
|
474
|
+
# Update variable
|
|
475
|
+
glab variable update VAR_NAME new-value
|
|
476
|
+
|
|
477
|
+
# Delete variable
|
|
478
|
+
glab variable delete VAR_NAME
|
|
479
|
+
|
|
480
|
+
# Export variables
|
|
481
|
+
glab variable export > variables.json
|
|
482
|
+
|
|
483
|
+
# Import variables
|
|
484
|
+
glab variable import < variables.json
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
## Additional Commands
|
|
488
|
+
|
|
489
|
+
### Aliases
|
|
490
|
+
```bash
|
|
491
|
+
# Create alias
|
|
492
|
+
glab alias set co "mr checkout"
|
|
493
|
+
|
|
494
|
+
# List aliases
|
|
495
|
+
glab alias list
|
|
496
|
+
|
|
497
|
+
# Delete alias
|
|
498
|
+
glab alias delete co
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### SSH Keys
|
|
502
|
+
```bash
|
|
503
|
+
# List SSH keys
|
|
504
|
+
glab ssh-key list
|
|
505
|
+
|
|
506
|
+
# Add SSH key
|
|
507
|
+
glab ssh-key add ~/.ssh/id_rsa.pub
|
|
508
|
+
|
|
509
|
+
# Add SSH key with title
|
|
510
|
+
glab ssh-key add ~/.ssh/id_rsa.pub --title "Work laptop"
|
|
511
|
+
|
|
512
|
+
# Delete SSH key
|
|
513
|
+
glab ssh-key delete <key-id>
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
### Deploy Keys
|
|
517
|
+
```bash
|
|
518
|
+
# List deploy keys
|
|
519
|
+
glab deploy-key list
|
|
520
|
+
|
|
521
|
+
# Add deploy key
|
|
522
|
+
glab deploy-key add --title "CI/CD" --key "ssh-rsa ..."
|
|
523
|
+
|
|
524
|
+
# Delete deploy key
|
|
525
|
+
glab deploy-key delete <key-id>
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
### Schedules (Pipeline Schedules)
|
|
529
|
+
```bash
|
|
530
|
+
# List pipeline schedules
|
|
531
|
+
glab schedule list
|
|
532
|
+
|
|
533
|
+
# Create schedule
|
|
534
|
+
glab schedule create --cron "0 2 * * *" --ref main --description "Nightly build"
|
|
535
|
+
|
|
536
|
+
# Run schedule immediately
|
|
537
|
+
glab schedule run <schedule-id>
|
|
538
|
+
|
|
539
|
+
# Delete schedule
|
|
540
|
+
glab schedule delete <schedule-id>
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
## Common Flags Across Commands
|
|
544
|
+
|
|
545
|
+
Most glab commands support these common flags:
|
|
546
|
+
|
|
547
|
+
- `--help`, `-h` - Show help for command
|
|
548
|
+
- `--repo`, `-R` - Specify repository (format: OWNER/REPO)
|
|
549
|
+
- `--web`, `-w` - Open in web browser
|
|
550
|
+
- `--output`, `-o` - Output format (json, text, etc.)
|
|
551
|
+
- `--verbose` - Enable verbose output
|
|
552
|
+
- `--page`, `-p` - Page number for paginated results
|
|
553
|
+
- `--per-page`, `-P` - Number of items per page
|
|
554
|
+
|
|
555
|
+
## Output Formats
|
|
556
|
+
|
|
557
|
+
Many commands support different output formats:
|
|
558
|
+
|
|
559
|
+
```bash
|
|
560
|
+
# JSON output (useful for scripting)
|
|
561
|
+
glab mr list --output=json
|
|
562
|
+
|
|
563
|
+
# Pipe to jq for processing
|
|
564
|
+
glab mr list --output=json | jq '.[] | .title'
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
## Configuration Commands
|
|
568
|
+
|
|
569
|
+
```bash
|
|
570
|
+
# View all configuration
|
|
571
|
+
glab config get
|
|
572
|
+
|
|
573
|
+
# Get specific config value
|
|
574
|
+
glab config get editor
|
|
575
|
+
|
|
576
|
+
# Set configuration value
|
|
577
|
+
glab config set editor vim
|
|
578
|
+
|
|
579
|
+
# Common config keys:
|
|
580
|
+
# - editor: preferred text editor
|
|
581
|
+
# - browser: web browser to use
|
|
582
|
+
# - glamour_style: style for terminal rendering
|
|
583
|
+
# - host: default GitLab host
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
## Completion
|
|
587
|
+
|
|
588
|
+
```bash
|
|
589
|
+
# Generate completion script for bash
|
|
590
|
+
glab completion --shell bash
|
|
591
|
+
|
|
592
|
+
# For zsh
|
|
593
|
+
glab completion --shell zsh
|
|
594
|
+
|
|
595
|
+
# For fish
|
|
596
|
+
glab completion --shell fish
|
|
597
|
+
|
|
598
|
+
# For PowerShell
|
|
599
|
+
glab completion --shell powershell
|
|
600
|
+
|
|
601
|
+
# Install completion (bash example)
|
|
602
|
+
glab completion --shell bash > /etc/bash_completion.d/glab
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
## Version and Updates
|
|
606
|
+
|
|
607
|
+
```bash
|
|
608
|
+
# Show glab version
|
|
609
|
+
glab version
|
|
610
|
+
|
|
611
|
+
# Check for updates
|
|
612
|
+
glab check-update
|
|
613
|
+
|
|
614
|
+
# View changelog
|
|
615
|
+
glab changelog
|
|
616
|
+
```
|