@gadgetinc/ggt 2.3.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 +387 -327
- 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 +18 -22
- package/assets/favicon-128@4x.png +0 -0
- package/dist/add-7MLI3TCY.js +0 -82
- package/dist/add-7MLI3TCY.js.map +0 -7
- package/dist/agent-plugin-543K6WBH.js +0 -11
- package/dist/agent-plugin-543K6WBH.js.map +0 -7
- package/dist/chunk-2HJS3KFB.js +0 -2
- package/dist/chunk-2HJS3KFB.js.map +0 -7
- package/dist/chunk-3WKH3DJL.js +0 -2
- package/dist/chunk-3WKH3DJL.js.map +0 -7
- package/dist/chunk-577KP32Z.js +0 -8
- package/dist/chunk-577KP32Z.js.map +0 -7
- package/dist/chunk-6FVHOLT7.js +0 -28
- package/dist/chunk-6FVHOLT7.js.map +0 -7
- package/dist/chunk-72J7X5LR.js +0 -2
- package/dist/chunk-72J7X5LR.js.map +0 -7
- package/dist/chunk-7DYQUG5M.js +0 -2
- package/dist/chunk-7DYQUG5M.js.map +0 -7
- package/dist/chunk-ALSXPCRD.js +0 -118
- package/dist/chunk-ALSXPCRD.js.map +0 -7
- package/dist/chunk-CNNOPE5K.js +0 -69
- package/dist/chunk-CNNOPE5K.js.map +0 -7
- package/dist/chunk-ETKWDO4V.js +0 -2
- package/dist/chunk-ETKWDO4V.js.map +0 -7
- package/dist/chunk-F6BGQ4LG.js +0 -11
- package/dist/chunk-F6BGQ4LG.js.map +0 -7
- package/dist/chunk-FE5O5VX4.js +0 -2
- package/dist/chunk-FE5O5VX4.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-GZTHIOXS.js +0 -2
- package/dist/chunk-GZTHIOXS.js.map +0 -7
- package/dist/chunk-IQSZEOYY.js +0 -283
- package/dist/chunk-IQSZEOYY.js.map +0 -7
- package/dist/chunk-J232VCIM.js +0 -2
- package/dist/chunk-J232VCIM.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-N5FFICAP.js +0 -9
- package/dist/chunk-N5FFICAP.js.map +0 -7
- package/dist/chunk-TGCJ6TMW.js +0 -10
- package/dist/chunk-TGCJ6TMW.js.map +0 -7
- package/dist/chunk-ULJYEUQG.js +0 -113
- package/dist/chunk-ULJYEUQG.js.map +0 -7
- package/dist/chunk-UVVKKUYG.js +0 -10
- package/dist/chunk-UVVKKUYG.js.map +0 -7
- package/dist/chunk-WZ2PO6H2.js +0 -11
- package/dist/chunk-WZ2PO6H2.js.map +0 -7
- package/dist/chunk-X4XSYLCE.js +0 -12
- package/dist/chunk-X4XSYLCE.js.map +0 -7
- package/dist/chunk-ZYDMXS5R.js +0 -6
- package/dist/chunk-ZYDMXS5R.js.map +0 -7
- package/dist/configure-PYRXYNGZ.js +0 -12
- package/dist/configure-PYRXYNGZ.js.map +0 -7
- package/dist/debugger-VKLUEWIN.js +0 -41
- package/dist/debugger-VKLUEWIN.js.map +0 -7
- package/dist/deploy-JCREEGBA.js +0 -25
- package/dist/deploy-JCREEGBA.js.map +0 -7
- package/dist/dev-Y2GLI7EH.js +0 -59
- package/dist/dev-Y2GLI7EH.js.map +0 -7
- package/dist/env-5OPHX3MC.js +0 -135
- package/dist/env-5OPHX3MC.js.map +0 -7
- package/dist/esm-3JVXH7DT.js +0 -37
- package/dist/esm-3JVXH7DT.js.map +0 -7
- package/dist/eval-LZPZ6PBQ.js +0 -54
- package/dist/eval-LZPZ6PBQ.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-KUAF6WUA.js +0 -45
- package/dist/ggt-KUAF6WUA.js.map +0 -7
- package/dist/list-IANT7SNF.js +0 -11
- package/dist/list-IANT7SNF.js.map +0 -7
- package/dist/login-TYRZLN5S.js +0 -2
- package/dist/login-TYRZLN5S.js.map +0 -7
- package/dist/logout-P75XYYZ6.js +0 -7
- package/dist/logout-P75XYYZ6.js.map +0 -7
- package/dist/logs-SBMD6JSR.js +0 -28
- package/dist/logs-SBMD6JSR.js.map +0 -7
- package/dist/open-JPAMII4K.js +0 -74
- package/dist/open-JPAMII4K.js.map +0 -7
- package/dist/problems-EZRSHLZT.js +0 -14
- package/dist/problems-EZRSHLZT.js.map +0 -7
- package/dist/pull-R3PMBVOT.js +0 -28
- package/dist/pull-R3PMBVOT.js.map +0 -7
- package/dist/push-5XEEESQQ.js +0 -2
- package/dist/push-5XEEESQQ.js.map +0 -7
- package/dist/status-RJN5ES6S.js +0 -14
- package/dist/status-RJN5ES6S.js.map +0 -7
- package/dist/update-X7YS3MNH.js +0 -2
- package/dist/update-X7YS3MNH.js.map +0 -7
- package/dist/var-PC6KQUPF.js +0 -159
- package/dist/var-PC6KQUPF.js.map +0 -7
- package/dist/version-GZJOU2CV.js +0 -11
- package/dist/version-GZJOU2CV.js.map +0 -7
- package/dist/whoami-GKPGPZ3B.js +0 -7
- package/dist/whoami-GKPGPZ3B.js.map +0 -7
package/README.md
CHANGED
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
- [`ggt var`](#ggt-var)
|
|
30
30
|
- [`ggt env`](#ggt-env)
|
|
31
31
|
- [`ggt add`](#ggt-add)
|
|
32
|
+
- [`ggt model`](#ggt-model)
|
|
33
|
+
- [`ggt action`](#ggt-action)
|
|
32
34
|
- [`ggt open`](#ggt-open)
|
|
33
35
|
- [`ggt list`](#ggt-list)
|
|
34
36
|
- [`ggt login`](#ggt-login)
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
- [`ggt agent-plugin`](#ggt-agent-plugin)
|
|
41
43
|
- [`ggt eval`](#ggt-eval)
|
|
42
44
|
- [`ggt version`](#ggt-version)
|
|
45
|
+
- [`ggt completion`](#ggt-completion)
|
|
43
46
|
|
|
44
47
|
## Intro
|
|
45
48
|
|
|
@@ -62,39 +65,54 @@ $ npm install -g ggt
|
|
|
62
65
|
$ ggt
|
|
63
66
|
The command-line interface for Gadget.
|
|
64
67
|
|
|
65
|
-
|
|
66
|
-
ggt [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
push
|
|
73
|
-
pull
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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)
|
|
91
109
|
--telemetry Enable telemetry
|
|
110
|
+
--json Output as JSON where supported
|
|
92
111
|
|
|
93
|
-
|
|
94
|
-
Install AGENTS.md and Gadget agent skills for your coding agent:
|
|
95
|
-
ggt agent-plugin install
|
|
112
|
+
Use -h for a summary, --help for full details.
|
|
96
113
|
|
|
97
|
-
|
|
114
|
+
Documentation: https://docs.gadget.dev/guides/cli
|
|
115
|
+
Issues: https://github.com/gadget-inc/ggt/issues
|
|
98
116
|
```
|
|
99
117
|
|
|
100
118
|
## Commands
|
|
@@ -103,451 +121,493 @@ Run "ggt [COMMAND] -h" for more information about a specific command.
|
|
|
103
121
|
|
|
104
122
|
```sh-session
|
|
105
123
|
$ ggt dev -h
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
Ignoring files
|
|
129
|
-
ggt dev uses a .ignore file, similar to .gitignore, to exclude specific files and
|
|
130
|
-
folders from syncing. These files are always ignored:
|
|
131
|
-
|
|
132
|
-
• .DS_Store
|
|
133
|
-
• .gadget
|
|
134
|
-
• .git
|
|
135
|
-
• node_modules
|
|
136
|
-
• .shopify
|
|
137
|
-
|
|
138
|
-
Notes
|
|
139
|
-
• "ggt dev" only works with development environments
|
|
140
|
-
• "ggt dev" only supports "yarn" v1 for installing dependencies
|
|
141
|
-
• Avoid deleting or moving all of your files while "ggt dev" is running
|
|
142
|
-
|
|
143
|
-
Examples
|
|
144
|
-
sync an app in a custom path
|
|
145
|
-
$ ggt dev ~/myGadgetApps/myBlog --app myBlogApp
|
|
146
|
-
|
|
147
|
-
sync with a specific environment and preselect all local changes on conflicts
|
|
148
|
-
$ ggt dev --env main --prefer local
|
|
149
|
-
|
|
150
|
-
sync a custom path with a specific app, environment and preselect all changes from local on conflicts
|
|
151
|
-
$ 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
|
|
152
145
|
```
|
|
153
146
|
|
|
154
147
|
### `ggt deploy`
|
|
155
148
|
|
|
156
149
|
```sh-session
|
|
157
150
|
$ ggt deploy -h
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
--allow-data-delete Deploys even if it results in the deletion of data in production
|
|
175
|
-
--allow-charges Deploys even if it results in additional charges to your plan
|
|
176
|
-
|
|
177
|
-
Examples
|
|
178
|
-
Deploys code from the staging environment of a myBlog
|
|
179
|
-
$ 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
|
|
180
167
|
```
|
|
181
168
|
|
|
182
169
|
### `ggt status`
|
|
183
170
|
|
|
184
171
|
```sh-session
|
|
185
172
|
$ ggt status -h
|
|
186
|
-
|
|
173
|
+
Show sync state and pending file changes
|
|
187
174
|
|
|
188
|
-
|
|
189
|
-
|
|
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
|
|
190
185
|
```
|
|
191
186
|
|
|
192
187
|
### `ggt problems`
|
|
193
188
|
|
|
194
189
|
```sh-session
|
|
195
190
|
$ ggt problems -h
|
|
196
|
-
|
|
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
|
|
197
199
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
EXAMPLES
|
|
201
|
+
$ ggt problems
|
|
202
|
+
$ ggt problems --app myBlog
|
|
203
|
+
$ ggt problems --env staging
|
|
204
|
+
$ ggt problems --app myBlog --env production
|
|
200
205
|
```
|
|
201
206
|
|
|
202
207
|
### `ggt push`
|
|
203
208
|
|
|
204
209
|
```sh-session
|
|
205
210
|
$ ggt push -h
|
|
206
|
-
|
|
211
|
+
Upload local file changes to Gadget
|
|
207
212
|
|
|
208
|
-
|
|
209
|
-
|
|
213
|
+
USAGE
|
|
214
|
+
ggt push [flags]
|
|
210
215
|
|
|
211
|
-
|
|
212
|
-
|
|
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
|
|
213
220
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
--allow-different-directory Pushes changes from any local directory with existing files, even if the directory hasn't been synced before
|
|
219
|
-
--allow-different-app Pushes changes to an app using --app command, instead of the most recently synced one in the current directory
|
|
220
|
-
|
|
221
|
-
Examples
|
|
222
|
-
Push all local changes to the main environment by discarding any changes made on main
|
|
223
|
-
$ ggt push --env main --force
|
|
221
|
+
EXAMPLES
|
|
222
|
+
$ ggt push
|
|
223
|
+
$ ggt push --env main
|
|
224
|
+
$ ggt push --env main --force
|
|
224
225
|
```
|
|
225
226
|
|
|
226
227
|
### `ggt pull`
|
|
227
228
|
|
|
228
229
|
```sh-session
|
|
229
230
|
$ ggt pull -h
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
This command first tracks changes in your local directory since the last sync. If changes are
|
|
233
|
-
detected, you will be prompted to discard them or abort the pull.
|
|
231
|
+
Download environment files to your local directory
|
|
234
232
|
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
USAGE
|
|
234
|
+
ggt pull [flags]
|
|
237
235
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
--allow-different-directory Pulls changes from any environment directory, even if the directory hasn't been synced before
|
|
243
|
-
--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
|
|
244
240
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
241
|
+
EXAMPLES
|
|
242
|
+
$ ggt pull
|
|
243
|
+
$ ggt pull --env staging
|
|
244
|
+
$ ggt pull --env production --force
|
|
248
245
|
```
|
|
249
246
|
|
|
250
247
|
### `ggt var`
|
|
251
248
|
|
|
252
249
|
```sh-session
|
|
253
250
|
$ ggt var -h
|
|
254
|
-
Manage environment variables
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
ggt var <command> [
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
list
|
|
261
|
-
get
|
|
262
|
-
set
|
|
263
|
-
delete
|
|
264
|
-
import
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
-a, --app <
|
|
268
|
-
-e, --env <
|
|
269
|
-
|
|
270
|
-
|
|
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
|
|
271
277
|
```
|
|
272
278
|
|
|
273
279
|
### `ggt env`
|
|
274
280
|
|
|
275
281
|
```sh-session
|
|
276
282
|
$ ggt env -h
|
|
277
|
-
Manage
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
ggt env <command> [
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
list
|
|
284
|
-
create
|
|
285
|
-
delete
|
|
286
|
-
unpause
|
|
287
|
-
use
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
-a, --app <
|
|
291
|
-
|
|
292
|
-
|
|
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
|
|
293
305
|
```
|
|
294
306
|
|
|
295
307
|
### `ggt add`
|
|
296
308
|
|
|
297
309
|
```sh-session
|
|
298
310
|
$ ggt add -h
|
|
299
|
-
|
|
311
|
+
Add resources to your app
|
|
300
312
|
|
|
301
|
-
|
|
302
|
-
|
|
313
|
+
USAGE
|
|
314
|
+
ggt add <command> [flags]
|
|
303
315
|
|
|
304
|
-
|
|
305
|
-
|
|
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
|
|
306
322
|
|
|
307
|
-
|
|
308
|
-
|
|
323
|
+
FLAGS
|
|
324
|
+
-a, --app, --application <app> Gadget app to use
|
|
325
|
+
-e, --env, --environment <env> Environment to use
|
|
309
326
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
ggt add field <model_path>/<field_name>:<field_type>
|
|
313
|
-
|
|
314
|
-
Options
|
|
315
|
-
-a, --app <app_name> Selects the app to add to. Defaults to the app synced to the current directory, if there is one.
|
|
316
|
-
-e, --env <env_name> Selects the environment to add to. Defaults to the environment synced to the current directory, if there is one.
|
|
317
|
-
|
|
318
|
-
Examples
|
|
319
|
-
Add a new model 'post' with out fields:
|
|
320
|
-
$ ggt add model modelA
|
|
321
|
-
|
|
322
|
-
Add a new model 'post' with 2 new 'string' type fields 'title' and 'body':
|
|
327
|
+
EXAMPLES
|
|
328
|
+
$ ggt add model post
|
|
323
329
|
$ ggt add model post title:string body:string
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
ggt add
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
ggt add action model/post/publish
|
|
330
|
-
|
|
331
|
-
Add a new action 'audit'
|
|
332
|
-
ggt add action action/audit
|
|
333
|
-
|
|
334
|
-
Add a new route 'howdy'
|
|
335
|
-
ggt add route GET howdy
|
|
336
|
-
|
|
337
|
-
Clone the `development` environment into a new `staging` environment
|
|
338
|
-
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
|
|
339
335
|
```
|
|
340
336
|
|
|
341
|
-
### `ggt
|
|
337
|
+
### `ggt model`
|
|
342
338
|
|
|
343
339
|
```sh-session
|
|
344
|
-
$ ggt
|
|
345
|
-
|
|
346
|
-
various parts of your application's interface such as logs, permissions, data views, or
|
|
347
|
-
schemas.
|
|
340
|
+
$ ggt model -h
|
|
341
|
+
Add and manage models in your app
|
|
348
342
|
|
|
349
|
-
|
|
350
|
-
|
|
343
|
+
USAGE
|
|
344
|
+
ggt model <command> [flags]
|
|
351
345
|
|
|
352
|
-
|
|
346
|
+
COMMANDS
|
|
347
|
+
add Add a model to your app
|
|
348
|
+
remove Remove a model from your app
|
|
349
|
+
rename Rename a model
|
|
353
350
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
+ 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
|
|
358
354
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
355
|
+
EXAMPLES
|
|
356
|
+
$ ggt model add post
|
|
357
|
+
$ ggt model remove post --force
|
|
358
|
+
$ ggt model rename post article
|
|
359
|
+
```
|
|
363
360
|
|
|
364
|
-
|
|
365
|
-
Opens editor home
|
|
366
|
-
$ ggt open
|
|
361
|
+
### `ggt action`
|
|
367
362
|
|
|
368
|
-
|
|
369
|
-
|
|
363
|
+
```sh-session
|
|
364
|
+
$ ggt action -h
|
|
365
|
+
Add and manage actions
|
|
370
366
|
|
|
371
|
-
|
|
372
|
-
|
|
367
|
+
USAGE
|
|
368
|
+
ggt action <command> [flags]
|
|
373
369
|
|
|
374
|
-
|
|
375
|
-
|
|
370
|
+
COMMANDS
|
|
371
|
+
add Add an action to your app
|
|
376
372
|
|
|
377
|
-
|
|
378
|
-
|
|
373
|
+
FLAGS
|
|
374
|
+
-a, --app, --application <app> Gadget app to use
|
|
375
|
+
-e, --env, --environment <env> Environment to use
|
|
379
376
|
|
|
380
|
-
|
|
381
|
-
|
|
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
|
+
```
|
|
382
383
|
|
|
383
|
-
|
|
384
|
-
$ ggt open schema --show-all
|
|
384
|
+
### `ggt open`
|
|
385
385
|
|
|
386
|
-
|
|
387
|
-
|
|
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
|
|
388
411
|
```
|
|
389
412
|
|
|
390
413
|
### `ggt list`
|
|
391
414
|
|
|
392
415
|
```sh-session
|
|
393
416
|
$ ggt list -h
|
|
394
|
-
List
|
|
417
|
+
List your Gadget apps
|
|
395
418
|
|
|
396
|
-
|
|
397
|
-
|
|
419
|
+
USAGE
|
|
420
|
+
ggt list
|
|
421
|
+
|
|
422
|
+
EXAMPLES
|
|
423
|
+
$ ggt list
|
|
424
|
+
$ ggt list --json
|
|
398
425
|
```
|
|
399
426
|
|
|
400
427
|
### `ggt login`
|
|
401
428
|
|
|
402
429
|
```sh-session
|
|
403
430
|
$ ggt login -h
|
|
404
|
-
Log in to
|
|
431
|
+
Log in to Gadget
|
|
432
|
+
|
|
433
|
+
USAGE
|
|
434
|
+
ggt login
|
|
405
435
|
|
|
406
|
-
|
|
407
|
-
|
|
436
|
+
EXAMPLES
|
|
437
|
+
$ ggt login
|
|
408
438
|
```
|
|
409
439
|
|
|
410
440
|
### `ggt logout`
|
|
411
441
|
|
|
412
442
|
```sh-session
|
|
413
443
|
$ ggt logout -h
|
|
414
|
-
Log out of
|
|
444
|
+
Log out of Gadget
|
|
445
|
+
|
|
446
|
+
USAGE
|
|
447
|
+
ggt logout
|
|
415
448
|
|
|
416
|
-
|
|
417
|
-
|
|
449
|
+
EXAMPLES
|
|
450
|
+
$ ggt logout
|
|
418
451
|
```
|
|
419
452
|
|
|
420
453
|
### `ggt logs`
|
|
421
454
|
|
|
422
455
|
```sh-session
|
|
423
456
|
$ ggt logs -h
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
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
|
|
442
475
|
```
|
|
443
476
|
|
|
444
477
|
### `ggt debugger`
|
|
445
478
|
|
|
446
479
|
```sh-session
|
|
447
480
|
$ ggt debugger -h
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
debug a specific app and environment
|
|
471
|
-
$ ggt debugger --app myApp --env development
|
|
472
|
-
|
|
473
|
-
configure VS Code debugger
|
|
474
|
-
$ 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
|
|
475
502
|
```
|
|
476
503
|
|
|
477
504
|
### `ggt whoami`
|
|
478
505
|
|
|
479
506
|
```sh-session
|
|
480
507
|
$ ggt whoami -h
|
|
481
|
-
Show the
|
|
508
|
+
Show the current logged-in user
|
|
482
509
|
|
|
483
|
-
|
|
484
|
-
|
|
510
|
+
USAGE
|
|
511
|
+
ggt whoami
|
|
512
|
+
|
|
513
|
+
EXAMPLES
|
|
514
|
+
$ ggt whoami
|
|
485
515
|
```
|
|
486
516
|
|
|
487
517
|
### `ggt configure`
|
|
488
518
|
|
|
489
519
|
```sh-session
|
|
490
520
|
$ ggt configure -h
|
|
491
|
-
|
|
492
|
-
needing to set a flag on every command.
|
|
521
|
+
Manage ggt configuration
|
|
493
522
|
|
|
494
|
-
|
|
495
|
-
ggt configure
|
|
523
|
+
USAGE
|
|
524
|
+
ggt configure <command>
|
|
496
525
|
|
|
497
|
-
|
|
526
|
+
COMMANDS
|
|
527
|
+
show Show current configured defaults
|
|
528
|
+
change Interactively change configuration options
|
|
529
|
+
clear Remove all configured defaults
|
|
498
530
|
|
|
499
|
-
|
|
531
|
+
EXAMPLES
|
|
532
|
+
$ ggt configure show
|
|
533
|
+
$ ggt configure change
|
|
534
|
+
$ ggt configure clear
|
|
500
535
|
```
|
|
501
536
|
|
|
502
537
|
### `ggt agent-plugin`
|
|
503
538
|
|
|
504
539
|
```sh-session
|
|
505
540
|
$ ggt agent-plugin -h
|
|
506
|
-
|
|
541
|
+
Manage plugins for AI coding assistants
|
|
542
|
+
|
|
543
|
+
USAGE
|
|
544
|
+
ggt agent-plugin <command>
|
|
507
545
|
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
546
|
+
COMMANDS
|
|
547
|
+
install Install agent plugins into the current project
|
|
548
|
+
update Update agent plugins to the latest version
|
|
511
549
|
|
|
512
|
-
|
|
513
|
-
|
|
550
|
+
EXAMPLES
|
|
551
|
+
$ ggt agent-plugin install
|
|
552
|
+
$ ggt agent-plugin install --force
|
|
553
|
+
$ ggt agent-plugin update
|
|
514
554
|
```
|
|
515
555
|
|
|
516
556
|
### `ggt eval`
|
|
517
557
|
|
|
518
558
|
```sh-session
|
|
519
559
|
$ ggt eval -h
|
|
520
|
-
|
|
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
|
+
```
|
|
521
581
|
|
|
522
|
-
|
|
523
|
-
authenticated as the developer). Results are formatted like Node.js REPL output.
|
|
524
|
-
Writes are disallowed by default; use --allow-writes to enable them.
|
|
582
|
+
### `ggt version`
|
|
525
583
|
|
|
526
|
-
|
|
527
|
-
|
|
584
|
+
```sh-session
|
|
585
|
+
$ ggt version -h
|
|
586
|
+
Print the currently installed version
|
|
528
587
|
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
-e, --env <env_name> Selects a specific environment. Defaults to the environment synced to the current directory, if there is one.
|
|
532
|
-
-w, --allow-writes Allow write operations (default is read-only)
|
|
533
|
-
--json Output result as JSON instead of Node.js inspect format (root flag)
|
|
588
|
+
USAGE
|
|
589
|
+
ggt version
|
|
534
590
|
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
$ ggt eval --app my-app --env staging 'api.user.findFirst()'
|
|
538
|
-
$ ggt eval -a my-app -w 'api.user.delete("123")'
|
|
591
|
+
EXAMPLES
|
|
592
|
+
$ ggt version
|
|
539
593
|
```
|
|
540
594
|
|
|
541
|
-
### `ggt
|
|
595
|
+
### `ggt completion`
|
|
542
596
|
|
|
543
597
|
```sh-session
|
|
544
|
-
$ ggt
|
|
545
|
-
|
|
598
|
+
$ ggt completion -h
|
|
599
|
+
Generate shell completion scripts
|
|
600
|
+
|
|
601
|
+
USAGE
|
|
602
|
+
ggt completion <command>
|
|
546
603
|
|
|
547
|
-
|
|
548
|
-
|
|
604
|
+
COMMANDS
|
|
605
|
+
bash Generate bash completion script
|
|
606
|
+
zsh Generate zsh completion script
|
|
607
|
+
fish Generate fish completion script
|
|
549
608
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
609
|
+
EXAMPLES
|
|
610
|
+
$ ggt completion bash
|
|
611
|
+
$ ggt completion zsh
|
|
612
|
+
$ ggt completion fish
|
|
553
613
|
```
|