@gapi/gcli 1.8.196 → 1.8.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README-CLI.md +314 -0
  2. package/README.md +241 -102
  3. package/package.json +1 -1
  4. package/release/index.js +1805 -1595
package/README-CLI.md ADDED
@@ -0,0 +1,314 @@
1
+ Usage: gcli [options] [command]
2
+
3
+ Options:
4
+ -V, --version output the version number
5
+ -h, --help display help for command
6
+
7
+ Commands:
8
+ login [options] Login to graphql-server
9
+ lambda:list [options] List of all lambdas for project
10
+ lambda:get [options] Get lambda by id
11
+ lambda:create [options]
12
+ lambda:update [options]
13
+ lambda:delete [options] Get lambda by id
14
+ lambda:log [options] Get lambda log
15
+ lambda:build:log [options] Get build log
16
+ lambda:test [options] Test lambda
17
+ project:list List of all projects
18
+ project:use <project> Adds default project to be used all around the
19
+ CLI
20
+ project:clear Clears default project to be used all around
21
+ the CLI
22
+ build [options] Build bundle using esbuild
23
+ https://esbuild.github.io
24
+ environment:list [options] List of all environments for project
25
+ environment:create [options] Create environment for project
26
+ environment:update [options] Update environment for project
27
+ environment:delete [options] Delete environment for project
28
+ environment:get [options] Get environment for project
29
+ mcp:start [options] Start mcp proxy server
30
+ start [options] Start bundle using esbuild
31
+ https://esbuild.github.io
32
+ help [command] display help for command
33
+ 
34
+ --- Subcommand: login ---
35
+ Usage: gcli login [options]
36
+
37
+ Login to graphql-server
38
+
39
+ Options:
40
+ -k, --key <key> Specify api key
41
+ -uu, --uploadUrl <key> Specify upload server
42
+ -ci, --ci Initialize directories for CI/CD purposes
43
+ -t, --token <token> Specify custom token generated from the website
44
+ -u, --url <url> Specify api url
45
+ -h, --help display help for command
46
+ 
47
+ --- Subcommand: lambda:list ---
48
+ Usage: gcli lambda:list [options]
49
+
50
+ List of all lambdas for project
51
+
52
+ Options:
53
+ -p, --project <project> Specify custom token generated from the website
54
+ -h, --help display help for command
55
+ 
56
+ --- Subcommand: lambda:get ---
57
+ Usage: gcli lambda:get [options]
58
+
59
+ Get lambda by id
60
+
61
+ Options:
62
+ -l, --lambda <lambda> get by lambda id
63
+ -n, --name <name> get by lambda name
64
+ -p, --project <project> get by lambda name
65
+ -p, --spec <spec> get by lambda name
66
+ -h, --help display help for command
67
+ 
68
+ --- Subcommand: lambda:create ---
69
+ Usage: gcli lambda:create [options]
70
+
71
+ Options:
72
+ --name <name> Function name
73
+ --project <project> Project in which this lambda is defined
74
+ --env <env> Environment name for function can be NODEJS
75
+ --method <method...> HTTP Methods: GET,POST,PUT,DELETE,HEAD. To mention single method
76
+ --spec <spec> Spec file yml or json path
77
+ --packageJson <packageJson> Define packageJson in string format
78
+ --package <package> Path to package.json
79
+ --buildBashScript <buildBashScript> Package build command for builder to run with
80
+ --script <script> Package build script path
81
+ --params <params> Array from strings which defines route params
82
+ --network <network> Can be private or public meaning exposed to the router or just for private available can be both also --network private --network public
83
+ --route <route> Lambda route in which will be accessible
84
+ --code <code> URL or local path for single file source code
85
+ --file <file> Main lambda file
86
+ --executorType <executorType> Executor type for execution; one of 'poolmgr', 'newdeploy'
87
+ --maxCpu <maxCpu> Maximum CPU to be assigned to pod (In millicore, minimum 1)
88
+ --minCpu <minCpu> Minimum CPU to be assigned to pod (In millicore, minimum 1)
89
+ --maxMemory <maxMemory> Maximum memory to be assigned to pod (In megabyte)
90
+ --minMemory <minMemory> Minimum memory to be assigned to pod (In megabyte)
91
+ --minScale <minScale> Minimum number of pods (Uses resource inputs to configure HPA)
92
+ --maxScale <maxScale> Maximum number of pods (Uses resource inputs to configure HPA)
93
+ --targetCpu <targetCpu> Target average CPU usage percentage across pods for scaling
94
+ --idleTimeout <idleTimeout> The length of time (in seconds) that a function is idle before pod(s) are eligible for recycling
95
+ --concurrency <concurrency> Maximum number of pods specialized concurrently to serve requests
96
+ --functionTimeout <functionTimeout> Maximum time for a request to wait for the response from the function
97
+ --specializationTimeout <specializationTimeout> Timeout for executor to wait for function pod creation
98
+ -h, --help display help for command
99
+ 
100
+ --- Subcommand: lambda:update ---
101
+ Usage: gcli lambda:update [options]
102
+
103
+ Options:
104
+ --name <name> Function name
105
+ --project <project> Project in which this lambda is defined
106
+ --env <env> Environment name for function can be NODEJS
107
+ --method <method...> HTTP Methods: GET,POST,PUT,DELETE,HEAD. To mention single method
108
+ --spec <spec> Spec file yml or json path
109
+ --packageJson <packageJson> Define packageJson in string format
110
+ --package <package> Path to package.json
111
+ --buildBashScript <buildBashScript> Package build command for builder to run with
112
+ --script <script> Package build script path
113
+ --params <params> Array from strings which defines route params
114
+ --network <network> Can be private or public meaning exposed to the router or just for private available can be both also --network private --network public
115
+ --route <route> Lambda route in which will be accessible
116
+ --code <code> URL or local path for single file source code
117
+ --file <file> Main lambda file
118
+ --executorType <executorType> Executor type for execution; one of 'poolmgr', 'newdeploy'
119
+ --maxCpu <maxCpu> Maximum CPU to be assigned to pod (In millicore, minimum 1)
120
+ --minCpu <minCpu> Minimum CPU to be assigned to pod (In millicore, minimum 1)
121
+ --maxMemory <maxMemory> Maximum memory to be assigned to pod (In megabyte)
122
+ --minMemory <minMemory> Minimum memory to be assigned to pod (In megabyte)
123
+ --minScale <minScale> Minimum number of pods (Uses resource inputs to configure HPA)
124
+ --maxScale <maxScale> Maximum number of pods (Uses resource inputs to configure HPA)
125
+ --targetCpu <targetCpu> Target average CPU usage percentage across pods for scaling
126
+ --idleTimeout <idleTimeout> The length of time (in seconds) that a function is idle before pod(s) are eligible for recycling
127
+ --concurrency <concurrency> Maximum number of pods specialized concurrently to serve requests
128
+ --functionTimeout <functionTimeout> Maximum time for a request to wait for the response from the function
129
+ --specializationTimeout <specializationTimeout> Timeout for executor to wait for function pod creation
130
+ -h, --help display help for command
131
+ 
132
+ --- Subcommand: lambda:delete ---
133
+ Usage: gcli lambda:delete [options]
134
+
135
+ Get lambda by id
136
+
137
+ Options:
138
+ -n, --name <name> get by lambda name
139
+ -p, --project <project> get by lambda name
140
+ -s, --spec <spec> get by lambda name
141
+ -h, --help display help for command
142
+ 
143
+ --- Subcommand: lambda:log ---
144
+ Usage: gcli lambda:log [options]
145
+
146
+ Get lambda log
147
+
148
+ Options:
149
+ -l, --lambda <lambda> get by lambda id
150
+ -n, --name <name> get by lambda name
151
+ -p, --project <project> get by lambda name
152
+ -s, --spec <spec> get by lambda name
153
+ -h, --help display help for command
154
+ 
155
+ --- Subcommand: lambda:build:log ---
156
+ Usage: gcli lambda:build:log [options]
157
+
158
+ Get build log
159
+
160
+ Options:
161
+ -l, --lambda <lambda> get by lambda id
162
+ -n, --name <name> get by lambda name
163
+ -p, --project <project> get by lambda project
164
+ -s, --spec <spec> use configuration
165
+ -h, --help display help for command
166
+ 
167
+ --- Subcommand: lambda:test ---
168
+ Usage: gcli lambda:test [options]
169
+
170
+ Test lambda
171
+
172
+ Options:
173
+ -l, --lambda <lambda> get by lambda id
174
+ -n, --name <name> get by lambda name
175
+ -p, --project <project> get by lambda name
176
+ -s, --spec <spec> get by lambda name
177
+ -qp, --queryParams <queryParams> Adds query params to request
178
+ -pp, --pathParams <pathParams> Adds query params to request
179
+ -b, --body <body> Add body to request
180
+ -h, --help display help for command
181
+ 
182
+ --- Subcommand: project:list ---
183
+ Usage: gcli project:list [options]
184
+
185
+ List of all projects
186
+
187
+ Options:
188
+ -h, --help display help for command
189
+ 
190
+ --- Subcommand: project:use ---
191
+ Usage: gcli project:use [options] <project>
192
+
193
+ Adds default project to be used all around the CLI
194
+
195
+ Options:
196
+ -h, --help display help for command
197
+ 
198
+ --- Subcommand: project:clear ---
199
+ Usage: gcli project:clear [options]
200
+
201
+ Clears default project to be used all around the CLI
202
+
203
+ Options:
204
+ -h, --help display help for command
205
+ 
206
+ --- Subcommand: build ---
207
+ Usage: gcli build [options]
208
+
209
+ Build bundle using esbuild https://esbuild.github.io
210
+
211
+ Options:
212
+ -f, --files <files...> File or files to bundle defaults to index.ts
213
+ -b, --bundle Bundle code (default: true)
214
+ -m, --minify Minify code (default: false)
215
+ -p, --platform <char> Platform (default: "node")
216
+ -t, --target <char> Target (default: "node14.4")
217
+ -o, --outfile <char> Outfile name
218
+ -e, --external <external...> External libraries
219
+ -h, --help display help for command
220
+ 
221
+ --- Subcommand: environment:list ---
222
+ Usage: gcli environment:list [options]
223
+
224
+ List of all environments for project
225
+
226
+ Options:
227
+ -p, --project <project>
228
+ -h, --help display help for command
229
+ 
230
+ --- Subcommand: environment:create ---
231
+ Usage: gcli environment:create [options]
232
+
233
+ Create environment for project
234
+
235
+ Options:
236
+ -p, --project <project>
237
+ -minCpu, --minCpu <minCpu>
238
+ -maxCpu, --maxCpu <maxCpu>
239
+ -minMemory, --minMemory <minMemory>
240
+ -maxMemory, --maxMemory <maxMemory>
241
+ -poolSize, --poolSize <poolSize>
242
+ -builder, --builder <builder>
243
+ -image, --image <image>
244
+ -name, --name <name>
245
+ -spec, --spec <spec>
246
+ -r, --region <region> Default region is eu-central 'DEFAULT' |
247
+ 'EU_BALKANS' | 'EU_CENTRAL'
248
+ -h, --help display help for command
249
+ 
250
+ --- Subcommand: environment:update ---
251
+ Usage: gcli environment:update [options]
252
+
253
+ Update environment for project
254
+
255
+ Options:
256
+ -p, --project <project>
257
+ -minCpu, --minCpu <minCpu>
258
+ -maxCpu, --maxCpu <maxCpu>
259
+ -minMemory, --minMemory <minMemory>
260
+ -maxMemory, --maxMemory <maxMemory>
261
+ -poolSize, --poolSize <poolSize>
262
+ -builder, --builder <builder>
263
+ -image, --image <image>
264
+ -name, --name <name>
265
+ -spec, --spec <spec>
266
+ -r, --region <region> Default region is eu-central 'DEFAULT' |
267
+ 'EU_BALKANS' | 'EU_CENTRAL'
268
+ -h, --help display help for command
269
+ 
270
+ --- Subcommand: environment:delete ---
271
+ Usage: gcli environment:delete [options]
272
+
273
+ Delete environment for project
274
+
275
+ Options:
276
+ -p, --project <project>
277
+ -n, --name <name>
278
+ -f, --force
279
+ -spec, --spec <spec>
280
+ -h, --help display help for command
281
+ 
282
+ --- Subcommand: environment:get ---
283
+ Usage: gcli environment:get [options]
284
+
285
+ Get environment for project
286
+
287
+ Options:
288
+ -p, --project <project>
289
+ -n, --name <name>
290
+ -h, --help display help for command
291
+ 
292
+ --- Subcommand: mcp:start ---
293
+ Usage: gcli mcp:start [options]
294
+
295
+ Start mcp proxy server
296
+
297
+ Options:
298
+ -u, --url <url> Specify mcp api url
299
+ -h, --help display help for command
300
+ 
301
+ --- Subcommand: start ---
302
+ Usage: gcli start [options]
303
+
304
+ Start bundle using esbuild https://esbuild.github.io
305
+
306
+ Options:
307
+ -f, --files <files...> File or files to bundle defaults to index.ts
308
+ -b, --bundle Bundle code (default: true)
309
+ -m, --minify Minify code (default: false)
310
+ -p, --platform <char> Platform (default: "node")
311
+ -t, --target <char> Target (default: "node14.4")
312
+ -o, --outfile <char> Outfile name
313
+ -e, --external <external...> External libraries
314
+ -h, --help display help for command