@xano/cli 0.0.17 → 0.0.19

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
  },
@@ -514,48 +514,6 @@
514
514
  "index.js"
515
515
  ]
516
516
  },
517
- "profile:delete": {
518
- "aliases": [],
519
- "args": {
520
- "name": {
521
- "description": "Profile name to delete",
522
- "name": "name",
523
- "required": true
524
- }
525
- },
526
- "description": "Delete a profile configuration",
527
- "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
517
  "profile:edit": {
560
518
  "aliases": [],
561
519
  "args": {
@@ -695,50 +653,34 @@
695
653
  "index.js"
696
654
  ]
697
655
  },
698
- "profile:get-default": {
699
- "aliases": [],
700
- "args": {},
701
- "description": "Get the current default profile name",
702
- "examples": [
703
- "$ xano profile:get-default\nproduction\n",
704
- "$ xano profile:get-default\nNo default profile set\n"
705
- ],
706
- "flags": {},
707
- "hasDynamicHelp": false,
708
- "hiddenAliases": [],
709
- "id": "profile:get-default",
710
- "pluginAlias": "@xano/cli",
711
- "pluginName": "@xano/cli",
712
- "pluginType": "core",
713
- "strict": true,
714
- "enableJsonFlag": false,
715
- "isESM": true,
716
- "relativePath": [
717
- "dist",
718
- "commands",
719
- "profile",
720
- "get-default",
721
- "index.js"
722
- ]
723
- },
724
- "profile:set-default": {
656
+ "profile:delete": {
725
657
  "aliases": [],
726
658
  "args": {
727
659
  "name": {
728
- "description": "Profile name to set as default",
660
+ "description": "Profile name to delete",
729
661
  "name": "name",
730
662
  "required": true
731
663
  }
732
664
  },
733
- "description": "Set the default profile",
665
+ "description": "Delete a profile configuration",
734
666
  "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"
667
+ "$ 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",
668
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
669
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
737
670
  ],
738
- "flags": {},
671
+ "flags": {
672
+ "force": {
673
+ "char": "f",
674
+ "description": "Skip confirmation prompt",
675
+ "name": "force",
676
+ "required": false,
677
+ "allowNo": false,
678
+ "type": "boolean"
679
+ }
680
+ },
739
681
  "hasDynamicHelp": false,
740
682
  "hiddenAliases": [],
741
- "id": "profile:set-default",
683
+ "id": "profile:delete",
742
684
  "pluginAlias": "@xano/cli",
743
685
  "pluginName": "@xano/cli",
744
686
  "pluginType": "core",
@@ -749,14 +691,50 @@
749
691
  "dist",
750
692
  "commands",
751
693
  "profile",
752
- "set-default",
694
+ "delete",
753
695
  "index.js"
754
696
  ]
755
697
  },
756
- "profile:me": {
698
+ "profile:list": {
757
699
  "aliases": [],
758
700
  "args": {},
759
- "description": "Get information about the currently authenticated user",
701
+ "description": "List all available profile configurations",
702
+ "examples": [
703
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
704
+ "$ 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",
705
+ "$ 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"
706
+ ],
707
+ "flags": {
708
+ "details": {
709
+ "char": "d",
710
+ "description": "Show detailed information for each profile",
711
+ "name": "details",
712
+ "required": false,
713
+ "allowNo": false,
714
+ "type": "boolean"
715
+ }
716
+ },
717
+ "hasDynamicHelp": false,
718
+ "hiddenAliases": [],
719
+ "id": "profile:list",
720
+ "pluginAlias": "@xano/cli",
721
+ "pluginName": "@xano/cli",
722
+ "pluginType": "core",
723
+ "strict": true,
724
+ "enableJsonFlag": false,
725
+ "isESM": true,
726
+ "relativePath": [
727
+ "dist",
728
+ "commands",
729
+ "profile",
730
+ "list",
731
+ "index.js"
732
+ ]
733
+ },
734
+ "profile:me": {
735
+ "aliases": [],
736
+ "args": {},
737
+ "description": "Get information about the currently authenticated user",
760
738
  "examples": [
761
739
  "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
762
740
  "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
@@ -805,6 +783,38 @@
805
783
  "index.js"
806
784
  ]
807
785
  },
786
+ "profile:set-default": {
787
+ "aliases": [],
788
+ "args": {
789
+ "name": {
790
+ "description": "Profile name to set as default",
791
+ "name": "name",
792
+ "required": true
793
+ }
794
+ },
795
+ "description": "Set the default profile",
796
+ "examples": [
797
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
798
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
799
+ ],
800
+ "flags": {},
801
+ "hasDynamicHelp": false,
802
+ "hiddenAliases": [],
803
+ "id": "profile:set-default",
804
+ "pluginAlias": "@xano/cli",
805
+ "pluginName": "@xano/cli",
806
+ "pluginType": "core",
807
+ "strict": true,
808
+ "enableJsonFlag": false,
809
+ "isESM": true,
810
+ "relativePath": [
811
+ "dist",
812
+ "commands",
813
+ "profile",
814
+ "set-default",
815
+ "index.js"
816
+ ]
817
+ },
808
818
  "profile:project": {
809
819
  "aliases": [],
810
820
  "args": {},
@@ -831,28 +841,18 @@
831
841
  "index.js"
832
842
  ]
833
843
  },
834
- "profile:list": {
844
+ "profile:token": {
835
845
  "aliases": [],
836
846
  "args": {},
837
- "description": "List all available profile configurations",
847
+ "description": "Print the access token for the default profile",
838
848
  "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"
849
+ "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
850
+ "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
842
851
  ],
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
- },
852
+ "flags": {},
853
853
  "hasDynamicHelp": false,
854
854
  "hiddenAliases": [],
855
- "id": "profile:list",
855
+ "id": "profile:token",
856
856
  "pluginAlias": "@xano/cli",
857
857
  "pluginName": "@xano/cli",
858
858
  "pluginType": "core",
@@ -863,7 +863,7 @@
863
863
  "dist",
864
864
  "commands",
865
865
  "profile",
866
- "list",
866
+ "token",
867
867
  "index.js"
868
868
  ]
869
869
  },
@@ -912,18 +912,18 @@
912
912
  "index.js"
913
913
  ]
914
914
  },
915
- "profile:token": {
915
+ "profile:get-default": {
916
916
  "aliases": [],
917
917
  "args": {},
918
- "description": "Print the access token for the default profile",
918
+ "description": "Get the current default profile name",
919
919
  "examples": [
920
- "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
921
- "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
920
+ "$ xano profile:get-default\nproduction\n",
921
+ "$ xano profile:get-default\nNo default profile set\n"
922
922
  ],
923
923
  "flags": {},
924
924
  "hasDynamicHelp": false,
925
925
  "hiddenAliases": [],
926
- "id": "profile:token",
926
+ "id": "profile:get-default",
927
927
  "pluginAlias": "@xano/cli",
928
928
  "pluginName": "@xano/cli",
929
929
  "pluginType": "core",
@@ -934,21 +934,102 @@
934
934
  "dist",
935
935
  "commands",
936
936
  "profile",
937
- "token",
937
+ "get-default",
938
938
  "index.js"
939
939
  ]
940
940
  },
941
- "run:exec": {
941
+ "run:info": {
942
942
  "aliases": [],
943
943
  "args": {},
944
+ "description": "Get information about a XanoScript document (type, inputs, env vars)",
945
+ "examples": [
946
+ "$ xano run info -f script.xs\nDocument Info:\n Type: job\n Inputs:\n - name (string, required)\n - count (number, optional)\n Environment Variables:\n - API_KEY\n - DEBUG\n",
947
+ "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
948
+ "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
949
+ ],
950
+ "flags": {
951
+ "profile": {
952
+ "char": "p",
953
+ "description": "Profile to use for this command",
954
+ "env": "XANO_PROFILE",
955
+ "name": "profile",
956
+ "required": false,
957
+ "hasDynamicHelp": false,
958
+ "multiple": false,
959
+ "type": "option"
960
+ },
961
+ "file": {
962
+ "char": "f",
963
+ "description": "Path or URL to file containing XanoScript code",
964
+ "exclusive": [
965
+ "stdin"
966
+ ],
967
+ "name": "file",
968
+ "required": false,
969
+ "hasDynamicHelp": false,
970
+ "multiple": false,
971
+ "type": "option"
972
+ },
973
+ "stdin": {
974
+ "char": "s",
975
+ "description": "Read XanoScript code from stdin",
976
+ "exclusive": [
977
+ "file"
978
+ ],
979
+ "name": "stdin",
980
+ "required": false,
981
+ "allowNo": false,
982
+ "type": "boolean"
983
+ },
984
+ "output": {
985
+ "char": "o",
986
+ "description": "Output format",
987
+ "name": "output",
988
+ "required": false,
989
+ "default": "summary",
990
+ "hasDynamicHelp": false,
991
+ "multiple": false,
992
+ "options": [
993
+ "summary",
994
+ "json"
995
+ ],
996
+ "type": "option"
997
+ }
998
+ },
999
+ "hasDynamicHelp": false,
1000
+ "hiddenAliases": [],
1001
+ "id": "run:info",
1002
+ "pluginAlias": "@xano/cli",
1003
+ "pluginName": "@xano/cli",
1004
+ "pluginType": "core",
1005
+ "strict": true,
1006
+ "isESM": true,
1007
+ "relativePath": [
1008
+ "dist",
1009
+ "commands",
1010
+ "run",
1011
+ "info",
1012
+ "index.js"
1013
+ ]
1014
+ },
1015
+ "run:exec": {
1016
+ "aliases": [],
1017
+ "args": {
1018
+ "path": {
1019
+ "description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
1020
+ "name": "path",
1021
+ "required": false
1022
+ }
1023
+ },
944
1024
  "description": "Execute XanoScript code (job or service)",
945
1025
  "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",
1026
+ "$ xano run exec script.xs\nExecuted successfully!\n...\n",
1027
+ "$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
1028
+ "$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
948
1029
  "$ 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"
1030
+ "$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
1031
+ "$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
1032
+ "$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
952
1033
  ],
953
1034
  "flags": {
954
1035
  "profile": {
@@ -963,7 +1044,7 @@
963
1044
  },
964
1045
  "file": {
965
1046
  "char": "f",
966
- "description": "Path or URL to file containing XanoScript code",
1047
+ "description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
967
1048
  "exclusive": [
968
1049
  "stdin"
969
1050
  ],
@@ -986,10 +1067,7 @@
986
1067
  },
987
1068
  "edit": {
988
1069
  "char": "e",
989
- "dependsOn": [
990
- "file"
991
- ],
992
- "description": "Open file in editor before running (requires --file)",
1070
+ "description": "Open file in editor before running (requires path argument or --file)",
993
1071
  "name": "edit",
994
1072
  "required": false,
995
1073
  "allowNo": false,
@@ -1043,14 +1121,15 @@
1043
1121
  "index.js"
1044
1122
  ]
1045
1123
  },
1046
- "run:info": {
1124
+ "workspace:list": {
1047
1125
  "aliases": [],
1048
1126
  "args": {},
1049
- "description": "Get information about a XanoScript document (type, inputs, env vars)",
1127
+ "description": "List all workspaces from the Xano Metadata API",
1050
1128
  "examples": [
1051
- "$ xano run info -f script.xs\nDocument Info:\n Type: job\n Inputs:\n - name (string, required)\n - count (number, optional)\n Environment Variables:\n - API_KEY\n - DEBUG\n",
1052
- "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
1053
- "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
1129
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
1130
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
1131
+ "$ 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",
1132
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
1054
1133
  ],
1055
1134
  "flags": {
1056
1135
  "profile": {
@@ -1063,29 +1142,6 @@
1063
1142
  "multiple": false,
1064
1143
  "type": "option"
1065
1144
  },
1066
- "file": {
1067
- "char": "f",
1068
- "description": "Path or URL to file containing XanoScript code",
1069
- "exclusive": [
1070
- "stdin"
1071
- ],
1072
- "name": "file",
1073
- "required": false,
1074
- "hasDynamicHelp": false,
1075
- "multiple": false,
1076
- "type": "option"
1077
- },
1078
- "stdin": {
1079
- "char": "s",
1080
- "description": "Read XanoScript code from stdin",
1081
- "exclusive": [
1082
- "file"
1083
- ],
1084
- "name": "stdin",
1085
- "required": false,
1086
- "allowNo": false,
1087
- "type": "boolean"
1088
- },
1089
1145
  "output": {
1090
1146
  "char": "o",
1091
1147
  "description": "Output format",
@@ -1103,17 +1159,18 @@
1103
1159
  },
1104
1160
  "hasDynamicHelp": false,
1105
1161
  "hiddenAliases": [],
1106
- "id": "run:info",
1162
+ "id": "workspace:list",
1107
1163
  "pluginAlias": "@xano/cli",
1108
1164
  "pluginName": "@xano/cli",
1109
1165
  "pluginType": "core",
1110
1166
  "strict": true,
1167
+ "enableJsonFlag": false,
1111
1168
  "isESM": true,
1112
1169
  "relativePath": [
1113
1170
  "dist",
1114
1171
  "commands",
1115
- "run",
1116
- "info",
1172
+ "workspace",
1173
+ "list",
1117
1174
  "index.js"
1118
1175
  ]
1119
1176
  },
@@ -1197,15 +1254,20 @@
1197
1254
  "index.js"
1198
1255
  ]
1199
1256
  },
1200
- "workspace:list": {
1257
+ "workspace:pull": {
1201
1258
  "aliases": [],
1202
- "args": {},
1203
- "description": "List all workspaces from the Xano Metadata API",
1259
+ "args": {
1260
+ "directory": {
1261
+ "description": "Output directory for pulled documents",
1262
+ "name": "directory",
1263
+ "required": true
1264
+ }
1265
+ },
1266
+ "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
1204
1267
  "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"
1268
+ "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
1269
+ "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
1270
+ "$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
1209
1271
  ],
1210
1272
  "flags": {
1211
1273
  "profile": {
@@ -1218,24 +1280,33 @@
1218
1280
  "multiple": false,
1219
1281
  "type": "option"
1220
1282
  },
1221
- "output": {
1222
- "char": "o",
1223
- "description": "Output format",
1224
- "name": "output",
1283
+ "workspace": {
1284
+ "char": "w",
1285
+ "description": "Workspace ID (optional if set in profile)",
1286
+ "name": "workspace",
1225
1287
  "required": false,
1226
- "default": "summary",
1227
1288
  "hasDynamicHelp": false,
1228
1289
  "multiple": false,
1229
- "options": [
1230
- "summary",
1231
- "json"
1232
- ],
1233
1290
  "type": "option"
1291
+ },
1292
+ "env": {
1293
+ "description": "Include environment variables",
1294
+ "name": "env",
1295
+ "required": false,
1296
+ "allowNo": false,
1297
+ "type": "boolean"
1298
+ },
1299
+ "records": {
1300
+ "description": "Include records",
1301
+ "name": "records",
1302
+ "required": false,
1303
+ "allowNo": false,
1304
+ "type": "boolean"
1234
1305
  }
1235
1306
  },
1236
1307
  "hasDynamicHelp": false,
1237
1308
  "hiddenAliases": [],
1238
- "id": "workspace:list",
1309
+ "id": "workspace:pull",
1239
1310
  "pluginAlias": "@xano/cli",
1240
1311
  "pluginName": "@xano/cli",
1241
1312
  "pluginType": "core",
@@ -1246,7 +1317,60 @@
1246
1317
  "dist",
1247
1318
  "commands",
1248
1319
  "workspace",
1249
- "list",
1320
+ "pull",
1321
+ "index.js"
1322
+ ]
1323
+ },
1324
+ "workspace:push": {
1325
+ "aliases": [],
1326
+ "args": {
1327
+ "directory": {
1328
+ "description": "Directory containing documents to push (as produced by workspace pull)",
1329
+ "name": "directory",
1330
+ "required": true
1331
+ }
1332
+ },
1333
+ "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
1334
+ "examples": [
1335
+ "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
1336
+ "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
1337
+ "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
1338
+ ],
1339
+ "flags": {
1340
+ "profile": {
1341
+ "char": "p",
1342
+ "description": "Profile to use for this command",
1343
+ "env": "XANO_PROFILE",
1344
+ "name": "profile",
1345
+ "required": false,
1346
+ "hasDynamicHelp": false,
1347
+ "multiple": false,
1348
+ "type": "option"
1349
+ },
1350
+ "workspace": {
1351
+ "char": "w",
1352
+ "description": "Workspace ID (optional if set in profile)",
1353
+ "name": "workspace",
1354
+ "required": false,
1355
+ "hasDynamicHelp": false,
1356
+ "multiple": false,
1357
+ "type": "option"
1358
+ }
1359
+ },
1360
+ "hasDynamicHelp": false,
1361
+ "hiddenAliases": [],
1362
+ "id": "workspace:push",
1363
+ "pluginAlias": "@xano/cli",
1364
+ "pluginName": "@xano/cli",
1365
+ "pluginType": "core",
1366
+ "strict": true,
1367
+ "enableJsonFlag": false,
1368
+ "isESM": true,
1369
+ "relativePath": [
1370
+ "dist",
1371
+ "commands",
1372
+ "workspace",
1373
+ "push",
1250
1374
  "index.js"
1251
1375
  ]
1252
1376
  },
@@ -1301,20 +1425,19 @@
1301
1425
  "index.js"
1302
1426
  ]
1303
1427
  },
1304
- "workspace:pull": {
1428
+ "run:env:get": {
1305
1429
  "aliases": [],
1306
1430
  "args": {
1307
- "directory": {
1308
- "description": "Output directory for pulled documents",
1309
- "name": "directory",
1431
+ "name": {
1432
+ "description": "Environment variable name",
1433
+ "name": "name",
1310
1434
  "required": true
1311
1435
  }
1312
1436
  },
1313
- "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
1437
+ "description": "Get an environment variable value",
1314
1438
  "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"
1439
+ "$ xano run env get API_KEY\nmy-secret-api-key\n",
1440
+ "$ xano run env get API_KEY -o json\n{ \"name\": \"API_KEY\", \"value\": \"my-secret-api-key\" }\n"
1318
1441
  ],
1319
1442
  "flags": {
1320
1443
  "profile": {
@@ -1327,61 +1450,56 @@
1327
1450
  "multiple": false,
1328
1451
  "type": "option"
1329
1452
  },
1330
- "workspace": {
1331
- "char": "w",
1332
- "description": "Workspace ID (optional if set in profile)",
1333
- "name": "workspace",
1453
+ "output": {
1454
+ "char": "o",
1455
+ "description": "Output format",
1456
+ "name": "output",
1334
1457
  "required": false,
1458
+ "default": "value",
1335
1459
  "hasDynamicHelp": false,
1336
1460
  "multiple": false,
1461
+ "options": [
1462
+ "value",
1463
+ "json"
1464
+ ],
1337
1465
  "type": "option"
1338
- },
1339
- "env": {
1340
- "description": "Include environment variables",
1341
- "name": "env",
1342
- "required": false,
1343
- "allowNo": false,
1344
- "type": "boolean"
1345
- },
1346
- "records": {
1347
- "description": "Include records",
1348
- "name": "records",
1349
- "required": false,
1350
- "allowNo": false,
1351
- "type": "boolean"
1352
1466
  }
1353
1467
  },
1354
1468
  "hasDynamicHelp": false,
1355
1469
  "hiddenAliases": [],
1356
- "id": "workspace:pull",
1470
+ "id": "run:env:get",
1357
1471
  "pluginAlias": "@xano/cli",
1358
1472
  "pluginName": "@xano/cli",
1359
1473
  "pluginType": "core",
1360
1474
  "strict": true,
1361
- "enableJsonFlag": false,
1362
1475
  "isESM": true,
1363
1476
  "relativePath": [
1364
1477
  "dist",
1365
1478
  "commands",
1366
- "workspace",
1367
- "pull",
1479
+ "run",
1480
+ "env",
1481
+ "get",
1368
1482
  "index.js"
1369
1483
  ]
1370
1484
  },
1371
- "workspace:push": {
1485
+ "run:env:set": {
1372
1486
  "aliases": [],
1373
1487
  "args": {
1374
- "directory": {
1375
- "description": "Directory containing documents to push (as produced by workspace pull)",
1376
- "name": "directory",
1488
+ "name": {
1489
+ "description": "Environment variable name",
1490
+ "name": "name",
1491
+ "required": true
1492
+ },
1493
+ "value": {
1494
+ "description": "Environment variable value",
1495
+ "name": "value",
1377
1496
  "required": true
1378
1497
  }
1379
1498
  },
1380
- "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
1499
+ "description": "Set an environment variable",
1381
1500
  "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"
1501
+ "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
1502
+ "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
1385
1503
  ],
1386
1504
  "flags": {
1387
1505
  "profile": {
@@ -1393,47 +1511,38 @@
1393
1511
  "hasDynamicHelp": false,
1394
1512
  "multiple": false,
1395
1513
  "type": "option"
1396
- },
1397
- "workspace": {
1398
- "char": "w",
1399
- "description": "Workspace ID (optional if set in profile)",
1400
- "name": "workspace",
1401
- "required": false,
1402
- "hasDynamicHelp": false,
1403
- "multiple": false,
1404
- "type": "option"
1405
1514
  }
1406
1515
  },
1407
1516
  "hasDynamicHelp": false,
1408
1517
  "hiddenAliases": [],
1409
- "id": "workspace:push",
1518
+ "id": "run:env:set",
1410
1519
  "pluginAlias": "@xano/cli",
1411
1520
  "pluginName": "@xano/cli",
1412
1521
  "pluginType": "core",
1413
1522
  "strict": true,
1414
- "enableJsonFlag": false,
1415
1523
  "isESM": true,
1416
1524
  "relativePath": [
1417
1525
  "dist",
1418
1526
  "commands",
1419
- "workspace",
1420
- "push",
1527
+ "run",
1528
+ "env",
1529
+ "set",
1421
1530
  "index.js"
1422
1531
  ]
1423
1532
  },
1424
- "run:env:get": {
1533
+ "run:sink:get": {
1425
1534
  "aliases": [],
1426
1535
  "args": {
1427
- "name": {
1428
- "description": "Environment variable name",
1429
- "name": "name",
1536
+ "sessionId": {
1537
+ "description": "Session ID",
1538
+ "name": "sessionId",
1430
1539
  "required": true
1431
1540
  }
1432
1541
  },
1433
- "description": "Get an environment variable value",
1542
+ "description": "Get sink data for a completed session",
1434
1543
  "examples": [
1435
- "$ xano run env get API_KEY\nmy-secret-api-key\n",
1436
- "$ xano run env get API_KEY -o json\n{ \"name\": \"API_KEY\", \"value\": \"my-secret-api-key\" }\n"
1544
+ "$ 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",
1545
+ "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
1437
1546
  ],
1438
1547
  "flags": {
1439
1548
  "profile": {
@@ -1451,11 +1560,11 @@
1451
1560
  "description": "Output format",
1452
1561
  "name": "output",
1453
1562
  "required": false,
1454
- "default": "value",
1563
+ "default": "summary",
1455
1564
  "hasDynamicHelp": false,
1456
1565
  "multiple": false,
1457
1566
  "options": [
1458
- "value",
1567
+ "summary",
1459
1568
  "json"
1460
1569
  ],
1461
1570
  "type": "option"
@@ -1463,7 +1572,7 @@
1463
1572
  },
1464
1573
  "hasDynamicHelp": false,
1465
1574
  "hiddenAliases": [],
1466
- "id": "run:env:get",
1575
+ "id": "run:sink:get",
1467
1576
  "pluginAlias": "@xano/cli",
1468
1577
  "pluginName": "@xano/cli",
1469
1578
  "pluginType": "core",
@@ -1473,7 +1582,7 @@
1473
1582
  "dist",
1474
1583
  "commands",
1475
1584
  "run",
1476
- "env",
1585
+ "sink",
1477
1586
  "get",
1478
1587
  "index.js"
1479
1588
  ]
@@ -1651,24 +1760,20 @@
1651
1760
  "index.js"
1652
1761
  ]
1653
1762
  },
1654
- "run:env:set": {
1763
+ "run:projects:update": {
1655
1764
  "aliases": [],
1656
1765
  "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",
1766
+ "projectId": {
1767
+ "description": "Project ID to update",
1768
+ "name": "projectId",
1665
1769
  "required": true
1666
1770
  }
1667
1771
  },
1668
- "description": "Set an environment variable",
1772
+ "description": "Update a project",
1669
1773
  "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"
1774
+ "$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
1775
+ "$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
1776
+ "$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
1672
1777
  ],
1673
1778
  "flags": {
1674
1779
  "profile": {
@@ -1680,11 +1785,43 @@
1680
1785
  "hasDynamicHelp": false,
1681
1786
  "multiple": false,
1682
1787
  "type": "option"
1788
+ },
1789
+ "name": {
1790
+ "char": "n",
1791
+ "description": "New project name",
1792
+ "name": "name",
1793
+ "required": false,
1794
+ "hasDynamicHelp": false,
1795
+ "multiple": false,
1796
+ "type": "option"
1797
+ },
1798
+ "description": {
1799
+ "char": "d",
1800
+ "description": "New project description",
1801
+ "name": "description",
1802
+ "required": false,
1803
+ "hasDynamicHelp": false,
1804
+ "multiple": false,
1805
+ "type": "option"
1806
+ },
1807
+ "output": {
1808
+ "char": "o",
1809
+ "description": "Output format",
1810
+ "name": "output",
1811
+ "required": false,
1812
+ "default": "summary",
1813
+ "hasDynamicHelp": false,
1814
+ "multiple": false,
1815
+ "options": [
1816
+ "summary",
1817
+ "json"
1818
+ ],
1819
+ "type": "option"
1683
1820
  }
1684
1821
  },
1685
1822
  "hasDynamicHelp": false,
1686
1823
  "hiddenAliases": [],
1687
- "id": "run:env:set",
1824
+ "id": "run:projects:update",
1688
1825
  "pluginAlias": "@xano/cli",
1689
1826
  "pluginName": "@xano/cli",
1690
1827
  "pluginType": "core",
@@ -1694,8 +1831,8 @@
1694
1831
  "dist",
1695
1832
  "commands",
1696
1833
  "run",
1697
- "env",
1698
- "set",
1834
+ "projects",
1835
+ "update",
1699
1836
  "index.js"
1700
1837
  ]
1701
1838
  },
@@ -1750,21 +1887,20 @@
1750
1887
  "index.js"
1751
1888
  ]
1752
1889
  },
1753
- "run:projects:update": {
1890
+ "run:sessions:delete": {
1754
1891
  "aliases": [],
1755
1892
  "args": {
1756
- "projectId": {
1757
- "description": "Project ID to update",
1758
- "name": "projectId",
1893
+ "sessionId": {
1894
+ "description": "Session ID",
1895
+ "name": "sessionId",
1759
1896
  "required": true
1760
1897
  }
1761
1898
  },
1762
- "description": "Update a project",
1899
+ "description": "Delete a session",
1763
1900
  "examples": [
1764
- "$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
1765
- "$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
1766
- "$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
1767
- ],
1901
+ "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
1902
+ "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
1903
+ ],
1768
1904
  "flags": {
1769
1905
  "profile": {
1770
1906
  "char": "p",
@@ -1776,42 +1912,18 @@
1776
1912
  "multiple": false,
1777
1913
  "type": "option"
1778
1914
  },
1779
- "name": {
1780
- "char": "n",
1781
- "description": "New project name",
1782
- "name": "name",
1783
- "required": false,
1784
- "hasDynamicHelp": false,
1785
- "multiple": false,
1786
- "type": "option"
1787
- },
1788
- "description": {
1789
- "char": "d",
1790
- "description": "New project description",
1791
- "name": "description",
1792
- "required": false,
1793
- "hasDynamicHelp": false,
1794
- "multiple": false,
1795
- "type": "option"
1796
- },
1797
- "output": {
1798
- "char": "o",
1799
- "description": "Output format",
1800
- "name": "output",
1915
+ "force": {
1916
+ "char": "f",
1917
+ "description": "Skip confirmation prompt",
1918
+ "name": "force",
1801
1919
  "required": false,
1802
- "default": "summary",
1803
- "hasDynamicHelp": false,
1804
- "multiple": false,
1805
- "options": [
1806
- "summary",
1807
- "json"
1808
- ],
1809
- "type": "option"
1920
+ "allowNo": false,
1921
+ "type": "boolean"
1810
1922
  }
1811
1923
  },
1812
1924
  "hasDynamicHelp": false,
1813
1925
  "hiddenAliases": [],
1814
- "id": "run:projects:update",
1926
+ "id": "run:sessions:delete",
1815
1927
  "pluginAlias": "@xano/cli",
1816
1928
  "pluginName": "@xano/cli",
1817
1929
  "pluginType": "core",
@@ -1821,24 +1933,18 @@
1821
1933
  "dist",
1822
1934
  "commands",
1823
1935
  "run",
1824
- "projects",
1825
- "update",
1936
+ "sessions",
1937
+ "delete",
1826
1938
  "index.js"
1827
1939
  ]
1828
1940
  },
1829
- "run:secrets:delete": {
1941
+ "run:sessions:list": {
1830
1942
  "aliases": [],
1831
- "args": {
1832
- "name": {
1833
- "description": "Secret name",
1834
- "name": "name",
1835
- "required": true
1836
- }
1837
- },
1838
- "description": "Delete a secret",
1943
+ "args": {},
1944
+ "description": "List all sessions for the project",
1839
1945
  "examples": [
1840
- "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
1841
- "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
1946
+ "$ 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",
1947
+ "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
1842
1948
  ],
1843
1949
  "flags": {
1844
1950
  "profile": {
@@ -1851,18 +1957,24 @@
1851
1957
  "multiple": false,
1852
1958
  "type": "option"
1853
1959
  },
1854
- "force": {
1855
- "char": "f",
1856
- "description": "Skip confirmation prompt",
1857
- "name": "force",
1960
+ "output": {
1961
+ "char": "o",
1962
+ "description": "Output format",
1963
+ "name": "output",
1858
1964
  "required": false,
1859
- "allowNo": false,
1860
- "type": "boolean"
1965
+ "default": "table",
1966
+ "hasDynamicHelp": false,
1967
+ "multiple": false,
1968
+ "options": [
1969
+ "table",
1970
+ "json"
1971
+ ],
1972
+ "type": "option"
1861
1973
  }
1862
1974
  },
1863
1975
  "hasDynamicHelp": false,
1864
1976
  "hiddenAliases": [],
1865
- "id": "run:secrets:delete",
1977
+ "id": "run:sessions:list",
1866
1978
  "pluginAlias": "@xano/cli",
1867
1979
  "pluginName": "@xano/cli",
1868
1980
  "pluginType": "core",
@@ -1872,24 +1984,24 @@
1872
1984
  "dist",
1873
1985
  "commands",
1874
1986
  "run",
1875
- "secrets",
1876
- "delete",
1987
+ "sessions",
1988
+ "list",
1877
1989
  "index.js"
1878
1990
  ]
1879
1991
  },
1880
- "run:secrets:get": {
1992
+ "run:sessions:get": {
1881
1993
  "aliases": [],
1882
1994
  "args": {
1883
- "name": {
1884
- "description": "Secret name",
1885
- "name": "name",
1995
+ "sessionId": {
1996
+ "description": "Session ID",
1997
+ "name": "sessionId",
1886
1998
  "required": true
1887
1999
  }
1888
2000
  },
1889
- "description": "Get a secret value",
2001
+ "description": "Get session details",
1890
2002
  "examples": [
1891
- "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
1892
- "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
2003
+ "$ 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",
2004
+ "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
1893
2005
  ],
1894
2006
  "flags": {
1895
2007
  "profile": {
@@ -1907,11 +2019,11 @@
1907
2019
  "description": "Output format",
1908
2020
  "name": "output",
1909
2021
  "required": false,
1910
- "default": "value",
2022
+ "default": "summary",
1911
2023
  "hasDynamicHelp": false,
1912
2024
  "multiple": false,
1913
2025
  "options": [
1914
- "value",
2026
+ "summary",
1915
2027
  "json"
1916
2028
  ],
1917
2029
  "type": "option"
@@ -1919,7 +2031,7 @@
1919
2031
  },
1920
2032
  "hasDynamicHelp": false,
1921
2033
  "hiddenAliases": [],
1922
- "id": "run:secrets:get",
2034
+ "id": "run:sessions:get",
1923
2035
  "pluginAlias": "@xano/cli",
1924
2036
  "pluginName": "@xano/cli",
1925
2037
  "pluginType": "core",
@@ -1929,24 +2041,25 @@
1929
2041
  "dist",
1930
2042
  "commands",
1931
2043
  "run",
1932
- "secrets",
2044
+ "sessions",
1933
2045
  "get",
1934
2046
  "index.js"
1935
2047
  ]
1936
2048
  },
1937
- "run:secrets:set": {
2049
+ "static_host:build:create": {
1938
2050
  "aliases": [],
1939
2051
  "args": {
1940
- "name": {
1941
- "description": "Secret name",
1942
- "name": "name",
2052
+ "static_host": {
2053
+ "description": "Static Host name",
2054
+ "name": "static_host",
1943
2055
  "required": true
1944
2056
  }
1945
2057
  },
1946
- "description": "Set a secret",
2058
+ "description": "Create a new build for a static host",
1947
2059
  "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"
2060
+ "$ 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",
2061
+ "$ 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",
2062
+ "$ 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"
1950
2063
  ],
1951
2064
  "flags": {
1952
2065
  "profile": {
@@ -1959,62 +2072,95 @@
1959
2072
  "multiple": false,
1960
2073
  "type": "option"
1961
2074
  },
1962
- "type": {
1963
- "char": "t",
1964
- "description": "Secret type",
1965
- "name": "type",
2075
+ "workspace": {
2076
+ "char": "w",
2077
+ "description": "Workspace ID (optional if set in profile)",
2078
+ "name": "workspace",
2079
+ "required": false,
2080
+ "hasDynamicHelp": false,
2081
+ "multiple": false,
2082
+ "type": "option"
2083
+ },
2084
+ "file": {
2085
+ "char": "f",
2086
+ "description": "Path to zip file to upload",
2087
+ "name": "file",
1966
2088
  "required": true,
1967
2089
  "hasDynamicHelp": false,
1968
2090
  "multiple": false,
1969
- "options": [
1970
- "dockerconfigjson",
1971
- "service-account-token"
1972
- ],
1973
2091
  "type": "option"
1974
2092
  },
1975
- "value": {
1976
- "char": "v",
1977
- "description": "Secret value",
1978
- "name": "value",
2093
+ "name": {
2094
+ "char": "n",
2095
+ "description": "Build name",
2096
+ "name": "name",
1979
2097
  "required": true,
1980
2098
  "hasDynamicHelp": false,
1981
2099
  "multiple": false,
1982
2100
  "type": "option"
1983
2101
  },
1984
- "repo": {
1985
- "char": "r",
1986
- "description": "Repository (for dockerconfigjson type)",
1987
- "name": "repo",
2102
+ "description": {
2103
+ "char": "d",
2104
+ "description": "Build description",
2105
+ "name": "description",
2106
+ "required": false,
2107
+ "hasDynamicHelp": false,
2108
+ "multiple": false,
2109
+ "type": "option"
2110
+ },
2111
+ "output": {
2112
+ "char": "o",
2113
+ "description": "Output format",
2114
+ "name": "output",
1988
2115
  "required": false,
2116
+ "default": "summary",
1989
2117
  "hasDynamicHelp": false,
1990
2118
  "multiple": false,
2119
+ "options": [
2120
+ "summary",
2121
+ "json"
2122
+ ],
1991
2123
  "type": "option"
1992
2124
  }
1993
2125
  },
1994
2126
  "hasDynamicHelp": false,
1995
2127
  "hiddenAliases": [],
1996
- "id": "run:secrets:set",
2128
+ "id": "static_host:build:create",
1997
2129
  "pluginAlias": "@xano/cli",
1998
2130
  "pluginName": "@xano/cli",
1999
2131
  "pluginType": "core",
2000
2132
  "strict": true,
2133
+ "enableJsonFlag": false,
2001
2134
  "isESM": true,
2002
2135
  "relativePath": [
2003
2136
  "dist",
2004
2137
  "commands",
2005
- "run",
2006
- "secrets",
2007
- "set",
2138
+ "static_host",
2139
+ "build",
2140
+ "create",
2008
2141
  "index.js"
2009
2142
  ]
2010
2143
  },
2011
- "run:secrets:list": {
2144
+ "static_host:build:get": {
2012
2145
  "aliases": [],
2013
- "args": {},
2014
- "description": "List all secret keys",
2146
+ "args": {
2147
+ "static_host": {
2148
+ "description": "Static Host name",
2149
+ "name": "static_host",
2150
+ "required": true
2151
+ },
2152
+ "build_id": {
2153
+ "description": "Build ID",
2154
+ "name": "build_id",
2155
+ "required": true
2156
+ }
2157
+ },
2158
+ "description": "Get details of a specific build for a static host",
2015
2159
  "examples": [
2016
- "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2017
- "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2160
+ "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2161
+ "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2162
+ "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
2163
+ "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
2018
2164
  ],
2019
2165
  "flags": {
2020
2166
  "profile": {
@@ -2027,16 +2173,25 @@
2027
2173
  "multiple": false,
2028
2174
  "type": "option"
2029
2175
  },
2176
+ "workspace": {
2177
+ "char": "w",
2178
+ "description": "Workspace ID (optional if set in profile)",
2179
+ "name": "workspace",
2180
+ "required": false,
2181
+ "hasDynamicHelp": false,
2182
+ "multiple": false,
2183
+ "type": "option"
2184
+ },
2030
2185
  "output": {
2031
2186
  "char": "o",
2032
2187
  "description": "Output format",
2033
2188
  "name": "output",
2034
2189
  "required": false,
2035
- "default": "table",
2190
+ "default": "summary",
2036
2191
  "hasDynamicHelp": false,
2037
2192
  "multiple": false,
2038
2193
  "options": [
2039
- "table",
2194
+ "summary",
2040
2195
  "json"
2041
2196
  ],
2042
2197
  "type": "option"
@@ -2044,22 +2199,23 @@
2044
2199
  },
2045
2200
  "hasDynamicHelp": false,
2046
2201
  "hiddenAliases": [],
2047
- "id": "run:secrets:list",
2202
+ "id": "static_host:build:get",
2048
2203
  "pluginAlias": "@xano/cli",
2049
2204
  "pluginName": "@xano/cli",
2050
2205
  "pluginType": "core",
2051
2206
  "strict": true,
2207
+ "enableJsonFlag": false,
2052
2208
  "isESM": true,
2053
2209
  "relativePath": [
2054
2210
  "dist",
2055
2211
  "commands",
2056
- "run",
2057
- "secrets",
2058
- "list",
2212
+ "static_host",
2213
+ "build",
2214
+ "get",
2059
2215
  "index.js"
2060
2216
  ]
2061
2217
  },
2062
- "run:sessions:delete": {
2218
+ "run:sessions:start": {
2063
2219
  "aliases": [],
2064
2220
  "args": {
2065
2221
  "sessionId": {
@@ -2068,10 +2224,10 @@
2068
2224
  "required": true
2069
2225
  }
2070
2226
  },
2071
- "description": "Delete a session",
2227
+ "description": "Start a session",
2072
2228
  "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"
2229
+ "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
2230
+ "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
2075
2231
  ],
2076
2232
  "flags": {
2077
2233
  "profile": {
@@ -2084,18 +2240,24 @@
2084
2240
  "multiple": false,
2085
2241
  "type": "option"
2086
2242
  },
2087
- "force": {
2088
- "char": "f",
2089
- "description": "Skip confirmation prompt",
2090
- "name": "force",
2243
+ "output": {
2244
+ "char": "o",
2245
+ "description": "Output format",
2246
+ "name": "output",
2091
2247
  "required": false,
2092
- "allowNo": false,
2093
- "type": "boolean"
2248
+ "default": "summary",
2249
+ "hasDynamicHelp": false,
2250
+ "multiple": false,
2251
+ "options": [
2252
+ "summary",
2253
+ "json"
2254
+ ],
2255
+ "type": "option"
2094
2256
  }
2095
2257
  },
2096
2258
  "hasDynamicHelp": false,
2097
2259
  "hiddenAliases": [],
2098
- "id": "run:sessions:delete",
2260
+ "id": "run:sessions:start",
2099
2261
  "pluginAlias": "@xano/cli",
2100
2262
  "pluginName": "@xano/cli",
2101
2263
  "pluginType": "core",
@@ -2106,11 +2268,11 @@
2106
2268
  "commands",
2107
2269
  "run",
2108
2270
  "sessions",
2109
- "delete",
2271
+ "start",
2110
2272
  "index.js"
2111
2273
  ]
2112
2274
  },
2113
- "run:sessions:start": {
2275
+ "run:sessions:stop": {
2114
2276
  "aliases": [],
2115
2277
  "args": {
2116
2278
  "sessionId": {
@@ -2119,10 +2281,10 @@
2119
2281
  "required": true
2120
2282
  }
2121
2283
  },
2122
- "description": "Start a session",
2284
+ "description": "Stop a session",
2123
2285
  "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"
2286
+ "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
2287
+ "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
2126
2288
  ],
2127
2289
  "flags": {
2128
2290
  "profile": {
@@ -2152,7 +2314,7 @@
2152
2314
  },
2153
2315
  "hasDynamicHelp": false,
2154
2316
  "hiddenAliases": [],
2155
- "id": "run:sessions:start",
2317
+ "id": "run:sessions:stop",
2156
2318
  "pluginAlias": "@xano/cli",
2157
2319
  "pluginName": "@xano/cli",
2158
2320
  "pluginType": "core",
@@ -2163,17 +2325,25 @@
2163
2325
  "commands",
2164
2326
  "run",
2165
2327
  "sessions",
2166
- "start",
2328
+ "stop",
2167
2329
  "index.js"
2168
2330
  ]
2169
2331
  },
2170
- "run:sessions:list": {
2332
+ "static_host:build:list": {
2171
2333
  "aliases": [],
2172
- "args": {},
2173
- "description": "List all sessions for the project",
2334
+ "args": {
2335
+ "static_host": {
2336
+ "description": "Static Host name",
2337
+ "name": "static_host",
2338
+ "required": true
2339
+ }
2340
+ },
2341
+ "description": "List all builds for a static host",
2174
2342
  "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"
2343
+ "$ 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",
2344
+ "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
2345
+ "$ 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",
2346
+ "$ 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"
2177
2347
  ],
2178
2348
  "flags": {
2179
2349
  "profile": {
@@ -2186,58 +2356,10 @@
2186
2356
  "multiple": false,
2187
2357
  "type": "option"
2188
2358
  },
2189
- "output": {
2190
- "char": "o",
2191
- "description": "Output format",
2192
- "name": "output",
2193
- "required": false,
2194
- "default": "table",
2195
- "hasDynamicHelp": false,
2196
- "multiple": false,
2197
- "options": [
2198
- "table",
2199
- "json"
2200
- ],
2201
- "type": "option"
2202
- }
2203
- },
2204
- "hasDynamicHelp": false,
2205
- "hiddenAliases": [],
2206
- "id": "run:sessions:list",
2207
- "pluginAlias": "@xano/cli",
2208
- "pluginName": "@xano/cli",
2209
- "pluginType": "core",
2210
- "strict": true,
2211
- "isESM": true,
2212
- "relativePath": [
2213
- "dist",
2214
- "commands",
2215
- "run",
2216
- "sessions",
2217
- "list",
2218
- "index.js"
2219
- ]
2220
- },
2221
- "run:sessions:get": {
2222
- "aliases": [],
2223
- "args": {
2224
- "sessionId": {
2225
- "description": "Session ID",
2226
- "name": "sessionId",
2227
- "required": true
2228
- }
2229
- },
2230
- "description": "Get session details",
2231
- "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"
2234
- ],
2235
- "flags": {
2236
- "profile": {
2237
- "char": "p",
2238
- "description": "Profile to use for this command",
2239
- "env": "XANO_PROFILE",
2240
- "name": "profile",
2359
+ "workspace": {
2360
+ "char": "w",
2361
+ "description": "Workspace ID (optional if set in profile)",
2362
+ "name": "workspace",
2241
2363
  "required": false,
2242
2364
  "hasDynamicHelp": false,
2243
2365
  "multiple": false,
@@ -2256,95 +2378,57 @@
2256
2378
  "json"
2257
2379
  ],
2258
2380
  "type": "option"
2259
- }
2260
- },
2261
- "hasDynamicHelp": false,
2262
- "hiddenAliases": [],
2263
- "id": "run:sessions:get",
2264
- "pluginAlias": "@xano/cli",
2265
- "pluginName": "@xano/cli",
2266
- "pluginType": "core",
2267
- "strict": true,
2268
- "isESM": true,
2269
- "relativePath": [
2270
- "dist",
2271
- "commands",
2272
- "run",
2273
- "sessions",
2274
- "get",
2275
- "index.js"
2276
- ]
2277
- },
2278
- "run:sessions:stop": {
2279
- "aliases": [],
2280
- "args": {
2281
- "sessionId": {
2282
- "description": "Session ID",
2283
- "name": "sessionId",
2284
- "required": true
2285
- }
2286
- },
2287
- "description": "Stop a session",
2288
- "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"
2291
- ],
2292
- "flags": {
2293
- "profile": {
2294
- "char": "p",
2295
- "description": "Profile to use for this command",
2296
- "env": "XANO_PROFILE",
2297
- "name": "profile",
2381
+ },
2382
+ "page": {
2383
+ "description": "Page number for pagination",
2384
+ "name": "page",
2298
2385
  "required": false,
2386
+ "default": 1,
2299
2387
  "hasDynamicHelp": false,
2300
2388
  "multiple": false,
2301
2389
  "type": "option"
2302
2390
  },
2303
- "output": {
2304
- "char": "o",
2305
- "description": "Output format",
2306
- "name": "output",
2391
+ "per_page": {
2392
+ "description": "Number of results per page",
2393
+ "name": "per_page",
2307
2394
  "required": false,
2308
- "default": "summary",
2395
+ "default": 50,
2309
2396
  "hasDynamicHelp": false,
2310
2397
  "multiple": false,
2311
- "options": [
2312
- "summary",
2313
- "json"
2314
- ],
2315
2398
  "type": "option"
2316
2399
  }
2317
2400
  },
2318
2401
  "hasDynamicHelp": false,
2319
2402
  "hiddenAliases": [],
2320
- "id": "run:sessions:stop",
2403
+ "id": "static_host:build:list",
2321
2404
  "pluginAlias": "@xano/cli",
2322
2405
  "pluginName": "@xano/cli",
2323
2406
  "pluginType": "core",
2324
2407
  "strict": true,
2408
+ "enableJsonFlag": false,
2325
2409
  "isESM": true,
2326
2410
  "relativePath": [
2327
2411
  "dist",
2328
2412
  "commands",
2329
- "run",
2330
- "sessions",
2331
- "stop",
2413
+ "static_host",
2414
+ "build",
2415
+ "list",
2332
2416
  "index.js"
2333
2417
  ]
2334
2418
  },
2335
- "run:sink:get": {
2419
+ "run:secrets:delete": {
2336
2420
  "aliases": [],
2337
2421
  "args": {
2338
- "sessionId": {
2339
- "description": "Session ID",
2340
- "name": "sessionId",
2422
+ "name": {
2423
+ "description": "Secret name",
2424
+ "name": "name",
2341
2425
  "required": true
2342
2426
  }
2343
2427
  },
2344
- "description": "Get sink data for a completed session",
2428
+ "description": "Delete a secret",
2345
2429
  "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"
2430
+ "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
2431
+ "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
2348
2432
  ],
2349
2433
  "flags": {
2350
2434
  "profile": {
@@ -2357,24 +2441,18 @@
2357
2441
  "multiple": false,
2358
2442
  "type": "option"
2359
2443
  },
2360
- "output": {
2361
- "char": "o",
2362
- "description": "Output format",
2363
- "name": "output",
2444
+ "force": {
2445
+ "char": "f",
2446
+ "description": "Skip confirmation prompt",
2447
+ "name": "force",
2364
2448
  "required": false,
2365
- "default": "summary",
2366
- "hasDynamicHelp": false,
2367
- "multiple": false,
2368
- "options": [
2369
- "summary",
2370
- "json"
2371
- ],
2372
- "type": "option"
2449
+ "allowNo": false,
2450
+ "type": "boolean"
2373
2451
  }
2374
2452
  },
2375
2453
  "hasDynamicHelp": false,
2376
2454
  "hiddenAliases": [],
2377
- "id": "run:sink:get",
2455
+ "id": "run:secrets:delete",
2378
2456
  "pluginAlias": "@xano/cli",
2379
2457
  "pluginName": "@xano/cli",
2380
2458
  "pluginType": "core",
@@ -2384,25 +2462,24 @@
2384
2462
  "dist",
2385
2463
  "commands",
2386
2464
  "run",
2387
- "sink",
2388
- "get",
2465
+ "secrets",
2466
+ "delete",
2389
2467
  "index.js"
2390
2468
  ]
2391
2469
  },
2392
- "static_host:build:create": {
2470
+ "run:secrets:get": {
2393
2471
  "aliases": [],
2394
2472
  "args": {
2395
- "static_host": {
2396
- "description": "Static Host name",
2397
- "name": "static_host",
2473
+ "name": {
2474
+ "description": "Secret name",
2475
+ "name": "name",
2398
2476
  "required": true
2399
2477
  }
2400
2478
  },
2401
- "description": "Create a new build for a static host",
2479
+ "description": "Get a secret value",
2402
2480
  "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"
2481
+ "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
2482
+ "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
2406
2483
  ],
2407
2484
  "flags": {
2408
2485
  "profile": {
@@ -2415,52 +2492,16 @@
2415
2492
  "multiple": false,
2416
2493
  "type": "option"
2417
2494
  },
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
2495
  "output": {
2455
2496
  "char": "o",
2456
2497
  "description": "Output format",
2457
2498
  "name": "output",
2458
2499
  "required": false,
2459
- "default": "summary",
2500
+ "default": "value",
2460
2501
  "hasDynamicHelp": false,
2461
2502
  "multiple": false,
2462
2503
  "options": [
2463
- "summary",
2504
+ "value",
2464
2505
  "json"
2465
2506
  ],
2466
2507
  "type": "option"
@@ -2468,42 +2509,28 @@
2468
2509
  },
2469
2510
  "hasDynamicHelp": false,
2470
2511
  "hiddenAliases": [],
2471
- "id": "static_host:build:create",
2512
+ "id": "run:secrets:get",
2472
2513
  "pluginAlias": "@xano/cli",
2473
2514
  "pluginName": "@xano/cli",
2474
2515
  "pluginType": "core",
2475
2516
  "strict": true,
2476
- "enableJsonFlag": false,
2477
2517
  "isESM": true,
2478
2518
  "relativePath": [
2479
2519
  "dist",
2480
2520
  "commands",
2481
- "static_host",
2482
- "build",
2483
- "create",
2521
+ "run",
2522
+ "secrets",
2523
+ "get",
2484
2524
  "index.js"
2485
2525
  ]
2486
2526
  },
2487
- "static_host:build:get": {
2527
+ "run:secrets:list": {
2488
2528
  "aliases": [],
2489
- "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",
2498
- "required": true
2499
- }
2500
- },
2501
- "description": "Get details of a specific build for a static host",
2529
+ "args": {},
2530
+ "description": "List all secret keys",
2502
2531
  "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"
2532
+ "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2533
+ "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2507
2534
  ],
2508
2535
  "flags": {
2509
2536
  "profile": {
@@ -2516,25 +2543,16 @@
2516
2543
  "multiple": false,
2517
2544
  "type": "option"
2518
2545
  },
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
2546
  "output": {
2529
2547
  "char": "o",
2530
2548
  "description": "Output format",
2531
2549
  "name": "output",
2532
2550
  "required": false,
2533
- "default": "summary",
2551
+ "default": "table",
2534
2552
  "hasDynamicHelp": false,
2535
2553
  "multiple": false,
2536
2554
  "options": [
2537
- "summary",
2555
+ "table",
2538
2556
  "json"
2539
2557
  ],
2540
2558
  "type": "option"
@@ -2542,37 +2560,34 @@
2542
2560
  },
2543
2561
  "hasDynamicHelp": false,
2544
2562
  "hiddenAliases": [],
2545
- "id": "static_host:build:get",
2563
+ "id": "run:secrets:list",
2546
2564
  "pluginAlias": "@xano/cli",
2547
2565
  "pluginName": "@xano/cli",
2548
2566
  "pluginType": "core",
2549
2567
  "strict": true,
2550
- "enableJsonFlag": false,
2551
2568
  "isESM": true,
2552
2569
  "relativePath": [
2553
2570
  "dist",
2554
2571
  "commands",
2555
- "static_host",
2556
- "build",
2557
- "get",
2572
+ "run",
2573
+ "secrets",
2574
+ "list",
2558
2575
  "index.js"
2559
2576
  ]
2560
2577
  },
2561
- "static_host:build:list": {
2578
+ "run:secrets:set": {
2562
2579
  "aliases": [],
2563
2580
  "args": {
2564
- "static_host": {
2565
- "description": "Static Host name",
2566
- "name": "static_host",
2581
+ "name": {
2582
+ "description": "Secret name",
2583
+ "name": "name",
2567
2584
  "required": true
2568
2585
  }
2569
2586
  },
2570
- "description": "List all builds for a static host",
2587
+ "description": "Set a secret",
2571
2588
  "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"
2589
+ "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
2590
+ "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
2576
2591
  ],
2577
2592
  "flags": {
2578
2593
  "profile": {
@@ -2585,43 +2600,33 @@
2585
2600
  "multiple": false,
2586
2601
  "type": "option"
2587
2602
  },
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
- "output": {
2598
- "char": "o",
2599
- "description": "Output format",
2600
- "name": "output",
2601
- "required": false,
2602
- "default": "summary",
2603
+ "type": {
2604
+ "char": "t",
2605
+ "description": "Secret type",
2606
+ "name": "type",
2607
+ "required": true,
2603
2608
  "hasDynamicHelp": false,
2604
2609
  "multiple": false,
2605
2610
  "options": [
2606
- "summary",
2607
- "json"
2611
+ "dockerconfigjson",
2612
+ "service-account-token"
2608
2613
  ],
2609
2614
  "type": "option"
2610
2615
  },
2611
- "page": {
2612
- "description": "Page number for pagination",
2613
- "name": "page",
2614
- "required": false,
2615
- "default": 1,
2616
+ "value": {
2617
+ "char": "v",
2618
+ "description": "Secret value",
2619
+ "name": "value",
2620
+ "required": true,
2616
2621
  "hasDynamicHelp": false,
2617
2622
  "multiple": false,
2618
2623
  "type": "option"
2619
2624
  },
2620
- "per_page": {
2621
- "description": "Number of results per page",
2622
- "name": "per_page",
2625
+ "repo": {
2626
+ "char": "r",
2627
+ "description": "Repository (for dockerconfigjson type)",
2628
+ "name": "repo",
2623
2629
  "required": false,
2624
- "default": 50,
2625
2630
  "hasDynamicHelp": false,
2626
2631
  "multiple": false,
2627
2632
  "type": "option"
@@ -2629,22 +2634,21 @@
2629
2634
  },
2630
2635
  "hasDynamicHelp": false,
2631
2636
  "hiddenAliases": [],
2632
- "id": "static_host:build:list",
2637
+ "id": "run:secrets:set",
2633
2638
  "pluginAlias": "@xano/cli",
2634
2639
  "pluginName": "@xano/cli",
2635
2640
  "pluginType": "core",
2636
2641
  "strict": true,
2637
- "enableJsonFlag": false,
2638
2642
  "isESM": true,
2639
2643
  "relativePath": [
2640
2644
  "dist",
2641
2645
  "commands",
2642
- "static_host",
2643
- "build",
2644
- "list",
2646
+ "run",
2647
+ "secrets",
2648
+ "set",
2645
2649
  "index.js"
2646
2650
  ]
2647
2651
  }
2648
2652
  },
2649
- "version": "0.0.17"
2653
+ "version": "0.0.19"
2650
2654
  }