@gadgetinc/ggt 2.2.0 → 3.0.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.
- package/README.md +392 -307
- package/dist/action-CF6zatIh.js +64 -0
- package/dist/action-CF6zatIh.js.map +1 -0
- package/dist/action-CrDCeX3F.js +8 -0
- package/dist/action-CrDCeX3F.js.map +1 -0
- package/dist/add-Basu3Gyf.js +1 -0
- package/dist/agent-plugin-CqgwTOk-.js +15 -0
- package/dist/agent-plugin-CqgwTOk-.js.map +1 -0
- package/dist/agent-plugin-DU9G5B1d.js +9 -0
- package/dist/agent-plugin-DU9G5B1d.js.map +1 -0
- package/dist/assert-Bu1E126Z.js +2 -0
- package/dist/assert-Bu1E126Z.js.map +1 -0
- package/dist/chunk-BjEoQXZ0.js +1 -0
- package/dist/collection-C2TCeYqY.js +2 -0
- package/dist/collection-C2TCeYqY.js.map +1 -0
- package/dist/collection-aM0fpch0.js +1 -0
- package/dist/command-2iNTc5dV.js +118 -0
- package/dist/command-2iNTc5dV.js.map +1 -0
- package/dist/completion-D96nxD5n.js +37 -0
- package/dist/completion-D96nxD5n.js.map +1 -0
- package/dist/configure-C8ge-2cK.js +15 -0
- package/dist/configure-C8ge-2cK.js.map +1 -0
- package/dist/debugger-BkYgApKn.js +22 -0
- package/dist/debugger-BkYgApKn.js.map +1 -0
- package/dist/defaults-B_eD7Pia.js +2 -0
- package/dist/defaults-B_eD7Pia.js.map +1 -0
- package/dist/deploy-Da6P2HXS.js +15 -0
- package/dist/deploy-Da6P2HXS.js.map +1 -0
- package/dist/dev-DWMSNcLl.js +32 -0
- package/dist/dev-DWMSNcLl.js.map +1 -0
- package/dist/dev-lock-BFanZSu1.js +10 -0
- package/dist/dev-lock-BFanZSu1.js.map +1 -0
- package/dist/directory-CNL03L6c.js +9 -0
- package/dist/directory-CNL03L6c.js.map +1 -0
- package/dist/env-DoWNvHzW.js +62 -0
- package/dist/env-DoWNvHzW.js.map +1 -0
- package/dist/esm-B25i6Etq.js +12 -0
- package/dist/esm-B25i6Etq.js.map +1 -0
- package/dist/esm-CJocZrdd.js +2 -0
- package/dist/esm-CJocZrdd.js.map +1 -0
- package/dist/eval-BceZMSd5.js +27 -0
- package/dist/eval-BceZMSd5.js.map +1 -0
- package/dist/execAsync-DrhcEHLd.js +2 -0
- package/dist/execAsync-DrhcEHLd.js.map +1 -0
- package/dist/filesync-De6asZeR.js +61 -0
- package/dist/filesync-De6asZeR.js.map +1 -0
- package/dist/getMachineId-bsd-Cch8Z6pV.js +2 -0
- package/dist/getMachineId-bsd-Cch8Z6pV.js.map +1 -0
- package/dist/getMachineId-darwin-kbQWK54o.js +3 -0
- package/dist/getMachineId-darwin-kbQWK54o.js.map +1 -0
- package/dist/getMachineId-linux-DdIel6zr.js +2 -0
- package/dist/getMachineId-linux-DdIel6zr.js.map +1 -0
- package/dist/getMachineId-unsupported-Bvmsh30k.js +2 -0
- package/dist/getMachineId-unsupported-Bvmsh30k.js.map +1 -0
- package/dist/getMachineId-win-BteHZe8j.js +2 -0
- package/dist/getMachineId-win-BteHZe8j.js.map +1 -0
- package/dist/ggt-B3HQjQRM.js +3 -0
- package/dist/ggt-B3HQjQRM.js.map +1 -0
- package/dist/handler-DZyG8Sel.js +4 -0
- package/dist/handler-DZyG8Sel.js.map +1 -0
- package/dist/http-CY3lPMkt.js +320 -0
- package/dist/http-CY3lPMkt.js.map +1 -0
- package/dist/indent-string-BVm-4tyL.js +2 -0
- package/dist/indent-string-BVm-4tyL.js.map +1 -0
- package/dist/list-lQKWZ6ZI.js +10 -0
- package/dist/list-lQKWZ6ZI.js.map +1 -0
- package/dist/login-Ce0tByNd.js +1 -0
- package/dist/logout-_sTWeaiQ.js +5 -0
- package/dist/logout-_sTWeaiQ.js.map +1 -0
- package/dist/logs-DbhJzz4M.js +9 -0
- package/dist/logs-DbhJzz4M.js.map +1 -0
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -7
- package/dist/model-CBiMKY0P.js +11 -0
- package/dist/model-CBiMKY0P.js.map +1 -0
- package/dist/ms-B7sMc0pR.js +2 -0
- package/dist/ms-B7sMc0pR.js.map +1 -0
- package/dist/open-CSsA4B-l.js +38 -0
- package/dist/open-CSsA4B-l.js.map +1 -0
- package/dist/p-map-DE0acmRv.js +2 -0
- package/dist/p-map-DE0acmRv.js.map +1 -0
- package/dist/problems-BMLsmxd4.js +11 -0
- package/dist/problems-BMLsmxd4.js.map +1 -0
- package/dist/prompt-C9nwJW0G.js +2 -0
- package/dist/prompt-C9nwJW0G.js.map +1 -0
- package/dist/pull-DpizmJGk.js +12 -0
- package/dist/pull-DpizmJGk.js.map +1 -0
- package/dist/push-67KBCw6c.js +12 -0
- package/dist/push-67KBCw6c.js.map +1 -0
- package/dist/root-D_UnUsp7.js +28 -0
- package/dist/root-D_UnUsp7.js.map +1 -0
- package/dist/select-Dey_sjjd.js +4 -0
- package/dist/select-Dey_sjjd.js.map +1 -0
- package/dist/session-BmzGF1t7.js +2 -0
- package/dist/session-BmzGF1t7.js.map +1 -0
- package/dist/spinner-BVmbgIil.js +8 -0
- package/dist/spinner-BVmbgIil.js.map +1 -0
- package/dist/src-DxCC1MV4.js +6 -0
- package/dist/src-DxCC1MV4.js.map +1 -0
- package/dist/status-P_RFQ7J0.js +13 -0
- package/dist/status-P_RFQ7J0.js.map +1 -0
- package/dist/subscribeToEnvironmentLogs-CUicaiw_.js +2 -0
- package/dist/subscribeToEnvironmentLogs-CUicaiw_.js.map +1 -0
- package/dist/sync-json-V52OzeCz.js +112 -0
- package/dist/sync-json-V52OzeCz.js.map +1 -0
- package/dist/table-MrBbxMay.js +11 -0
- package/dist/table-MrBbxMay.js.map +1 -0
- package/dist/update-CfxiL08e.js +12 -0
- package/dist/update-CfxiL08e.js.map +1 -0
- package/dist/update-iyhnL9-M.js +1 -0
- package/dist/var-ByWcufFt.js +59 -0
- package/dist/var-ByWcufFt.js.map +1 -0
- package/dist/version-B_9GB4u3.js +9 -0
- package/dist/version-B_9GB4u3.js.map +1 -0
- package/dist/whoami-BNcXIfz7.js +5 -0
- package/dist/whoami-BNcXIfz7.js.map +1 -0
- package/package.json +19 -23
- package/assets/favicon-128@4x.png +0 -0
- package/dist/add-TWLGKL2T.js +0 -82
- package/dist/add-TWLGKL2T.js.map +0 -7
- package/dist/agent-plugin-TN24O7FB.js +0 -10
- package/dist/agent-plugin-TN24O7FB.js.map +0 -7
- package/dist/chunk-2742UPMB.js +0 -10
- package/dist/chunk-2742UPMB.js.map +0 -7
- package/dist/chunk-3OM5WM7E.js +0 -2
- package/dist/chunk-3OM5WM7E.js.map +0 -7
- package/dist/chunk-442CSROP.js +0 -66
- package/dist/chunk-442CSROP.js.map +0 -7
- package/dist/chunk-7DYQUG5M.js +0 -2
- package/dist/chunk-7DYQUG5M.js.map +0 -7
- package/dist/chunk-DR4CXBD6.js +0 -11
- package/dist/chunk-DR4CXBD6.js.map +0 -7
- package/dist/chunk-F255O64V.js +0 -2
- package/dist/chunk-F255O64V.js.map +0 -7
- package/dist/chunk-GFQYFEEH.js +0 -2
- package/dist/chunk-GFQYFEEH.js.map +0 -7
- package/dist/chunk-GJGBTM5Y.js +0 -2
- package/dist/chunk-GJGBTM5Y.js.map +0 -7
- package/dist/chunk-HCULGPBH.js +0 -2
- package/dist/chunk-HCULGPBH.js.map +0 -7
- package/dist/chunk-J232VCIM.js +0 -2
- package/dist/chunk-J232VCIM.js.map +0 -7
- package/dist/chunk-JG2QCDK2.js +0 -118
- package/dist/chunk-JG2QCDK2.js.map +0 -7
- package/dist/chunk-JKZNSRLU.js +0 -8
- package/dist/chunk-JKZNSRLU.js.map +0 -7
- package/dist/chunk-JYE5LLIF.js +0 -9
- package/dist/chunk-JYE5LLIF.js.map +0 -7
- package/dist/chunk-KKIL22RY.js +0 -2
- package/dist/chunk-KKIL22RY.js.map +0 -7
- package/dist/chunk-L2XBSR7G.js +0 -2
- package/dist/chunk-L2XBSR7G.js.map +0 -7
- package/dist/chunk-MW6MXMSN.js +0 -2
- package/dist/chunk-MW6MXMSN.js.map +0 -7
- package/dist/chunk-OUIZQC4D.js +0 -12
- package/dist/chunk-OUIZQC4D.js.map +0 -7
- package/dist/chunk-R6KJLEKY.js +0 -28
- package/dist/chunk-R6KJLEKY.js.map +0 -7
- package/dist/chunk-SIR6HLN3.js +0 -69
- package/dist/chunk-SIR6HLN3.js.map +0 -7
- package/dist/chunk-SVWK2NXG.js +0 -2
- package/dist/chunk-SVWK2NXG.js.map +0 -7
- package/dist/chunk-T6UHSWMT.js +0 -2
- package/dist/chunk-T6UHSWMT.js.map +0 -7
- package/dist/chunk-WB6O2V5D.js +0 -11
- package/dist/chunk-WB6O2V5D.js.map +0 -7
- package/dist/chunk-XC4F2TLW.js +0 -113
- package/dist/chunk-XC4F2TLW.js.map +0 -7
- package/dist/chunk-YFUOXDPK.js +0 -10
- package/dist/chunk-YFUOXDPK.js.map +0 -7
- package/dist/chunk-ZSREFZXV.js +0 -211
- package/dist/chunk-ZSREFZXV.js.map +0 -7
- package/dist/chunk-ZYDMXS5R.js +0 -6
- package/dist/chunk-ZYDMXS5R.js.map +0 -7
- package/dist/configure-UJS7V2JX.js +0 -12
- package/dist/configure-UJS7V2JX.js.map +0 -7
- package/dist/debugger-QN2MCLBL.js +0 -41
- package/dist/debugger-QN2MCLBL.js.map +0 -7
- package/dist/deploy-J74PHPQA.js +0 -25
- package/dist/deploy-J74PHPQA.js.map +0 -7
- package/dist/dev-GGUSOOYP.js +0 -59
- package/dist/dev-GGUSOOYP.js.map +0 -7
- package/dist/esm-D77XRR65.js +0 -38
- package/dist/esm-D77XRR65.js.map +0 -7
- package/dist/eval-L6WHUFLU.js +0 -54
- package/dist/eval-L6WHUFLU.js.map +0 -7
- package/dist/getMachineId-bsd-QUXN4NKS.js +0 -2
- package/dist/getMachineId-bsd-QUXN4NKS.js.map +0 -7
- package/dist/getMachineId-darwin-TCXBAX22.js +0 -3
- package/dist/getMachineId-darwin-TCXBAX22.js.map +0 -7
- package/dist/getMachineId-linux-IJ3LYIOX.js +0 -2
- package/dist/getMachineId-linux-IJ3LYIOX.js.map +0 -7
- package/dist/getMachineId-unsupported-IKXBUCYY.js +0 -2
- package/dist/getMachineId-unsupported-IKXBUCYY.js.map +0 -7
- package/dist/getMachineId-win-6CX7VSFF.js +0 -2
- package/dist/getMachineId-win-6CX7VSFF.js.map +0 -7
- package/dist/ggt-5XNRJZSW.js +0 -44
- package/dist/ggt-5XNRJZSW.js.map +0 -7
- package/dist/list-756D46N5.js +0 -11
- package/dist/list-756D46N5.js.map +0 -7
- package/dist/login-GMWQRH7V.js +0 -2
- package/dist/login-GMWQRH7V.js.map +0 -7
- package/dist/logout-LQABTJFD.js +0 -7
- package/dist/logout-LQABTJFD.js.map +0 -7
- package/dist/logs-AQZB272X.js +0 -28
- package/dist/logs-AQZB272X.js.map +0 -7
- package/dist/open-OMZWPQ66.js +0 -74
- package/dist/open-OMZWPQ66.js.map +0 -7
- package/dist/problems-FZJKH52E.js +0 -14
- package/dist/problems-FZJKH52E.js.map +0 -7
- package/dist/pull-XYCYN7QN.js +0 -28
- package/dist/pull-XYCYN7QN.js.map +0 -7
- package/dist/push-3QM7ZFTC.js +0 -2
- package/dist/push-3QM7ZFTC.js.map +0 -7
- package/dist/status-PWAXNK5G.js +0 -14
- package/dist/status-PWAXNK5G.js.map +0 -7
- package/dist/update-QIQFJFRQ.js +0 -2
- package/dist/update-QIQFJFRQ.js.map +0 -7
- package/dist/var-N4WGGJXZ.js +0 -159
- package/dist/var-N4WGGJXZ.js.map +0 -7
- package/dist/version-AJKSJJDC.js +0 -11
- package/dist/version-AJKSJJDC.js.map +0 -7
- package/dist/whoami-KJYDSQSD.js +0 -7
- package/dist/whoami-KJYDSQSD.js.map +0 -7
package/README.md
CHANGED
|
@@ -27,7 +27,10 @@
|
|
|
27
27
|
- [`ggt push`](#ggt-push)
|
|
28
28
|
- [`ggt pull`](#ggt-pull)
|
|
29
29
|
- [`ggt var`](#ggt-var)
|
|
30
|
+
- [`ggt env`](#ggt-env)
|
|
30
31
|
- [`ggt add`](#ggt-add)
|
|
32
|
+
- [`ggt model`](#ggt-model)
|
|
33
|
+
- [`ggt action`](#ggt-action)
|
|
31
34
|
- [`ggt open`](#ggt-open)
|
|
32
35
|
- [`ggt list`](#ggt-list)
|
|
33
36
|
- [`ggt login`](#ggt-login)
|
|
@@ -39,6 +42,7 @@
|
|
|
39
42
|
- [`ggt agent-plugin`](#ggt-agent-plugin)
|
|
40
43
|
- [`ggt eval`](#ggt-eval)
|
|
41
44
|
- [`ggt version`](#ggt-version)
|
|
45
|
+
- [`ggt completion`](#ggt-completion)
|
|
42
46
|
|
|
43
47
|
## Intro
|
|
44
48
|
|
|
@@ -61,38 +65,54 @@ $ npm install -g ggt
|
|
|
61
65
|
$ ggt
|
|
62
66
|
The command-line interface for Gadget.
|
|
63
67
|
|
|
64
|
-
|
|
65
|
-
ggt [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
push
|
|
72
|
-
pull
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
68
|
+
USAGE
|
|
69
|
+
ggt [command]
|
|
70
|
+
|
|
71
|
+
COMMANDS
|
|
72
|
+
Development
|
|
73
|
+
dev Sync files and stream logs locally
|
|
74
|
+
deploy Deploy an environment to production
|
|
75
|
+
push Upload local file changes to Gadget
|
|
76
|
+
pull Download environment files to your local directory
|
|
77
|
+
status Show sync state and pending file changes
|
|
78
|
+
logs Print recent logs or stream logs from your app
|
|
79
|
+
debugger Connect a debugger to your app's environment
|
|
80
|
+
|
|
81
|
+
Resources
|
|
82
|
+
add Add resources to your app
|
|
83
|
+
model Add and manage models in your app
|
|
84
|
+
action Add and manage actions
|
|
85
|
+
var Manage your app's environment variables
|
|
86
|
+
env Manage your app's environments
|
|
87
|
+
open Open your app in a browser
|
|
88
|
+
|
|
89
|
+
Account
|
|
90
|
+
login Log in to Gadget
|
|
91
|
+
logout Log out of Gadget
|
|
92
|
+
whoami Show the current logged-in user
|
|
93
|
+
list List your Gadget apps
|
|
94
|
+
|
|
95
|
+
Diagnostics
|
|
96
|
+
problems Show errors and warnings in your app
|
|
97
|
+
eval Evaluate a JavaScript snippet against your app
|
|
98
|
+
|
|
99
|
+
Configuration
|
|
100
|
+
configure Manage ggt configuration
|
|
101
|
+
agent-plugin Manage plugins for AI coding assistants
|
|
102
|
+
completion Generate shell completion scripts
|
|
103
|
+
version Print the currently installed version
|
|
104
|
+
|
|
105
|
+
FLAGS
|
|
106
|
+
-h, --help Show command help
|
|
107
|
+
--version Print the ggt version
|
|
108
|
+
-v, --verbose Increase output verbosity (-vv for debug, -vvv for trace)
|
|
89
109
|
--telemetry Enable telemetry
|
|
110
|
+
--json Output as JSON where supported
|
|
90
111
|
|
|
91
|
-
|
|
92
|
-
Install AGENTS.md and Gadget agent skills for your coding agent:
|
|
93
|
-
ggt agent-plugin install
|
|
112
|
+
Use -h for a summary, --help for full details.
|
|
94
113
|
|
|
95
|
-
|
|
114
|
+
Documentation: https://docs.gadget.dev/guides/cli
|
|
115
|
+
Issues: https://github.com/gadget-inc/ggt/issues
|
|
96
116
|
```
|
|
97
117
|
|
|
98
118
|
## Commands
|
|
@@ -101,428 +121,493 @@ Run "ggt [COMMAND] -h" for more information about a specific command.
|
|
|
101
121
|
|
|
102
122
|
```sh-session
|
|
103
123
|
$ ggt dev -h
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
Ignoring files
|
|
127
|
-
ggt dev uses a .ignore file, similar to .gitignore, to exclude specific files and
|
|
128
|
-
folders from syncing. These files are always ignored:
|
|
129
|
-
|
|
130
|
-
• .DS_Store
|
|
131
|
-
• .gadget
|
|
132
|
-
• .git
|
|
133
|
-
• node_modules
|
|
134
|
-
• .shopify
|
|
135
|
-
|
|
136
|
-
Notes
|
|
137
|
-
• "ggt dev" only works with development environments
|
|
138
|
-
• "ggt dev" only supports "yarn" v1 for installing dependencies
|
|
139
|
-
• Avoid deleting or moving all of your files while "ggt dev" is running
|
|
140
|
-
|
|
141
|
-
Examples
|
|
142
|
-
sync an app in a custom path
|
|
143
|
-
$ ggt dev ~/myGadgetApps/myBlog --app myBlogApp
|
|
144
|
-
|
|
145
|
-
sync with a specific environment and preselect all local changes on conflicts
|
|
146
|
-
$ ggt dev --env main --prefer local
|
|
147
|
-
|
|
148
|
-
sync a custom path with a specific app, environment and preselect all changes from local on conflicts
|
|
149
|
-
$ ggt dev ~/gadget/example --app=example --env=development --prefer=local
|
|
124
|
+
Sync files and stream logs locally
|
|
125
|
+
|
|
126
|
+
USAGE
|
|
127
|
+
ggt dev [directory] [flags]
|
|
128
|
+
|
|
129
|
+
ARGUMENTS
|
|
130
|
+
directory Directory to sync files to
|
|
131
|
+
|
|
132
|
+
FLAGS
|
|
133
|
+
-a, --app, --application <app> Gadget app to use
|
|
134
|
+
-e, --env, --environment <env> Environment to use
|
|
135
|
+
-l, --log-level <level> Minimum log level to display
|
|
136
|
+
-m, --my-logs Show only logs emitted by your code
|
|
137
|
+
--no-logs Don't stream logs while syncing
|
|
138
|
+
--prefer <source> Auto-resolve conflicts using the given source
|
|
139
|
+
|
|
140
|
+
EXAMPLES
|
|
141
|
+
$ ggt dev
|
|
142
|
+
$ ggt dev ~/gadget/my-app
|
|
143
|
+
$ ggt dev --prefer local
|
|
144
|
+
$ ggt dev ~/gadget/my-app --app my-app --env development --prefer local
|
|
150
145
|
```
|
|
151
146
|
|
|
152
147
|
### `ggt deploy`
|
|
153
148
|
|
|
154
149
|
```sh-session
|
|
155
150
|
$ ggt deploy -h
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
--allow-data-delete Deploys even if it results in the deletion of data in production
|
|
173
|
-
--allow-charges Deploys even if it results in additional charges to your plan
|
|
174
|
-
|
|
175
|
-
Examples
|
|
176
|
-
Deploys code from the staging environment of a myBlog
|
|
177
|
-
$ ggt deploy -a myBlog -from staging
|
|
151
|
+
Deploy an environment to production
|
|
152
|
+
|
|
153
|
+
USAGE
|
|
154
|
+
ggt deploy [flags]
|
|
155
|
+
|
|
156
|
+
FLAGS
|
|
157
|
+
-a, --app, --application <app> Gadget app to use
|
|
158
|
+
-e, --env, --environment, --from <env> Environment to deploy from
|
|
159
|
+
-f, --force Skip the push confirmation prompt
|
|
160
|
+
|
|
161
|
+
EXAMPLES
|
|
162
|
+
$ ggt deploy
|
|
163
|
+
$ ggt deploy --env staging
|
|
164
|
+
$ ggt deploy --force --allow-all
|
|
165
|
+
$ ggt deploy --force --allow=problems,charges,data-delete
|
|
166
|
+
$ ggt deploy --env staging --force --allow-problems --allow-charges --allow-data-delete
|
|
178
167
|
```
|
|
179
168
|
|
|
180
169
|
### `ggt status`
|
|
181
170
|
|
|
182
171
|
```sh-session
|
|
183
172
|
$ ggt status -h
|
|
184
|
-
|
|
173
|
+
Show sync state and pending file changes
|
|
185
174
|
|
|
186
|
-
|
|
187
|
-
|
|
175
|
+
USAGE
|
|
176
|
+
ggt status [flags]
|
|
177
|
+
|
|
178
|
+
FLAGS
|
|
179
|
+
-a, --app, --application <app> Gadget app to use
|
|
180
|
+
-e, --env, --environment <env> Environment to use
|
|
181
|
+
|
|
182
|
+
EXAMPLES
|
|
183
|
+
$ ggt status
|
|
184
|
+
$ ggt status --app myapp --env staging
|
|
188
185
|
```
|
|
189
186
|
|
|
190
187
|
### `ggt problems`
|
|
191
188
|
|
|
192
189
|
```sh-session
|
|
193
190
|
$ ggt problems -h
|
|
194
|
-
|
|
191
|
+
Show errors and warnings in your app
|
|
192
|
+
|
|
193
|
+
USAGE
|
|
194
|
+
ggt problems [flags]
|
|
195
|
+
|
|
196
|
+
FLAGS
|
|
197
|
+
-a, --app, --application <app> Gadget app to use
|
|
198
|
+
-e, --env, --environment <env> Environment to use
|
|
195
199
|
|
|
196
|
-
|
|
197
|
-
|
|
200
|
+
EXAMPLES
|
|
201
|
+
$ ggt problems
|
|
202
|
+
$ ggt problems --app myBlog
|
|
203
|
+
$ ggt problems --env staging
|
|
204
|
+
$ ggt problems --app myBlog --env production
|
|
198
205
|
```
|
|
199
206
|
|
|
200
207
|
### `ggt push`
|
|
201
208
|
|
|
202
209
|
```sh-session
|
|
203
210
|
$ ggt push -h
|
|
204
|
-
|
|
211
|
+
Upload local file changes to Gadget
|
|
205
212
|
|
|
206
|
-
|
|
207
|
-
|
|
213
|
+
USAGE
|
|
214
|
+
ggt push [flags]
|
|
208
215
|
|
|
209
|
-
|
|
210
|
-
|
|
216
|
+
FLAGS
|
|
217
|
+
-a, --app, --application <app> Gadget app to use
|
|
218
|
+
-e, --env, --environment, --to <env> Environment to push to
|
|
219
|
+
-f, --force Push without prompting, discarding environment changes
|
|
211
220
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
--allow-different-directory Pushes changes from any local directory with existing files, even if the directory hasn't been synced before
|
|
217
|
-
--allow-different-app Pushes changes to an app using --app command, instead of the most recently synced one in the current directory
|
|
218
|
-
|
|
219
|
-
Examples
|
|
220
|
-
Push all local changes to the main environment by discarding any changes made on main
|
|
221
|
-
$ ggt push --env main --force
|
|
221
|
+
EXAMPLES
|
|
222
|
+
$ ggt push
|
|
223
|
+
$ ggt push --env main
|
|
224
|
+
$ ggt push --env main --force
|
|
222
225
|
```
|
|
223
226
|
|
|
224
227
|
### `ggt pull`
|
|
225
228
|
|
|
226
229
|
```sh-session
|
|
227
230
|
$ ggt pull -h
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
This command first tracks changes in your local directory since the last sync. If changes are
|
|
231
|
-
detected, you will be prompted to discard them or abort the pull.
|
|
231
|
+
Download environment files to your local directory
|
|
232
232
|
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
USAGE
|
|
234
|
+
ggt pull [flags]
|
|
235
235
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
--allow-different-directory Pulls changes from any environment directory, even if the directory hasn't been synced before
|
|
241
|
-
--allow-different-app Pulls changes to a different app using --app command, instead of the most recently synced one in the current directory
|
|
236
|
+
FLAGS
|
|
237
|
+
-a, --app, --application <app> Gadget app to use
|
|
238
|
+
-e, --env, --environment, --from <env> Environment to pull from
|
|
239
|
+
-f, --force Pull without prompting, discarding local changes
|
|
242
240
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
EXAMPLES
|
|
242
|
+
$ ggt pull
|
|
243
|
+
$ ggt pull --env staging
|
|
244
|
+
$ ggt pull --env production --force
|
|
246
245
|
```
|
|
247
246
|
|
|
248
247
|
### `ggt var`
|
|
249
248
|
|
|
250
249
|
```sh-session
|
|
251
250
|
$ ggt var -h
|
|
252
|
-
Manage environment variables
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
ggt var <command> [
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
list
|
|
259
|
-
get
|
|
260
|
-
set
|
|
261
|
-
delete
|
|
262
|
-
import
|
|
251
|
+
Manage your app's environment variables
|
|
252
|
+
|
|
253
|
+
USAGE
|
|
254
|
+
ggt var <command> [flags]
|
|
255
|
+
|
|
256
|
+
COMMANDS
|
|
257
|
+
list List all environment variable keys
|
|
258
|
+
get Print the value of an environment variable
|
|
259
|
+
set Set one or more environment variables
|
|
260
|
+
delete Delete one or more environment variables
|
|
261
|
+
import Import variables from another environment or file
|
|
262
|
+
|
|
263
|
+
FLAGS
|
|
264
|
+
-a, --app, --application <app> Gadget app to use
|
|
265
|
+
-e, --env, --environment <env> Environment to use
|
|
266
|
+
|
|
267
|
+
EXAMPLES
|
|
268
|
+
$ ggt var list
|
|
269
|
+
$ ggt var get DATABASE_URL
|
|
270
|
+
$ ggt var set API_KEY=abc123
|
|
271
|
+
$ ggt var set SECRET=xyz --secret
|
|
272
|
+
$ ggt var set CONNECTION_STRING=postgres://user:pass@host/db
|
|
273
|
+
$ ggt var delete API_KEY
|
|
274
|
+
$ ggt var delete --all --force
|
|
275
|
+
$ ggt var import --from staging --all
|
|
276
|
+
$ ggt var import --from-file .env --all
|
|
277
|
+
```
|
|
263
278
|
|
|
264
|
-
|
|
265
|
-
-a, --app <app_name> Selects the application
|
|
266
|
-
-e, --env <env_name> Selects the environment
|
|
279
|
+
### `ggt env`
|
|
267
280
|
|
|
268
|
-
|
|
281
|
+
```sh-session
|
|
282
|
+
$ ggt env -h
|
|
283
|
+
Manage your app's environments
|
|
284
|
+
|
|
285
|
+
USAGE
|
|
286
|
+
ggt env <command> [flags]
|
|
287
|
+
|
|
288
|
+
COMMANDS
|
|
289
|
+
list List all environments
|
|
290
|
+
create Create a new environment
|
|
291
|
+
delete Delete an environment
|
|
292
|
+
unpause Unpause a paused environment
|
|
293
|
+
use Switch the active environment for this directory
|
|
294
|
+
|
|
295
|
+
FLAGS
|
|
296
|
+
-a, --app, --application <app> Gadget app to use
|
|
297
|
+
|
|
298
|
+
EXAMPLES
|
|
299
|
+
$ ggt env list
|
|
300
|
+
$ ggt env create staging
|
|
301
|
+
$ ggt env create staging --from development
|
|
302
|
+
$ ggt env delete staging --force
|
|
303
|
+
$ ggt env unpause staging
|
|
304
|
+
$ ggt env use staging
|
|
269
305
|
```
|
|
270
306
|
|
|
271
307
|
### `ggt add`
|
|
272
308
|
|
|
273
309
|
```sh-session
|
|
274
310
|
$ ggt add -h
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
This command first performs a sync to ensure that your local and environment directories match, changes are tracked since last sync.
|
|
278
|
-
If any conflicts are detected, they must be resolved before adding models, fields, actions or routes.
|
|
279
|
-
|
|
280
|
-
Usage
|
|
281
|
-
ggt add model <model_name> [field_name:field_type ...]
|
|
282
|
-
|
|
283
|
-
ggt add action [CONTEXT]/<action_name>
|
|
284
|
-
CONTEXT:Specifies the kind of action. Use "model" for model actions otherwise use "action".
|
|
311
|
+
Add resources to your app
|
|
285
312
|
|
|
286
|
-
|
|
313
|
+
USAGE
|
|
314
|
+
ggt add <command> [flags]
|
|
287
315
|
|
|
288
|
-
|
|
316
|
+
COMMANDS
|
|
317
|
+
model Add a new data model
|
|
318
|
+
action Add an action to a model or as a global action
|
|
319
|
+
route Add an HTTP route
|
|
320
|
+
field Add a field to an existing model
|
|
321
|
+
environment Create a new environment by cloning
|
|
289
322
|
|
|
290
|
-
|
|
291
|
-
-a, --app <
|
|
292
|
-
-e, --env <
|
|
323
|
+
FLAGS
|
|
324
|
+
-a, --app, --application <app> Gadget app to use
|
|
325
|
+
-e, --env, --environment <env> Environment to use
|
|
293
326
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
$ ggt add model modelA
|
|
297
|
-
|
|
298
|
-
Add a new model 'post' with 2 new 'string' type fields 'title' and 'body':
|
|
327
|
+
EXAMPLES
|
|
328
|
+
$ ggt add model post
|
|
299
329
|
$ ggt add model post title:string body:string
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
ggt add
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
ggt add action model/post/publish
|
|
306
|
-
|
|
307
|
-
Add a new action 'audit'
|
|
308
|
-
ggt add action action/audit
|
|
309
|
-
|
|
310
|
-
Add a new route 'howdy'
|
|
311
|
-
ggt add route GET howdy
|
|
312
|
-
|
|
313
|
-
Clone the `development` environment into a new `staging` environment
|
|
314
|
-
ggt add environment staging --environment development
|
|
330
|
+
$ ggt add field post/published:boolean
|
|
331
|
+
$ ggt add action model/post/publish
|
|
332
|
+
$ ggt add action action/audit
|
|
333
|
+
$ ggt add route GET /hello
|
|
334
|
+
$ ggt add environment staging
|
|
315
335
|
```
|
|
316
336
|
|
|
317
|
-
### `ggt
|
|
337
|
+
### `ggt model`
|
|
318
338
|
|
|
319
339
|
```sh-session
|
|
320
|
-
$ ggt
|
|
321
|
-
|
|
322
|
-
various parts of your application's interface such as logs, permissions, data views, or
|
|
323
|
-
schemas.
|
|
340
|
+
$ ggt model -h
|
|
341
|
+
Add and manage models in your app
|
|
324
342
|
|
|
325
|
-
|
|
326
|
-
|
|
343
|
+
USAGE
|
|
344
|
+
ggt model <command> [flags]
|
|
327
345
|
|
|
328
|
-
|
|
346
|
+
COMMANDS
|
|
347
|
+
add Add a model to your app
|
|
348
|
+
remove Remove a model from your app
|
|
349
|
+
rename Rename a model
|
|
329
350
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
+ schema Opens schema editor for a specific model
|
|
351
|
+
FLAGS
|
|
352
|
+
-a, --app, --application <app> Gadget app to use
|
|
353
|
+
-e, --env, --environment <env> Environment to use
|
|
334
354
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
355
|
+
EXAMPLES
|
|
356
|
+
$ ggt model add post
|
|
357
|
+
$ ggt model remove post --force
|
|
358
|
+
$ ggt model rename post article
|
|
359
|
+
```
|
|
339
360
|
|
|
340
|
-
|
|
341
|
-
Opens editor home
|
|
342
|
-
$ ggt open
|
|
361
|
+
### `ggt action`
|
|
343
362
|
|
|
344
|
-
|
|
345
|
-
|
|
363
|
+
```sh-session
|
|
364
|
+
$ ggt action -h
|
|
365
|
+
Add and manage actions
|
|
346
366
|
|
|
347
|
-
|
|
348
|
-
|
|
367
|
+
USAGE
|
|
368
|
+
ggt action <command> [flags]
|
|
349
369
|
|
|
350
|
-
|
|
351
|
-
|
|
370
|
+
COMMANDS
|
|
371
|
+
add Add an action to your app
|
|
352
372
|
|
|
353
|
-
|
|
354
|
-
|
|
373
|
+
FLAGS
|
|
374
|
+
-a, --app, --application <app> Gadget app to use
|
|
375
|
+
-e, --env, --environment <env> Environment to use
|
|
355
376
|
|
|
356
|
-
|
|
357
|
-
|
|
377
|
+
EXAMPLES
|
|
378
|
+
$ ggt action add sendWelcomeEmail
|
|
379
|
+
$ ggt action add notifications/sendWelcomeEmail
|
|
380
|
+
$ ggt action add publish --model post
|
|
381
|
+
$ ggt action add fulfill --model shopifyOrder
|
|
382
|
+
```
|
|
358
383
|
|
|
359
|
-
|
|
360
|
-
$ ggt open schema --show-all
|
|
384
|
+
### `ggt open`
|
|
361
385
|
|
|
362
|
-
|
|
363
|
-
|
|
386
|
+
```sh-session
|
|
387
|
+
$ ggt open -h
|
|
388
|
+
Open your app in a browser
|
|
389
|
+
|
|
390
|
+
USAGE
|
|
391
|
+
ggt open [location] [model] [flags]
|
|
392
|
+
|
|
393
|
+
ARGUMENTS
|
|
394
|
+
location Page to open: logs, permissions, data, or schema
|
|
395
|
+
model Model name for data or schema locations
|
|
396
|
+
|
|
397
|
+
FLAGS
|
|
398
|
+
-a, --app, --application <app> Gadget app to use
|
|
399
|
+
-e, --env, --environment <env> Environment to use
|
|
400
|
+
--show-all Prompt to pick a model from the full list
|
|
401
|
+
|
|
402
|
+
EXAMPLES
|
|
403
|
+
$ ggt open
|
|
404
|
+
$ ggt open logs
|
|
405
|
+
$ ggt open permissions
|
|
406
|
+
$ ggt open data post
|
|
407
|
+
$ ggt open schema post
|
|
408
|
+
$ ggt open data --show-all
|
|
409
|
+
$ ggt open schema --show-all
|
|
410
|
+
$ ggt open data post --app myBlog --env staging
|
|
364
411
|
```
|
|
365
412
|
|
|
366
413
|
### `ggt list`
|
|
367
414
|
|
|
368
415
|
```sh-session
|
|
369
416
|
$ ggt list -h
|
|
370
|
-
List
|
|
417
|
+
List your Gadget apps
|
|
371
418
|
|
|
372
|
-
|
|
373
|
-
|
|
419
|
+
USAGE
|
|
420
|
+
ggt list
|
|
421
|
+
|
|
422
|
+
EXAMPLES
|
|
423
|
+
$ ggt list
|
|
424
|
+
$ ggt list --json
|
|
374
425
|
```
|
|
375
426
|
|
|
376
427
|
### `ggt login`
|
|
377
428
|
|
|
378
429
|
```sh-session
|
|
379
430
|
$ ggt login -h
|
|
380
|
-
Log in to
|
|
431
|
+
Log in to Gadget
|
|
432
|
+
|
|
433
|
+
USAGE
|
|
434
|
+
ggt login
|
|
381
435
|
|
|
382
|
-
|
|
383
|
-
|
|
436
|
+
EXAMPLES
|
|
437
|
+
$ ggt login
|
|
384
438
|
```
|
|
385
439
|
|
|
386
440
|
### `ggt logout`
|
|
387
441
|
|
|
388
442
|
```sh-session
|
|
389
443
|
$ ggt logout -h
|
|
390
|
-
Log out of
|
|
444
|
+
Log out of Gadget
|
|
391
445
|
|
|
392
|
-
|
|
393
|
-
|
|
446
|
+
USAGE
|
|
447
|
+
ggt logout
|
|
448
|
+
|
|
449
|
+
EXAMPLES
|
|
450
|
+
$ ggt logout
|
|
394
451
|
```
|
|
395
452
|
|
|
396
453
|
### `ggt logs`
|
|
397
454
|
|
|
398
455
|
```sh-session
|
|
399
456
|
$ ggt logs -h
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
457
|
+
Print recent logs or stream logs from your app
|
|
458
|
+
|
|
459
|
+
USAGE
|
|
460
|
+
ggt logs [flags]
|
|
461
|
+
|
|
462
|
+
FLAGS
|
|
463
|
+
-a, --app, --application <app> Gadget app to use
|
|
464
|
+
-e, --env, --environment <env> Environment to use
|
|
465
|
+
-f, --follow Stream logs continuously
|
|
466
|
+
-l, --log-level <level> Minimum log level to display
|
|
467
|
+
-m, --my-logs Show only logs emitted by your code
|
|
468
|
+
--start <datetime> Start time for one-shot log queries
|
|
469
|
+
|
|
470
|
+
EXAMPLES
|
|
471
|
+
$ ggt logs
|
|
472
|
+
$ ggt logs --start 2025-01-01T00:00:00Z --log-level warn
|
|
473
|
+
$ ggt logs --follow --my-logs
|
|
474
|
+
$ ggt logs --env production --json
|
|
418
475
|
```
|
|
419
476
|
|
|
420
477
|
### `ggt debugger`
|
|
421
478
|
|
|
422
479
|
```sh-session
|
|
423
480
|
$ ggt debugger -h
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
debug a specific app and environment
|
|
447
|
-
$ ggt debugger --app myApp --env development
|
|
448
|
-
|
|
449
|
-
configure VS Code debugger
|
|
450
|
-
$ ggt debugger --configure vscode
|
|
481
|
+
Connect a debugger to your app's environment
|
|
482
|
+
|
|
483
|
+
USAGE
|
|
484
|
+
ggt debugger [directory] [flags]
|
|
485
|
+
|
|
486
|
+
ARGUMENTS
|
|
487
|
+
directory App directory to use
|
|
488
|
+
|
|
489
|
+
FLAGS
|
|
490
|
+
-a, --app, --application <app> Gadget app to use
|
|
491
|
+
-c, --configure <editor> Write editor debug config files (vscode, cursor)
|
|
492
|
+
-e, --env, --environment <env> Environment to use
|
|
493
|
+
-p, --port <port> Local port for the CDP proxy
|
|
494
|
+
|
|
495
|
+
EXAMPLES
|
|
496
|
+
$ ggt debugger
|
|
497
|
+
$ ggt debugger --port 9230
|
|
498
|
+
$ ggt debugger --configure vscode
|
|
499
|
+
$ ggt debugger --configure cursor
|
|
500
|
+
$ ggt debugger --app myApp --env development
|
|
501
|
+
$ ggt debugger --port 9230 --configure vscode
|
|
451
502
|
```
|
|
452
503
|
|
|
453
504
|
### `ggt whoami`
|
|
454
505
|
|
|
455
506
|
```sh-session
|
|
456
507
|
$ ggt whoami -h
|
|
457
|
-
Show the
|
|
508
|
+
Show the current logged-in user
|
|
458
509
|
|
|
459
|
-
|
|
460
|
-
|
|
510
|
+
USAGE
|
|
511
|
+
ggt whoami
|
|
512
|
+
|
|
513
|
+
EXAMPLES
|
|
514
|
+
$ ggt whoami
|
|
461
515
|
```
|
|
462
516
|
|
|
463
517
|
### `ggt configure`
|
|
464
518
|
|
|
465
519
|
```sh-session
|
|
466
520
|
$ ggt configure -h
|
|
467
|
-
|
|
468
|
-
needing to set a flag on every command.
|
|
521
|
+
Manage ggt configuration
|
|
469
522
|
|
|
470
|
-
|
|
471
|
-
ggt configure
|
|
523
|
+
USAGE
|
|
524
|
+
ggt configure <command>
|
|
472
525
|
|
|
473
|
-
|
|
526
|
+
COMMANDS
|
|
527
|
+
show Show current configured defaults
|
|
528
|
+
change Interactively change configuration options
|
|
529
|
+
clear Remove all configured defaults
|
|
474
530
|
|
|
475
|
-
|
|
531
|
+
EXAMPLES
|
|
532
|
+
$ ggt configure show
|
|
533
|
+
$ ggt configure change
|
|
534
|
+
$ ggt configure clear
|
|
476
535
|
```
|
|
477
536
|
|
|
478
537
|
### `ggt agent-plugin`
|
|
479
538
|
|
|
480
539
|
```sh-session
|
|
481
540
|
$ ggt agent-plugin -h
|
|
482
|
-
|
|
541
|
+
Manage plugins for AI coding assistants
|
|
542
|
+
|
|
543
|
+
USAGE
|
|
544
|
+
ggt agent-plugin <command>
|
|
483
545
|
|
|
484
|
-
|
|
485
|
-
|
|
546
|
+
COMMANDS
|
|
547
|
+
install Install agent plugins into the current project
|
|
548
|
+
update Update agent plugins to the latest version
|
|
486
549
|
|
|
487
|
-
|
|
488
|
-
|
|
550
|
+
EXAMPLES
|
|
551
|
+
$ ggt agent-plugin install
|
|
552
|
+
$ ggt agent-plugin install --force
|
|
553
|
+
$ ggt agent-plugin update
|
|
489
554
|
```
|
|
490
555
|
|
|
491
556
|
### `ggt eval`
|
|
492
557
|
|
|
493
558
|
```sh-session
|
|
494
559
|
$ ggt eval -h
|
|
495
|
-
|
|
560
|
+
Evaluate a JavaScript snippet against your app
|
|
561
|
+
|
|
562
|
+
USAGE
|
|
563
|
+
ggt eval <snippet> [flags]
|
|
564
|
+
|
|
565
|
+
ARGUMENTS
|
|
566
|
+
snippet JavaScript expression or statement to run
|
|
567
|
+
|
|
568
|
+
FLAGS
|
|
569
|
+
-a, --app, --application <app> Gadget app to use
|
|
570
|
+
-e, --env, --environment <env> Environment to use
|
|
571
|
+
-w, --allow-writes Allow write operations (read-only by default)
|
|
572
|
+
|
|
573
|
+
EXAMPLES
|
|
574
|
+
$ ggt eval 'api.user.findMany()'
|
|
575
|
+
$ ggt eval 'api.post.findMany({ select: { id: true, title: true } })'
|
|
576
|
+
$ ggt eval --app my-app --env staging 'api.user.findFirst()'
|
|
577
|
+
$ ggt eval -w 'api.user.delete("123")'
|
|
578
|
+
$ ggt eval --json 'api.user.count()'
|
|
579
|
+
$ ggt eval 'const users = await api.user.findMany(); return users.length'
|
|
580
|
+
```
|
|
496
581
|
|
|
497
|
-
|
|
498
|
-
authenticated as the developer). Results are formatted like Node.js REPL output.
|
|
499
|
-
Writes are disallowed by default; use --allow-writes to enable them.
|
|
582
|
+
### `ggt version`
|
|
500
583
|
|
|
501
|
-
|
|
502
|
-
|
|
584
|
+
```sh-session
|
|
585
|
+
$ ggt version -h
|
|
586
|
+
Print the currently installed version
|
|
503
587
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
-e, --env <env_name> Selects a specific environment. Defaults to the environment synced to the current directory, if there is one.
|
|
507
|
-
-w, --allow-writes Allow write operations (default is read-only)
|
|
508
|
-
--json Output result as JSON instead of Node.js inspect format (root flag)
|
|
588
|
+
USAGE
|
|
589
|
+
ggt version
|
|
509
590
|
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
$ ggt eval --app my-app --env staging 'api.user.findFirst()'
|
|
513
|
-
$ ggt eval -a my-app -w 'api.user.delete("123")'
|
|
591
|
+
EXAMPLES
|
|
592
|
+
$ ggt version
|
|
514
593
|
```
|
|
515
594
|
|
|
516
|
-
### `ggt
|
|
595
|
+
### `ggt completion`
|
|
517
596
|
|
|
518
597
|
```sh-session
|
|
519
|
-
$ ggt
|
|
520
|
-
|
|
598
|
+
$ ggt completion -h
|
|
599
|
+
Generate shell completion scripts
|
|
600
|
+
|
|
601
|
+
USAGE
|
|
602
|
+
ggt completion <command>
|
|
521
603
|
|
|
522
|
-
|
|
523
|
-
|
|
604
|
+
COMMANDS
|
|
605
|
+
bash Generate bash completion script
|
|
606
|
+
zsh Generate zsh completion script
|
|
607
|
+
fish Generate fish completion script
|
|
524
608
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
609
|
+
EXAMPLES
|
|
610
|
+
$ ggt completion bash
|
|
611
|
+
$ ggt completion zsh
|
|
612
|
+
$ ggt completion fish
|
|
528
613
|
```
|