@xano/cli 0.0.17 → 0.0.18

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.
@@ -97,23 +97,25 @@
97
97
  "index.js"
98
98
  ]
99
99
  },
100
- "function:get": {
100
+ "function:edit": {
101
101
  "aliases": [],
102
102
  "args": {
103
103
  "function_id": {
104
- "description": "Function ID",
104
+ "description": "Function ID to edit",
105
105
  "name": "function_id",
106
106
  "required": false
107
107
  }
108
108
  },
109
- "description": "Get a specific function from a workspace",
109
+ "description": "Edit a function in a workspace",
110
110
  "examples": [
111
- "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
112
- "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
113
- "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
114
- "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
115
- "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
116
- "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
111
+ "$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
112
+ "$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
113
+ "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
114
+ "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
115
+ "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
116
+ "$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
117
+ "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
118
+ "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
117
119
  ],
118
120
  "flags": {
119
121
  "profile": {
@@ -135,39 +137,62 @@
135
137
  "multiple": false,
136
138
  "type": "option"
137
139
  },
138
- "output": {
139
- "char": "o",
140
- "description": "Output format",
141
- "name": "output",
140
+ "file": {
141
+ "char": "f",
142
+ "description": "Path to file containing XanoScript code",
143
+ "exclusive": [
144
+ "stdin"
145
+ ],
146
+ "name": "file",
142
147
  "required": false,
143
- "default": "summary",
144
148
  "hasDynamicHelp": false,
145
149
  "multiple": false,
146
- "options": [
147
- "summary",
148
- "json",
149
- "xs"
150
- ],
151
150
  "type": "option"
152
151
  },
153
- "include_draft": {
154
- "description": "Include draft version",
155
- "name": "include_draft",
152
+ "stdin": {
153
+ "char": "s",
154
+ "description": "Read XanoScript code from stdin",
155
+ "exclusive": [
156
+ "file"
157
+ ],
158
+ "name": "stdin",
156
159
  "required": false,
157
160
  "allowNo": false,
158
161
  "type": "boolean"
159
162
  },
160
- "include_xanoscript": {
161
- "description": "Include XanoScript in response",
162
- "name": "include_xanoscript",
163
+ "edit": {
164
+ "char": "e",
165
+ "description": "Open file in editor before updating function (requires --file)",
166
+ "name": "edit",
167
+ "required": false,
168
+ "allowNo": false,
169
+ "type": "boolean"
170
+ },
171
+ "publish": {
172
+ "description": "Publish the function after editing",
173
+ "name": "publish",
163
174
  "required": false,
164
175
  "allowNo": false,
165
176
  "type": "boolean"
177
+ },
178
+ "output": {
179
+ "char": "o",
180
+ "description": "Output format",
181
+ "name": "output",
182
+ "required": false,
183
+ "default": "summary",
184
+ "hasDynamicHelp": false,
185
+ "multiple": false,
186
+ "options": [
187
+ "summary",
188
+ "json"
189
+ ],
190
+ "type": "option"
166
191
  }
167
192
  },
168
193
  "hasDynamicHelp": false,
169
194
  "hiddenAliases": [],
170
- "id": "function:get",
195
+ "id": "function:edit",
171
196
  "pluginAlias": "@xano/cli",
172
197
  "pluginName": "@xano/cli",
173
198
  "pluginType": "core",
@@ -178,29 +203,27 @@
178
203
  "dist",
179
204
  "commands",
180
205
  "function",
181
- "get",
206
+ "edit",
182
207
  "index.js"
183
208
  ]
184
209
  },
185
- "function:edit": {
210
+ "function:get": {
186
211
  "aliases": [],
187
212
  "args": {
188
213
  "function_id": {
189
- "description": "Function ID to edit",
214
+ "description": "Function ID",
190
215
  "name": "function_id",
191
216
  "required": false
192
217
  }
193
218
  },
194
- "description": "Edit a function in a workspace",
219
+ "description": "Get a specific function from a workspace",
195
220
  "examples": [
196
- "$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
197
- "$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
198
- "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
199
- "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
200
- "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
201
- "$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
202
- "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
203
- "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
221
+ "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
222
+ "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
223
+ "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
224
+ "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
225
+ "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
226
+ "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
204
227
  ],
205
228
  "flags": {
206
229
  "profile": {
@@ -222,44 +245,6 @@
222
245
  "multiple": false,
223
246
  "type": "option"
224
247
  },
225
- "file": {
226
- "char": "f",
227
- "description": "Path to file containing XanoScript code",
228
- "exclusive": [
229
- "stdin"
230
- ],
231
- "name": "file",
232
- "required": false,
233
- "hasDynamicHelp": false,
234
- "multiple": false,
235
- "type": "option"
236
- },
237
- "stdin": {
238
- "char": "s",
239
- "description": "Read XanoScript code from stdin",
240
- "exclusive": [
241
- "file"
242
- ],
243
- "name": "stdin",
244
- "required": false,
245
- "allowNo": false,
246
- "type": "boolean"
247
- },
248
- "edit": {
249
- "char": "e",
250
- "description": "Open file in editor before updating function (requires --file)",
251
- "name": "edit",
252
- "required": false,
253
- "allowNo": false,
254
- "type": "boolean"
255
- },
256
- "publish": {
257
- "description": "Publish the function after editing",
258
- "name": "publish",
259
- "required": false,
260
- "allowNo": false,
261
- "type": "boolean"
262
- },
263
248
  "output": {
264
249
  "char": "o",
265
250
  "description": "Output format",
@@ -270,14 +255,29 @@
270
255
  "multiple": false,
271
256
  "options": [
272
257
  "summary",
273
- "json"
258
+ "json",
259
+ "xs"
274
260
  ],
275
261
  "type": "option"
262
+ },
263
+ "include_draft": {
264
+ "description": "Include draft version",
265
+ "name": "include_draft",
266
+ "required": false,
267
+ "allowNo": false,
268
+ "type": "boolean"
269
+ },
270
+ "include_xanoscript": {
271
+ "description": "Include XanoScript in response",
272
+ "name": "include_xanoscript",
273
+ "required": false,
274
+ "allowNo": false,
275
+ "type": "boolean"
276
276
  }
277
277
  },
278
278
  "hasDynamicHelp": false,
279
279
  "hiddenAliases": [],
280
- "id": "function:edit",
280
+ "id": "function:get",
281
281
  "pluginAlias": "@xano/cli",
282
282
  "pluginName": "@xano/cli",
283
283
  "pluginType": "core",
@@ -288,7 +288,7 @@
288
288
  "dist",
289
289
  "commands",
290
290
  "function",
291
- "edit",
291
+ "get",
292
292
  "index.js"
293
293
  ]
294
294
  },
@@ -408,6 +408,86 @@
408
408
  "index.js"
409
409
  ]
410
410
  },
411
+ "static_host:list": {
412
+ "aliases": [],
413
+ "args": {},
414
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
415
+ "examples": [
416
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
417
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
418
+ "$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
419
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
420
+ ],
421
+ "flags": {
422
+ "profile": {
423
+ "char": "p",
424
+ "description": "Profile to use for this command",
425
+ "env": "XANO_PROFILE",
426
+ "name": "profile",
427
+ "required": false,
428
+ "hasDynamicHelp": false,
429
+ "multiple": false,
430
+ "type": "option"
431
+ },
432
+ "workspace": {
433
+ "char": "w",
434
+ "description": "Workspace ID (optional if set in profile)",
435
+ "name": "workspace",
436
+ "required": false,
437
+ "hasDynamicHelp": false,
438
+ "multiple": false,
439
+ "type": "option"
440
+ },
441
+ "output": {
442
+ "char": "o",
443
+ "description": "Output format",
444
+ "name": "output",
445
+ "required": false,
446
+ "default": "summary",
447
+ "hasDynamicHelp": false,
448
+ "multiple": false,
449
+ "options": [
450
+ "summary",
451
+ "json"
452
+ ],
453
+ "type": "option"
454
+ },
455
+ "page": {
456
+ "description": "Page number for pagination",
457
+ "name": "page",
458
+ "required": false,
459
+ "default": 1,
460
+ "hasDynamicHelp": false,
461
+ "multiple": false,
462
+ "type": "option"
463
+ },
464
+ "per_page": {
465
+ "description": "Number of results per page",
466
+ "name": "per_page",
467
+ "required": false,
468
+ "default": 50,
469
+ "hasDynamicHelp": false,
470
+ "multiple": false,
471
+ "type": "option"
472
+ }
473
+ },
474
+ "hasDynamicHelp": false,
475
+ "hiddenAliases": [],
476
+ "id": "static_host:list",
477
+ "pluginAlias": "@xano/cli",
478
+ "pluginName": "@xano/cli",
479
+ "pluginType": "core",
480
+ "strict": true,
481
+ "enableJsonFlag": false,
482
+ "isESM": true,
483
+ "relativePath": [
484
+ "dist",
485
+ "commands",
486
+ "static_host",
487
+ "list",
488
+ "index.js"
489
+ ]
490
+ },
411
491
  "profile:create": {
412
492
  "aliases": [],
413
493
  "args": {
@@ -514,66 +594,24 @@
514
594
  "index.js"
515
595
  ]
516
596
  },
517
- "profile:delete": {
597
+ "profile:edit": {
518
598
  "aliases": [],
519
599
  "args": {
520
600
  "name": {
521
- "description": "Profile name to delete",
601
+ "description": "Profile name to edit (uses default profile if not specified)",
522
602
  "name": "name",
523
- "required": true
603
+ "required": false
524
604
  }
525
605
  },
526
- "description": "Delete a profile configuration",
606
+ "description": "Edit an existing profile configuration",
527
607
  "examples": [
528
- "$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
529
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
530
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
531
- ],
532
- "flags": {
533
- "force": {
534
- "char": "f",
535
- "description": "Skip confirmation prompt",
536
- "name": "force",
537
- "required": false,
538
- "allowNo": false,
539
- "type": "boolean"
540
- }
541
- },
542
- "hasDynamicHelp": false,
543
- "hiddenAliases": [],
544
- "id": "profile:delete",
545
- "pluginAlias": "@xano/cli",
546
- "pluginName": "@xano/cli",
547
- "pluginType": "core",
548
- "strict": true,
549
- "enableJsonFlag": false,
550
- "isESM": true,
551
- "relativePath": [
552
- "dist",
553
- "commands",
554
- "profile",
555
- "delete",
556
- "index.js"
557
- ]
558
- },
559
- "profile:edit": {
560
- "aliases": [],
561
- "args": {
562
- "name": {
563
- "description": "Profile name to edit (uses default profile if not specified)",
564
- "name": "name",
565
- "required": false
566
- }
567
- },
568
- "description": "Edit an existing profile configuration",
569
- "examples": [
570
- "$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
571
- "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
572
- "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
573
- "$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
574
- "$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
575
- "$ xano profile:edit -j my-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
576
- "$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
608
+ "$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
609
+ "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
610
+ "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
611
+ "$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
612
+ "$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
613
+ "$ xano profile:edit -j my-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
614
+ "$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
577
615
  ],
578
616
  "flags": {
579
617
  "profile": {
@@ -721,24 +759,34 @@
721
759
  "index.js"
722
760
  ]
723
761
  },
724
- "profile:set-default": {
762
+ "profile:delete": {
725
763
  "aliases": [],
726
764
  "args": {
727
765
  "name": {
728
- "description": "Profile name to set as default",
766
+ "description": "Profile name to delete",
729
767
  "name": "name",
730
768
  "required": true
731
769
  }
732
770
  },
733
- "description": "Set the default profile",
771
+ "description": "Delete a profile configuration",
734
772
  "examples": [
735
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
736
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
773
+ "$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
774
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
775
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
737
776
  ],
738
- "flags": {},
777
+ "flags": {
778
+ "force": {
779
+ "char": "f",
780
+ "description": "Skip confirmation prompt",
781
+ "name": "force",
782
+ "required": false,
783
+ "allowNo": false,
784
+ "type": "boolean"
785
+ }
786
+ },
739
787
  "hasDynamicHelp": false,
740
788
  "hiddenAliases": [],
741
- "id": "profile:set-default",
789
+ "id": "profile:delete",
742
790
  "pluginAlias": "@xano/cli",
743
791
  "pluginName": "@xano/cli",
744
792
  "pluginType": "core",
@@ -749,7 +797,7 @@
749
797
  "dist",
750
798
  "commands",
751
799
  "profile",
752
- "set-default",
800
+ "delete",
753
801
  "index.js"
754
802
  ]
755
803
  },
@@ -805,54 +853,18 @@
805
853
  "index.js"
806
854
  ]
807
855
  },
808
- "profile:project": {
856
+ "profile:token": {
809
857
  "aliases": [],
810
858
  "args": {},
811
- "description": "Print the project for the default profile",
859
+ "description": "Print the access token for the default profile",
812
860
  "examples": [
813
- "$ xano profile:project\nmy-project-id\n",
814
- "$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
861
+ "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
862
+ "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
815
863
  ],
816
864
  "flags": {},
817
865
  "hasDynamicHelp": false,
818
866
  "hiddenAliases": [],
819
- "id": "profile:project",
820
- "pluginAlias": "@xano/cli",
821
- "pluginName": "@xano/cli",
822
- "pluginType": "core",
823
- "strict": true,
824
- "enableJsonFlag": false,
825
- "isESM": true,
826
- "relativePath": [
827
- "dist",
828
- "commands",
829
- "profile",
830
- "project",
831
- "index.js"
832
- ]
833
- },
834
- "profile:list": {
835
- "aliases": [],
836
- "args": {},
837
- "description": "List all available profile configurations",
838
- "examples": [
839
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
840
- "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
841
- "$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
842
- ],
843
- "flags": {
844
- "details": {
845
- "char": "d",
846
- "description": "Show detailed information for each profile",
847
- "name": "details",
848
- "required": false,
849
- "allowNo": false,
850
- "type": "boolean"
851
- }
852
- },
853
- "hasDynamicHelp": false,
854
- "hiddenAliases": [],
855
- "id": "profile:list",
867
+ "id": "profile:token",
856
868
  "pluginAlias": "@xano/cli",
857
869
  "pluginName": "@xano/cli",
858
870
  "pluginType": "core",
@@ -863,41 +875,28 @@
863
875
  "dist",
864
876
  "commands",
865
877
  "profile",
866
- "list",
878
+ "token",
867
879
  "index.js"
868
880
  ]
869
881
  },
870
- "profile:wizard": {
882
+ "profile:set-default": {
871
883
  "aliases": [],
872
- "args": {},
873
- "description": "Create a new profile configuration using an interactive wizard",
874
- "examples": [
875
- "$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
876
- ],
877
- "flags": {
884
+ "args": {
878
885
  "name": {
879
- "char": "n",
880
- "description": "Profile name (skip prompt if provided)",
886
+ "description": "Profile name to set as default",
881
887
  "name": "name",
882
- "required": false,
883
- "hasDynamicHelp": false,
884
- "multiple": false,
885
- "type": "option"
886
- },
887
- "origin": {
888
- "char": "o",
889
- "description": "Xano instance origin URL",
890
- "name": "origin",
891
- "required": false,
892
- "default": "https://app.xano.com",
893
- "hasDynamicHelp": false,
894
- "multiple": false,
895
- "type": "option"
888
+ "required": true
896
889
  }
897
890
  },
891
+ "description": "Set the default profile",
892
+ "examples": [
893
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
894
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
895
+ ],
896
+ "flags": {},
898
897
  "hasDynamicHelp": false,
899
898
  "hiddenAliases": [],
900
- "id": "profile:wizard",
899
+ "id": "profile:set-default",
901
900
  "pluginAlias": "@xano/cli",
902
901
  "pluginName": "@xano/cli",
903
902
  "pluginType": "core",
@@ -908,22 +907,22 @@
908
907
  "dist",
909
908
  "commands",
910
909
  "profile",
911
- "wizard",
910
+ "set-default",
912
911
  "index.js"
913
912
  ]
914
913
  },
915
- "profile:token": {
914
+ "profile:project": {
916
915
  "aliases": [],
917
916
  "args": {},
918
- "description": "Print the access token for the default profile",
917
+ "description": "Print the project for the default profile",
919
918
  "examples": [
920
- "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
921
- "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
919
+ "$ xano profile:project\nmy-project-id\n",
920
+ "$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
922
921
  ],
923
922
  "flags": {},
924
923
  "hasDynamicHelp": false,
925
924
  "hiddenAliases": [],
926
- "id": "profile:token",
925
+ "id": "profile:project",
927
926
  "pluginAlias": "@xano/cli",
928
927
  "pluginName": "@xano/cli",
929
928
  "pluginType": "core",
@@ -934,21 +933,28 @@
934
933
  "dist",
935
934
  "commands",
936
935
  "profile",
937
- "token",
936
+ "project",
938
937
  "index.js"
939
938
  ]
940
939
  },
941
940
  "run:exec": {
942
941
  "aliases": [],
943
- "args": {},
942
+ "args": {
943
+ "path": {
944
+ "description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
945
+ "name": "path",
946
+ "required": false
947
+ }
948
+ },
944
949
  "description": "Execute XanoScript code (job or service)",
945
950
  "examples": [
946
- "$ xano run exec -f script.xs\nExecuted successfully!\n...\n",
947
- "$ xano run exec -f script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
951
+ "$ xano run exec script.xs\nExecuted successfully!\n...\n",
952
+ "$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
953
+ "$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
948
954
  "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
949
- "$ xano run exec -f script.xs -o json\n{\n \"run\": { ... }\n}\n",
950
- "$ xano run exec -f script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
951
- "$ xano run exec -f script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
955
+ "$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
956
+ "$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
957
+ "$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
952
958
  ],
953
959
  "flags": {
954
960
  "profile": {
@@ -963,7 +969,7 @@
963
969
  },
964
970
  "file": {
965
971
  "char": "f",
966
- "description": "Path or URL to file containing XanoScript code",
972
+ "description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
967
973
  "exclusive": [
968
974
  "stdin"
969
975
  ],
@@ -1043,6 +1049,87 @@
1043
1049
  "index.js"
1044
1050
  ]
1045
1051
  },
1052
+ "profile:list": {
1053
+ "aliases": [],
1054
+ "args": {},
1055
+ "description": "List all available profile configurations",
1056
+ "examples": [
1057
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1058
+ "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
1059
+ "$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
1060
+ ],
1061
+ "flags": {
1062
+ "details": {
1063
+ "char": "d",
1064
+ "description": "Show detailed information for each profile",
1065
+ "name": "details",
1066
+ "required": false,
1067
+ "allowNo": false,
1068
+ "type": "boolean"
1069
+ }
1070
+ },
1071
+ "hasDynamicHelp": false,
1072
+ "hiddenAliases": [],
1073
+ "id": "profile:list",
1074
+ "pluginAlias": "@xano/cli",
1075
+ "pluginName": "@xano/cli",
1076
+ "pluginType": "core",
1077
+ "strict": true,
1078
+ "enableJsonFlag": false,
1079
+ "isESM": true,
1080
+ "relativePath": [
1081
+ "dist",
1082
+ "commands",
1083
+ "profile",
1084
+ "list",
1085
+ "index.js"
1086
+ ]
1087
+ },
1088
+ "profile:wizard": {
1089
+ "aliases": [],
1090
+ "args": {},
1091
+ "description": "Create a new profile configuration using an interactive wizard",
1092
+ "examples": [
1093
+ "$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
1094
+ ],
1095
+ "flags": {
1096
+ "name": {
1097
+ "char": "n",
1098
+ "description": "Profile name (skip prompt if provided)",
1099
+ "name": "name",
1100
+ "required": false,
1101
+ "hasDynamicHelp": false,
1102
+ "multiple": false,
1103
+ "type": "option"
1104
+ },
1105
+ "origin": {
1106
+ "char": "o",
1107
+ "description": "Xano instance origin URL",
1108
+ "name": "origin",
1109
+ "required": false,
1110
+ "default": "https://app.xano.com",
1111
+ "hasDynamicHelp": false,
1112
+ "multiple": false,
1113
+ "type": "option"
1114
+ }
1115
+ },
1116
+ "hasDynamicHelp": false,
1117
+ "hiddenAliases": [],
1118
+ "id": "profile:wizard",
1119
+ "pluginAlias": "@xano/cli",
1120
+ "pluginName": "@xano/cli",
1121
+ "pluginType": "core",
1122
+ "strict": true,
1123
+ "enableJsonFlag": false,
1124
+ "isESM": true,
1125
+ "relativePath": [
1126
+ "dist",
1127
+ "commands",
1128
+ "profile",
1129
+ "wizard",
1130
+ "index.js"
1131
+ ]
1132
+ },
1046
1133
  "run:info": {
1047
1134
  "aliases": [],
1048
1135
  "args": {},
@@ -1117,15 +1204,15 @@
1117
1204
  "index.js"
1118
1205
  ]
1119
1206
  },
1120
- "static_host:list": {
1207
+ "workspace:list": {
1121
1208
  "aliases": [],
1122
1209
  "args": {},
1123
- "description": "List all static hosts in a workspace from the Xano Metadata API",
1210
+ "description": "List all workspaces from the Xano Metadata API",
1124
1211
  "examples": [
1125
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1126
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1127
- "$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
1128
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
1212
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
1213
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
1214
+ "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
1215
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
1129
1216
  ],
1130
1217
  "flags": {
1131
1218
  "profile": {
@@ -1138,15 +1225,6 @@
1138
1225
  "multiple": false,
1139
1226
  "type": "option"
1140
1227
  },
1141
- "workspace": {
1142
- "char": "w",
1143
- "description": "Workspace ID (optional if set in profile)",
1144
- "name": "workspace",
1145
- "required": false,
1146
- "hasDynamicHelp": false,
1147
- "multiple": false,
1148
- "type": "option"
1149
- },
1150
1228
  "output": {
1151
1229
  "char": "o",
1152
1230
  "description": "Output format",
@@ -1160,21 +1238,123 @@
1160
1238
  "json"
1161
1239
  ],
1162
1240
  "type": "option"
1241
+ }
1242
+ },
1243
+ "hasDynamicHelp": false,
1244
+ "hiddenAliases": [],
1245
+ "id": "workspace:list",
1246
+ "pluginAlias": "@xano/cli",
1247
+ "pluginName": "@xano/cli",
1248
+ "pluginType": "core",
1249
+ "strict": true,
1250
+ "enableJsonFlag": false,
1251
+ "isESM": true,
1252
+ "relativePath": [
1253
+ "dist",
1254
+ "commands",
1255
+ "workspace",
1256
+ "list",
1257
+ "index.js"
1258
+ ]
1259
+ },
1260
+ "workspace:pull": {
1261
+ "aliases": [],
1262
+ "args": {
1263
+ "directory": {
1264
+ "description": "Output directory for pulled documents",
1265
+ "name": "directory",
1266
+ "required": true
1267
+ }
1268
+ },
1269
+ "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
1270
+ "examples": [
1271
+ "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
1272
+ "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
1273
+ "$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
1274
+ ],
1275
+ "flags": {
1276
+ "profile": {
1277
+ "char": "p",
1278
+ "description": "Profile to use for this command",
1279
+ "env": "XANO_PROFILE",
1280
+ "name": "profile",
1281
+ "required": false,
1282
+ "hasDynamicHelp": false,
1283
+ "multiple": false,
1284
+ "type": "option"
1163
1285
  },
1164
- "page": {
1165
- "description": "Page number for pagination",
1166
- "name": "page",
1286
+ "workspace": {
1287
+ "char": "w",
1288
+ "description": "Workspace ID (optional if set in profile)",
1289
+ "name": "workspace",
1167
1290
  "required": false,
1168
- "default": 1,
1169
1291
  "hasDynamicHelp": false,
1170
1292
  "multiple": false,
1171
1293
  "type": "option"
1172
1294
  },
1173
- "per_page": {
1174
- "description": "Number of results per page",
1175
- "name": "per_page",
1295
+ "env": {
1296
+ "description": "Include environment variables",
1297
+ "name": "env",
1298
+ "required": false,
1299
+ "allowNo": false,
1300
+ "type": "boolean"
1301
+ },
1302
+ "records": {
1303
+ "description": "Include records",
1304
+ "name": "records",
1305
+ "required": false,
1306
+ "allowNo": false,
1307
+ "type": "boolean"
1308
+ }
1309
+ },
1310
+ "hasDynamicHelp": false,
1311
+ "hiddenAliases": [],
1312
+ "id": "workspace:pull",
1313
+ "pluginAlias": "@xano/cli",
1314
+ "pluginName": "@xano/cli",
1315
+ "pluginType": "core",
1316
+ "strict": true,
1317
+ "enableJsonFlag": false,
1318
+ "isESM": true,
1319
+ "relativePath": [
1320
+ "dist",
1321
+ "commands",
1322
+ "workspace",
1323
+ "pull",
1324
+ "index.js"
1325
+ ]
1326
+ },
1327
+ "workspace:push": {
1328
+ "aliases": [],
1329
+ "args": {
1330
+ "directory": {
1331
+ "description": "Directory containing documents to push (as produced by workspace pull)",
1332
+ "name": "directory",
1333
+ "required": true
1334
+ }
1335
+ },
1336
+ "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
1337
+ "examples": [
1338
+ "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
1339
+ "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
1340
+ "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
1341
+ ],
1342
+ "flags": {
1343
+ "profile": {
1344
+ "char": "p",
1345
+ "description": "Profile to use for this command",
1346
+ "env": "XANO_PROFILE",
1347
+ "name": "profile",
1348
+ "required": false,
1349
+ "hasDynamicHelp": false,
1350
+ "multiple": false,
1351
+ "type": "option"
1352
+ },
1353
+ "workspace": {
1354
+ "char": "w",
1355
+ "description": "Workspace ID (optional if set in profile)",
1356
+ "name": "workspace",
1176
1357
  "required": false,
1177
- "default": 50,
1178
1358
  "hasDynamicHelp": false,
1179
1359
  "multiple": false,
1180
1360
  "type": "option"
@@ -1182,7 +1362,7 @@
1182
1362
  },
1183
1363
  "hasDynamicHelp": false,
1184
1364
  "hiddenAliases": [],
1185
- "id": "static_host:list",
1365
+ "id": "workspace:push",
1186
1366
  "pluginAlias": "@xano/cli",
1187
1367
  "pluginName": "@xano/cli",
1188
1368
  "pluginType": "core",
@@ -1192,20 +1372,25 @@
1192
1372
  "relativePath": [
1193
1373
  "dist",
1194
1374
  "commands",
1195
- "static_host",
1196
- "list",
1375
+ "workspace",
1376
+ "push",
1197
1377
  "index.js"
1198
1378
  ]
1199
1379
  },
1200
- "workspace:list": {
1380
+ "static_host:build:create": {
1201
1381
  "aliases": [],
1202
- "args": {},
1203
- "description": "List all workspaces from the Xano Metadata API",
1382
+ "args": {
1383
+ "static_host": {
1384
+ "description": "Static Host name",
1385
+ "name": "static_host",
1386
+ "required": true
1387
+ }
1388
+ },
1389
+ "description": "Create a new build for a static host",
1204
1390
  "examples": [
1205
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
1206
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
1207
- "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
1208
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
1391
+ "$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
1392
+ "$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
1393
+ "$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
1209
1394
  ],
1210
1395
  "flags": {
1211
1396
  "profile": {
@@ -1218,6 +1403,42 @@
1218
1403
  "multiple": false,
1219
1404
  "type": "option"
1220
1405
  },
1406
+ "workspace": {
1407
+ "char": "w",
1408
+ "description": "Workspace ID (optional if set in profile)",
1409
+ "name": "workspace",
1410
+ "required": false,
1411
+ "hasDynamicHelp": false,
1412
+ "multiple": false,
1413
+ "type": "option"
1414
+ },
1415
+ "file": {
1416
+ "char": "f",
1417
+ "description": "Path to zip file to upload",
1418
+ "name": "file",
1419
+ "required": true,
1420
+ "hasDynamicHelp": false,
1421
+ "multiple": false,
1422
+ "type": "option"
1423
+ },
1424
+ "name": {
1425
+ "char": "n",
1426
+ "description": "Build name",
1427
+ "name": "name",
1428
+ "required": true,
1429
+ "hasDynamicHelp": false,
1430
+ "multiple": false,
1431
+ "type": "option"
1432
+ },
1433
+ "description": {
1434
+ "char": "d",
1435
+ "description": "Build description",
1436
+ "name": "description",
1437
+ "required": false,
1438
+ "hasDynamicHelp": false,
1439
+ "multiple": false,
1440
+ "type": "option"
1441
+ },
1221
1442
  "output": {
1222
1443
  "char": "o",
1223
1444
  "description": "Output format",
@@ -1235,7 +1456,7 @@
1235
1456
  },
1236
1457
  "hasDynamicHelp": false,
1237
1458
  "hiddenAliases": [],
1238
- "id": "workspace:list",
1459
+ "id": "static_host:build:create",
1239
1460
  "pluginAlias": "@xano/cli",
1240
1461
  "pluginName": "@xano/cli",
1241
1462
  "pluginType": "core",
@@ -1245,24 +1466,32 @@
1245
1466
  "relativePath": [
1246
1467
  "dist",
1247
1468
  "commands",
1248
- "workspace",
1249
- "list",
1469
+ "static_host",
1470
+ "build",
1471
+ "create",
1250
1472
  "index.js"
1251
1473
  ]
1252
1474
  },
1253
- "run:env:delete": {
1475
+ "static_host:build:get": {
1254
1476
  "aliases": [],
1255
1477
  "args": {
1256
- "name": {
1257
- "description": "Environment variable name",
1258
- "name": "name",
1478
+ "static_host": {
1479
+ "description": "Static Host name",
1480
+ "name": "static_host",
1481
+ "required": true
1482
+ },
1483
+ "build_id": {
1484
+ "description": "Build ID",
1485
+ "name": "build_id",
1259
1486
  "required": true
1260
1487
  }
1261
1488
  },
1262
- "description": "Delete an environment variable",
1489
+ "description": "Get details of a specific build for a static host",
1263
1490
  "examples": [
1264
- "$ xano run env delete API_KEY\nAre you sure you want to delete environment variable 'API_KEY'? (y/N)\nEnvironment variable 'API_KEY' deleted successfully!\n",
1265
- "$ xano run env delete API_KEY --force\nEnvironment variable 'API_KEY' deleted successfully!\n"
1491
+ "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1492
+ "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1493
+ "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
1494
+ "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
1266
1495
  ],
1267
1496
  "flags": {
1268
1497
  "profile": {
@@ -1275,46 +1504,63 @@
1275
1504
  "multiple": false,
1276
1505
  "type": "option"
1277
1506
  },
1278
- "force": {
1279
- "char": "f",
1280
- "description": "Skip confirmation prompt",
1281
- "name": "force",
1507
+ "workspace": {
1508
+ "char": "w",
1509
+ "description": "Workspace ID (optional if set in profile)",
1510
+ "name": "workspace",
1282
1511
  "required": false,
1283
- "allowNo": false,
1284
- "type": "boolean"
1512
+ "hasDynamicHelp": false,
1513
+ "multiple": false,
1514
+ "type": "option"
1515
+ },
1516
+ "output": {
1517
+ "char": "o",
1518
+ "description": "Output format",
1519
+ "name": "output",
1520
+ "required": false,
1521
+ "default": "summary",
1522
+ "hasDynamicHelp": false,
1523
+ "multiple": false,
1524
+ "options": [
1525
+ "summary",
1526
+ "json"
1527
+ ],
1528
+ "type": "option"
1285
1529
  }
1286
1530
  },
1287
1531
  "hasDynamicHelp": false,
1288
1532
  "hiddenAliases": [],
1289
- "id": "run:env:delete",
1533
+ "id": "static_host:build:get",
1290
1534
  "pluginAlias": "@xano/cli",
1291
1535
  "pluginName": "@xano/cli",
1292
1536
  "pluginType": "core",
1293
1537
  "strict": true,
1538
+ "enableJsonFlag": false,
1294
1539
  "isESM": true,
1295
1540
  "relativePath": [
1296
1541
  "dist",
1297
1542
  "commands",
1298
- "run",
1299
- "env",
1300
- "delete",
1543
+ "static_host",
1544
+ "build",
1545
+ "get",
1301
1546
  "index.js"
1302
1547
  ]
1303
1548
  },
1304
- "workspace:pull": {
1549
+ "static_host:build:list": {
1305
1550
  "aliases": [],
1306
1551
  "args": {
1307
- "directory": {
1308
- "description": "Output directory for pulled documents",
1309
- "name": "directory",
1552
+ "static_host": {
1553
+ "description": "Static Host name",
1554
+ "name": "static_host",
1310
1555
  "required": true
1311
1556
  }
1312
1557
  },
1313
- "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
1558
+ "description": "List all builds for a static host",
1314
1559
  "examples": [
1315
- "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
1316
- "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
1317
- "$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
1560
+ "$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
1561
+ "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
1562
+ "$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
1563
+ "$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
1318
1564
  ],
1319
1565
  "flags": {
1320
1566
  "profile": {
@@ -1336,24 +1582,42 @@
1336
1582
  "multiple": false,
1337
1583
  "type": "option"
1338
1584
  },
1339
- "env": {
1340
- "description": "Include environment variables",
1341
- "name": "env",
1585
+ "output": {
1586
+ "char": "o",
1587
+ "description": "Output format",
1588
+ "name": "output",
1342
1589
  "required": false,
1343
- "allowNo": false,
1344
- "type": "boolean"
1590
+ "default": "summary",
1591
+ "hasDynamicHelp": false,
1592
+ "multiple": false,
1593
+ "options": [
1594
+ "summary",
1595
+ "json"
1596
+ ],
1597
+ "type": "option"
1345
1598
  },
1346
- "records": {
1347
- "description": "Include records",
1348
- "name": "records",
1599
+ "page": {
1600
+ "description": "Page number for pagination",
1601
+ "name": "page",
1349
1602
  "required": false,
1350
- "allowNo": false,
1351
- "type": "boolean"
1603
+ "default": 1,
1604
+ "hasDynamicHelp": false,
1605
+ "multiple": false,
1606
+ "type": "option"
1607
+ },
1608
+ "per_page": {
1609
+ "description": "Number of results per page",
1610
+ "name": "per_page",
1611
+ "required": false,
1612
+ "default": 50,
1613
+ "hasDynamicHelp": false,
1614
+ "multiple": false,
1615
+ "type": "option"
1352
1616
  }
1353
1617
  },
1354
1618
  "hasDynamicHelp": false,
1355
1619
  "hiddenAliases": [],
1356
- "id": "workspace:pull",
1620
+ "id": "static_host:build:list",
1357
1621
  "pluginAlias": "@xano/cli",
1358
1622
  "pluginName": "@xano/cli",
1359
1623
  "pluginType": "core",
@@ -1363,25 +1627,25 @@
1363
1627
  "relativePath": [
1364
1628
  "dist",
1365
1629
  "commands",
1366
- "workspace",
1367
- "pull",
1630
+ "static_host",
1631
+ "build",
1632
+ "list",
1368
1633
  "index.js"
1369
1634
  ]
1370
1635
  },
1371
- "workspace:push": {
1636
+ "run:env:delete": {
1372
1637
  "aliases": [],
1373
1638
  "args": {
1374
- "directory": {
1375
- "description": "Directory containing documents to push (as produced by workspace pull)",
1376
- "name": "directory",
1639
+ "name": {
1640
+ "description": "Environment variable name",
1641
+ "name": "name",
1377
1642
  "required": true
1378
1643
  }
1379
1644
  },
1380
- "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
1645
+ "description": "Delete an environment variable",
1381
1646
  "examples": [
1382
- "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
1383
- "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
1384
- "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
1647
+ "$ xano run env delete API_KEY\nAre you sure you want to delete environment variable 'API_KEY'? (y/N)\nEnvironment variable 'API_KEY' deleted successfully!\n",
1648
+ "$ xano run env delete API_KEY --force\nEnvironment variable 'API_KEY' deleted successfully!\n"
1385
1649
  ],
1386
1650
  "flags": {
1387
1651
  "profile": {
@@ -1394,30 +1658,29 @@
1394
1658
  "multiple": false,
1395
1659
  "type": "option"
1396
1660
  },
1397
- "workspace": {
1398
- "char": "w",
1399
- "description": "Workspace ID (optional if set in profile)",
1400
- "name": "workspace",
1661
+ "force": {
1662
+ "char": "f",
1663
+ "description": "Skip confirmation prompt",
1664
+ "name": "force",
1401
1665
  "required": false,
1402
- "hasDynamicHelp": false,
1403
- "multiple": false,
1404
- "type": "option"
1666
+ "allowNo": false,
1667
+ "type": "boolean"
1405
1668
  }
1406
1669
  },
1407
1670
  "hasDynamicHelp": false,
1408
1671
  "hiddenAliases": [],
1409
- "id": "workspace:push",
1672
+ "id": "run:env:delete",
1410
1673
  "pluginAlias": "@xano/cli",
1411
1674
  "pluginName": "@xano/cli",
1412
1675
  "pluginType": "core",
1413
1676
  "strict": true,
1414
- "enableJsonFlag": false,
1415
1677
  "isESM": true,
1416
1678
  "relativePath": [
1417
1679
  "dist",
1418
1680
  "commands",
1419
- "workspace",
1420
- "push",
1681
+ "run",
1682
+ "env",
1683
+ "delete",
1421
1684
  "index.js"
1422
1685
  ]
1423
1686
  },
@@ -1483,8 +1746,70 @@
1483
1746
  "args": {},
1484
1747
  "description": "List all environment variable keys",
1485
1748
  "examples": [
1486
- "$ xano run env list\nEnvironment variables:\n - API_KEY\n - DATABASE_URL\n - DEBUG\n",
1487
- "$ xano run env list -o json\n{ \"env\": [\"API_KEY\", \"DATABASE_URL\", \"DEBUG\"] }\n"
1749
+ "$ xano run env list\nEnvironment variables:\n - API_KEY\n - DATABASE_URL\n - DEBUG\n",
1750
+ "$ xano run env list -o json\n{ \"env\": [\"API_KEY\", \"DATABASE_URL\", \"DEBUG\"] }\n"
1751
+ ],
1752
+ "flags": {
1753
+ "profile": {
1754
+ "char": "p",
1755
+ "description": "Profile to use for this command",
1756
+ "env": "XANO_PROFILE",
1757
+ "name": "profile",
1758
+ "required": false,
1759
+ "hasDynamicHelp": false,
1760
+ "multiple": false,
1761
+ "type": "option"
1762
+ },
1763
+ "output": {
1764
+ "char": "o",
1765
+ "description": "Output format",
1766
+ "name": "output",
1767
+ "required": false,
1768
+ "default": "list",
1769
+ "hasDynamicHelp": false,
1770
+ "multiple": false,
1771
+ "options": [
1772
+ "list",
1773
+ "json"
1774
+ ],
1775
+ "type": "option"
1776
+ }
1777
+ },
1778
+ "hasDynamicHelp": false,
1779
+ "hiddenAliases": [],
1780
+ "id": "run:env:list",
1781
+ "pluginAlias": "@xano/cli",
1782
+ "pluginName": "@xano/cli",
1783
+ "pluginType": "core",
1784
+ "strict": true,
1785
+ "isESM": true,
1786
+ "relativePath": [
1787
+ "dist",
1788
+ "commands",
1789
+ "run",
1790
+ "env",
1791
+ "list",
1792
+ "index.js"
1793
+ ]
1794
+ },
1795
+ "run:env:set": {
1796
+ "aliases": [],
1797
+ "args": {
1798
+ "name": {
1799
+ "description": "Environment variable name",
1800
+ "name": "name",
1801
+ "required": true
1802
+ },
1803
+ "value": {
1804
+ "description": "Environment variable value",
1805
+ "name": "value",
1806
+ "required": true
1807
+ }
1808
+ },
1809
+ "description": "Set an environment variable",
1810
+ "examples": [
1811
+ "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
1812
+ "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
1488
1813
  ],
1489
1814
  "flags": {
1490
1815
  "profile": {
@@ -1496,25 +1821,11 @@
1496
1821
  "hasDynamicHelp": false,
1497
1822
  "multiple": false,
1498
1823
  "type": "option"
1499
- },
1500
- "output": {
1501
- "char": "o",
1502
- "description": "Output format",
1503
- "name": "output",
1504
- "required": false,
1505
- "default": "list",
1506
- "hasDynamicHelp": false,
1507
- "multiple": false,
1508
- "options": [
1509
- "list",
1510
- "json"
1511
- ],
1512
- "type": "option"
1513
1824
  }
1514
1825
  },
1515
1826
  "hasDynamicHelp": false,
1516
1827
  "hiddenAliases": [],
1517
- "id": "run:env:list",
1828
+ "id": "run:env:set",
1518
1829
  "pluginAlias": "@xano/cli",
1519
1830
  "pluginName": "@xano/cli",
1520
1831
  "pluginType": "core",
@@ -1525,7 +1836,7 @@
1525
1836
  "commands",
1526
1837
  "run",
1527
1838
  "env",
1528
- "list",
1839
+ "set",
1529
1840
  "index.js"
1530
1841
  ]
1531
1842
  },
@@ -1651,54 +1962,6 @@
1651
1962
  "index.js"
1652
1963
  ]
1653
1964
  },
1654
- "run:env:set": {
1655
- "aliases": [],
1656
- "args": {
1657
- "name": {
1658
- "description": "Environment variable name",
1659
- "name": "name",
1660
- "required": true
1661
- },
1662
- "value": {
1663
- "description": "Environment variable value",
1664
- "name": "value",
1665
- "required": true
1666
- }
1667
- },
1668
- "description": "Set an environment variable",
1669
- "examples": [
1670
- "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
1671
- "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
1672
- ],
1673
- "flags": {
1674
- "profile": {
1675
- "char": "p",
1676
- "description": "Profile to use for this command",
1677
- "env": "XANO_PROFILE",
1678
- "name": "profile",
1679
- "required": false,
1680
- "hasDynamicHelp": false,
1681
- "multiple": false,
1682
- "type": "option"
1683
- }
1684
- },
1685
- "hasDynamicHelp": false,
1686
- "hiddenAliases": [],
1687
- "id": "run:env:set",
1688
- "pluginAlias": "@xano/cli",
1689
- "pluginName": "@xano/cli",
1690
- "pluginType": "core",
1691
- "strict": true,
1692
- "isESM": true,
1693
- "relativePath": [
1694
- "dist",
1695
- "commands",
1696
- "run",
1697
- "env",
1698
- "set",
1699
- "index.js"
1700
- ]
1701
- },
1702
1965
  "run:projects:list": {
1703
1966
  "aliases": [],
1704
1967
  "args": {},
@@ -1934,80 +2197,6 @@
1934
2197
  "index.js"
1935
2198
  ]
1936
2199
  },
1937
- "run:secrets:set": {
1938
- "aliases": [],
1939
- "args": {
1940
- "name": {
1941
- "description": "Secret name",
1942
- "name": "name",
1943
- "required": true
1944
- }
1945
- },
1946
- "description": "Set a secret",
1947
- "examples": [
1948
- "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
1949
- "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
1950
- ],
1951
- "flags": {
1952
- "profile": {
1953
- "char": "p",
1954
- "description": "Profile to use for this command",
1955
- "env": "XANO_PROFILE",
1956
- "name": "profile",
1957
- "required": false,
1958
- "hasDynamicHelp": false,
1959
- "multiple": false,
1960
- "type": "option"
1961
- },
1962
- "type": {
1963
- "char": "t",
1964
- "description": "Secret type",
1965
- "name": "type",
1966
- "required": true,
1967
- "hasDynamicHelp": false,
1968
- "multiple": false,
1969
- "options": [
1970
- "dockerconfigjson",
1971
- "service-account-token"
1972
- ],
1973
- "type": "option"
1974
- },
1975
- "value": {
1976
- "char": "v",
1977
- "description": "Secret value",
1978
- "name": "value",
1979
- "required": true,
1980
- "hasDynamicHelp": false,
1981
- "multiple": false,
1982
- "type": "option"
1983
- },
1984
- "repo": {
1985
- "char": "r",
1986
- "description": "Repository (for dockerconfigjson type)",
1987
- "name": "repo",
1988
- "required": false,
1989
- "hasDynamicHelp": false,
1990
- "multiple": false,
1991
- "type": "option"
1992
- }
1993
- },
1994
- "hasDynamicHelp": false,
1995
- "hiddenAliases": [],
1996
- "id": "run:secrets:set",
1997
- "pluginAlias": "@xano/cli",
1998
- "pluginName": "@xano/cli",
1999
- "pluginType": "core",
2000
- "strict": true,
2001
- "isESM": true,
2002
- "relativePath": [
2003
- "dist",
2004
- "commands",
2005
- "run",
2006
- "secrets",
2007
- "set",
2008
- "index.js"
2009
- ]
2010
- },
2011
2200
  "run:secrets:list": {
2012
2201
  "aliases": [],
2013
2202
  "args": {},
@@ -2059,70 +2248,19 @@
2059
2248
  "index.js"
2060
2249
  ]
2061
2250
  },
2062
- "run:sessions:delete": {
2063
- "aliases": [],
2064
- "args": {
2065
- "sessionId": {
2066
- "description": "Session ID",
2067
- "name": "sessionId",
2068
- "required": true
2069
- }
2070
- },
2071
- "description": "Delete a session",
2072
- "examples": [
2073
- "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
2074
- "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
2075
- ],
2076
- "flags": {
2077
- "profile": {
2078
- "char": "p",
2079
- "description": "Profile to use for this command",
2080
- "env": "XANO_PROFILE",
2081
- "name": "profile",
2082
- "required": false,
2083
- "hasDynamicHelp": false,
2084
- "multiple": false,
2085
- "type": "option"
2086
- },
2087
- "force": {
2088
- "char": "f",
2089
- "description": "Skip confirmation prompt",
2090
- "name": "force",
2091
- "required": false,
2092
- "allowNo": false,
2093
- "type": "boolean"
2094
- }
2095
- },
2096
- "hasDynamicHelp": false,
2097
- "hiddenAliases": [],
2098
- "id": "run:sessions:delete",
2099
- "pluginAlias": "@xano/cli",
2100
- "pluginName": "@xano/cli",
2101
- "pluginType": "core",
2102
- "strict": true,
2103
- "isESM": true,
2104
- "relativePath": [
2105
- "dist",
2106
- "commands",
2107
- "run",
2108
- "sessions",
2109
- "delete",
2110
- "index.js"
2111
- ]
2112
- },
2113
- "run:sessions:start": {
2251
+ "run:secrets:set": {
2114
2252
  "aliases": [],
2115
2253
  "args": {
2116
- "sessionId": {
2117
- "description": "Session ID",
2118
- "name": "sessionId",
2254
+ "name": {
2255
+ "description": "Secret name",
2256
+ "name": "name",
2119
2257
  "required": true
2120
2258
  }
2121
2259
  },
2122
- "description": "Start a session",
2260
+ "description": "Set a secret",
2123
2261
  "examples": [
2124
- "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
2125
- "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
2262
+ "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
2263
+ "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
2126
2264
  ],
2127
2265
  "flags": {
2128
2266
  "profile": {
@@ -2135,75 +2273,41 @@
2135
2273
  "multiple": false,
2136
2274
  "type": "option"
2137
2275
  },
2138
- "output": {
2139
- "char": "o",
2140
- "description": "Output format",
2141
- "name": "output",
2142
- "required": false,
2143
- "default": "summary",
2144
- "hasDynamicHelp": false,
2145
- "multiple": false,
2146
- "options": [
2147
- "summary",
2148
- "json"
2149
- ],
2150
- "type": "option"
2151
- }
2152
- },
2153
- "hasDynamicHelp": false,
2154
- "hiddenAliases": [],
2155
- "id": "run:sessions:start",
2156
- "pluginAlias": "@xano/cli",
2157
- "pluginName": "@xano/cli",
2158
- "pluginType": "core",
2159
- "strict": true,
2160
- "isESM": true,
2161
- "relativePath": [
2162
- "dist",
2163
- "commands",
2164
- "run",
2165
- "sessions",
2166
- "start",
2167
- "index.js"
2168
- ]
2169
- },
2170
- "run:sessions:list": {
2171
- "aliases": [],
2172
- "args": {},
2173
- "description": "List all sessions for the project",
2174
- "examples": [
2175
- "$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
2176
- "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
2177
- ],
2178
- "flags": {
2179
- "profile": {
2180
- "char": "p",
2181
- "description": "Profile to use for this command",
2182
- "env": "XANO_PROFILE",
2183
- "name": "profile",
2184
- "required": false,
2276
+ "type": {
2277
+ "char": "t",
2278
+ "description": "Secret type",
2279
+ "name": "type",
2280
+ "required": true,
2185
2281
  "hasDynamicHelp": false,
2186
2282
  "multiple": false,
2283
+ "options": [
2284
+ "dockerconfigjson",
2285
+ "service-account-token"
2286
+ ],
2187
2287
  "type": "option"
2188
2288
  },
2189
- "output": {
2190
- "char": "o",
2191
- "description": "Output format",
2192
- "name": "output",
2289
+ "value": {
2290
+ "char": "v",
2291
+ "description": "Secret value",
2292
+ "name": "value",
2293
+ "required": true,
2294
+ "hasDynamicHelp": false,
2295
+ "multiple": false,
2296
+ "type": "option"
2297
+ },
2298
+ "repo": {
2299
+ "char": "r",
2300
+ "description": "Repository (for dockerconfigjson type)",
2301
+ "name": "repo",
2193
2302
  "required": false,
2194
- "default": "table",
2195
2303
  "hasDynamicHelp": false,
2196
2304
  "multiple": false,
2197
- "options": [
2198
- "table",
2199
- "json"
2200
- ],
2201
2305
  "type": "option"
2202
2306
  }
2203
2307
  },
2204
2308
  "hasDynamicHelp": false,
2205
2309
  "hiddenAliases": [],
2206
- "id": "run:sessions:list",
2310
+ "id": "run:secrets:set",
2207
2311
  "pluginAlias": "@xano/cli",
2208
2312
  "pluginName": "@xano/cli",
2209
2313
  "pluginType": "core",
@@ -2213,12 +2317,12 @@
2213
2317
  "dist",
2214
2318
  "commands",
2215
2319
  "run",
2216
- "sessions",
2217
- "list",
2320
+ "secrets",
2321
+ "set",
2218
2322
  "index.js"
2219
2323
  ]
2220
2324
  },
2221
- "run:sessions:get": {
2325
+ "run:sessions:delete": {
2222
2326
  "aliases": [],
2223
2327
  "args": {
2224
2328
  "sessionId": {
@@ -2227,10 +2331,10 @@
2227
2331
  "required": true
2228
2332
  }
2229
2333
  },
2230
- "description": "Get session details",
2334
+ "description": "Delete a session",
2231
2335
  "examples": [
2232
- "$ xano run sessions get abc123-def456\nSession Details:\n ID: abc123-def456\n Name: My Session\n Status: running\n Access: private\n URL: https://session.xano.io/abc123\n Uptime: 3600s\n",
2233
- "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
2336
+ "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
2337
+ "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
2234
2338
  ],
2235
2339
  "flags": {
2236
2340
  "profile": {
@@ -2243,24 +2347,18 @@
2243
2347
  "multiple": false,
2244
2348
  "type": "option"
2245
2349
  },
2246
- "output": {
2247
- "char": "o",
2248
- "description": "Output format",
2249
- "name": "output",
2350
+ "force": {
2351
+ "char": "f",
2352
+ "description": "Skip confirmation prompt",
2353
+ "name": "force",
2250
2354
  "required": false,
2251
- "default": "summary",
2252
- "hasDynamicHelp": false,
2253
- "multiple": false,
2254
- "options": [
2255
- "summary",
2256
- "json"
2257
- ],
2258
- "type": "option"
2355
+ "allowNo": false,
2356
+ "type": "boolean"
2259
2357
  }
2260
2358
  },
2261
2359
  "hasDynamicHelp": false,
2262
2360
  "hiddenAliases": [],
2263
- "id": "run:sessions:get",
2361
+ "id": "run:sessions:delete",
2264
2362
  "pluginAlias": "@xano/cli",
2265
2363
  "pluginName": "@xano/cli",
2266
2364
  "pluginType": "core",
@@ -2271,11 +2369,11 @@
2271
2369
  "commands",
2272
2370
  "run",
2273
2371
  "sessions",
2274
- "get",
2372
+ "delete",
2275
2373
  "index.js"
2276
2374
  ]
2277
2375
  },
2278
- "run:sessions:stop": {
2376
+ "run:sessions:get": {
2279
2377
  "aliases": [],
2280
2378
  "args": {
2281
2379
  "sessionId": {
@@ -2284,10 +2382,10 @@
2284
2382
  "required": true
2285
2383
  }
2286
2384
  },
2287
- "description": "Stop a session",
2385
+ "description": "Get session details",
2288
2386
  "examples": [
2289
- "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
2290
- "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
2387
+ "$ xano run sessions get abc123-def456\nSession Details:\n ID: abc123-def456\n Name: My Session\n Status: running\n Access: private\n URL: https://session.xano.io/abc123\n Uptime: 3600s\n",
2388
+ "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
2291
2389
  ],
2292
2390
  "flags": {
2293
2391
  "profile": {
@@ -2317,7 +2415,7 @@
2317
2415
  },
2318
2416
  "hasDynamicHelp": false,
2319
2417
  "hiddenAliases": [],
2320
- "id": "run:sessions:stop",
2418
+ "id": "run:sessions:get",
2321
2419
  "pluginAlias": "@xano/cli",
2322
2420
  "pluginName": "@xano/cli",
2323
2421
  "pluginType": "core",
@@ -2328,23 +2426,17 @@
2328
2426
  "commands",
2329
2427
  "run",
2330
2428
  "sessions",
2331
- "stop",
2429
+ "get",
2332
2430
  "index.js"
2333
2431
  ]
2334
2432
  },
2335
- "run:sink:get": {
2433
+ "run:sessions:list": {
2336
2434
  "aliases": [],
2337
- "args": {
2338
- "sessionId": {
2339
- "description": "Session ID",
2340
- "name": "sessionId",
2341
- "required": true
2342
- }
2343
- },
2344
- "description": "Get sink data for a completed session",
2435
+ "args": {},
2436
+ "description": "List all sessions for the project",
2345
2437
  "examples": [
2346
- "$ xano run sink get abc123-def456\nSink Data:\n Tables: 3\n - users (5 rows)\n - orders (12 rows)\n - products (8 rows)\n Logs: 15 entries\n",
2347
- "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
2438
+ "$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
2439
+ "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
2348
2440
  ],
2349
2441
  "flags": {
2350
2442
  "profile": {
@@ -2362,11 +2454,11 @@
2362
2454
  "description": "Output format",
2363
2455
  "name": "output",
2364
2456
  "required": false,
2365
- "default": "summary",
2457
+ "default": "table",
2366
2458
  "hasDynamicHelp": false,
2367
2459
  "multiple": false,
2368
2460
  "options": [
2369
- "summary",
2461
+ "table",
2370
2462
  "json"
2371
2463
  ],
2372
2464
  "type": "option"
@@ -2374,7 +2466,7 @@
2374
2466
  },
2375
2467
  "hasDynamicHelp": false,
2376
2468
  "hiddenAliases": [],
2377
- "id": "run:sink:get",
2469
+ "id": "run:sessions:list",
2378
2470
  "pluginAlias": "@xano/cli",
2379
2471
  "pluginName": "@xano/cli",
2380
2472
  "pluginType": "core",
@@ -2384,25 +2476,24 @@
2384
2476
  "dist",
2385
2477
  "commands",
2386
2478
  "run",
2387
- "sink",
2388
- "get",
2479
+ "sessions",
2480
+ "list",
2389
2481
  "index.js"
2390
2482
  ]
2391
2483
  },
2392
- "static_host:build:create": {
2484
+ "run:sessions:start": {
2393
2485
  "aliases": [],
2394
2486
  "args": {
2395
- "static_host": {
2396
- "description": "Static Host name",
2397
- "name": "static_host",
2487
+ "sessionId": {
2488
+ "description": "Session ID",
2489
+ "name": "sessionId",
2398
2490
  "required": true
2399
2491
  }
2400
2492
  },
2401
- "description": "Create a new build for a static host",
2493
+ "description": "Start a session",
2402
2494
  "examples": [
2403
- "$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
2404
- "$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
2405
- "$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
2495
+ "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
2496
+ "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
2406
2497
  ],
2407
2498
  "flags": {
2408
2499
  "profile": {
@@ -2415,42 +2506,6 @@
2415
2506
  "multiple": false,
2416
2507
  "type": "option"
2417
2508
  },
2418
- "workspace": {
2419
- "char": "w",
2420
- "description": "Workspace ID (optional if set in profile)",
2421
- "name": "workspace",
2422
- "required": false,
2423
- "hasDynamicHelp": false,
2424
- "multiple": false,
2425
- "type": "option"
2426
- },
2427
- "file": {
2428
- "char": "f",
2429
- "description": "Path to zip file to upload",
2430
- "name": "file",
2431
- "required": true,
2432
- "hasDynamicHelp": false,
2433
- "multiple": false,
2434
- "type": "option"
2435
- },
2436
- "name": {
2437
- "char": "n",
2438
- "description": "Build name",
2439
- "name": "name",
2440
- "required": true,
2441
- "hasDynamicHelp": false,
2442
- "multiple": false,
2443
- "type": "option"
2444
- },
2445
- "description": {
2446
- "char": "d",
2447
- "description": "Build description",
2448
- "name": "description",
2449
- "required": false,
2450
- "hasDynamicHelp": false,
2451
- "multiple": false,
2452
- "type": "option"
2453
- },
2454
2509
  "output": {
2455
2510
  "char": "o",
2456
2511
  "description": "Output format",
@@ -2468,42 +2523,34 @@
2468
2523
  },
2469
2524
  "hasDynamicHelp": false,
2470
2525
  "hiddenAliases": [],
2471
- "id": "static_host:build:create",
2526
+ "id": "run:sessions:start",
2472
2527
  "pluginAlias": "@xano/cli",
2473
2528
  "pluginName": "@xano/cli",
2474
2529
  "pluginType": "core",
2475
2530
  "strict": true,
2476
- "enableJsonFlag": false,
2477
2531
  "isESM": true,
2478
2532
  "relativePath": [
2479
2533
  "dist",
2480
2534
  "commands",
2481
- "static_host",
2482
- "build",
2483
- "create",
2535
+ "run",
2536
+ "sessions",
2537
+ "start",
2484
2538
  "index.js"
2485
2539
  ]
2486
2540
  },
2487
- "static_host:build:get": {
2541
+ "run:sessions:stop": {
2488
2542
  "aliases": [],
2489
2543
  "args": {
2490
- "static_host": {
2491
- "description": "Static Host name",
2492
- "name": "static_host",
2493
- "required": true
2494
- },
2495
- "build_id": {
2496
- "description": "Build ID",
2497
- "name": "build_id",
2544
+ "sessionId": {
2545
+ "description": "Session ID",
2546
+ "name": "sessionId",
2498
2547
  "required": true
2499
2548
  }
2500
2549
  },
2501
- "description": "Get details of a specific build for a static host",
2550
+ "description": "Stop a session",
2502
2551
  "examples": [
2503
- "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2504
- "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2505
- "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
2506
- "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
2552
+ "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
2553
+ "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
2507
2554
  ],
2508
2555
  "flags": {
2509
2556
  "profile": {
@@ -2516,15 +2563,6 @@
2516
2563
  "multiple": false,
2517
2564
  "type": "option"
2518
2565
  },
2519
- "workspace": {
2520
- "char": "w",
2521
- "description": "Workspace ID (optional if set in profile)",
2522
- "name": "workspace",
2523
- "required": false,
2524
- "hasDynamicHelp": false,
2525
- "multiple": false,
2526
- "type": "option"
2527
- },
2528
2566
  "output": {
2529
2567
  "char": "o",
2530
2568
  "description": "Output format",
@@ -2542,37 +2580,34 @@
2542
2580
  },
2543
2581
  "hasDynamicHelp": false,
2544
2582
  "hiddenAliases": [],
2545
- "id": "static_host:build:get",
2583
+ "id": "run:sessions:stop",
2546
2584
  "pluginAlias": "@xano/cli",
2547
2585
  "pluginName": "@xano/cli",
2548
2586
  "pluginType": "core",
2549
2587
  "strict": true,
2550
- "enableJsonFlag": false,
2551
2588
  "isESM": true,
2552
2589
  "relativePath": [
2553
2590
  "dist",
2554
2591
  "commands",
2555
- "static_host",
2556
- "build",
2557
- "get",
2592
+ "run",
2593
+ "sessions",
2594
+ "stop",
2558
2595
  "index.js"
2559
2596
  ]
2560
2597
  },
2561
- "static_host:build:list": {
2598
+ "run:sink:get": {
2562
2599
  "aliases": [],
2563
2600
  "args": {
2564
- "static_host": {
2565
- "description": "Static Host name",
2566
- "name": "static_host",
2601
+ "sessionId": {
2602
+ "description": "Session ID",
2603
+ "name": "sessionId",
2567
2604
  "required": true
2568
2605
  }
2569
2606
  },
2570
- "description": "List all builds for a static host",
2607
+ "description": "Get sink data for a completed session",
2571
2608
  "examples": [
2572
- "$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
2573
- "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
2574
- "$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
2575
- "$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
2609
+ "$ xano run sink get abc123-def456\nSink Data:\n Tables: 3\n - users (5 rows)\n - orders (12 rows)\n - products (8 rows)\n Logs: 15 entries\n",
2610
+ "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
2576
2611
  ],
2577
2612
  "flags": {
2578
2613
  "profile": {
@@ -2585,15 +2620,6 @@
2585
2620
  "multiple": false,
2586
2621
  "type": "option"
2587
2622
  },
2588
- "workspace": {
2589
- "char": "w",
2590
- "description": "Workspace ID (optional if set in profile)",
2591
- "name": "workspace",
2592
- "required": false,
2593
- "hasDynamicHelp": false,
2594
- "multiple": false,
2595
- "type": "option"
2596
- },
2597
2623
  "output": {
2598
2624
  "char": "o",
2599
2625
  "description": "Output format",
@@ -2607,44 +2633,25 @@
2607
2633
  "json"
2608
2634
  ],
2609
2635
  "type": "option"
2610
- },
2611
- "page": {
2612
- "description": "Page number for pagination",
2613
- "name": "page",
2614
- "required": false,
2615
- "default": 1,
2616
- "hasDynamicHelp": false,
2617
- "multiple": false,
2618
- "type": "option"
2619
- },
2620
- "per_page": {
2621
- "description": "Number of results per page",
2622
- "name": "per_page",
2623
- "required": false,
2624
- "default": 50,
2625
- "hasDynamicHelp": false,
2626
- "multiple": false,
2627
- "type": "option"
2628
2636
  }
2629
2637
  },
2630
2638
  "hasDynamicHelp": false,
2631
2639
  "hiddenAliases": [],
2632
- "id": "static_host:build:list",
2640
+ "id": "run:sink:get",
2633
2641
  "pluginAlias": "@xano/cli",
2634
2642
  "pluginName": "@xano/cli",
2635
2643
  "pluginType": "core",
2636
2644
  "strict": true,
2637
- "enableJsonFlag": false,
2638
2645
  "isESM": true,
2639
2646
  "relativePath": [
2640
2647
  "dist",
2641
2648
  "commands",
2642
- "static_host",
2643
- "build",
2644
- "list",
2649
+ "run",
2650
+ "sink",
2651
+ "get",
2645
2652
  "index.js"
2646
2653
  ]
2647
2654
  }
2648
2655
  },
2649
- "version": "0.0.17"
2656
+ "version": "0.0.18"
2650
2657
  }