@xano/cli 0.0.16 → 0.0.17

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.
@@ -10,11 +10,9 @@ export default class ProfileEdit extends BaseCommand {
10
10
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
11
  branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
12
  project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
- 'run-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
13
  'remove-workspace': import("@oclif/core/interfaces").BooleanFlag<boolean>;
15
14
  'remove-branch': import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
15
  'remove-project': import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
- 'remove-run-project': import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
16
  run_base_url: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
17
  'remove-run-base-url': import("@oclif/core/interfaces").BooleanFlag<boolean>;
20
18
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -40,11 +40,7 @@ export default class ProfileEdit extends BaseCommand {
40
40
  }),
41
41
  project: Flags.string({
42
42
  char: 'j',
43
- description: 'Update project name',
44
- required: false,
45
- }),
46
- 'run-project': Flags.string({
47
- description: 'Update run project ID (for xano run commands)',
43
+ description: 'Update project ID',
48
44
  required: false,
49
45
  }),
50
46
  'remove-workspace': Flags.boolean({
@@ -62,11 +58,6 @@ export default class ProfileEdit extends BaseCommand {
62
58
  required: false,
63
59
  default: false,
64
60
  }),
65
- 'remove-run-project': Flags.boolean({
66
- description: 'Remove run project from profile',
67
- required: false,
68
- default: false,
69
- }),
70
61
  run_base_url: Flags.string({
71
62
  char: 'r',
72
63
  description: 'Update Xano Run API base URL',
@@ -133,9 +124,9 @@ Profile 'default' updated successfully at ~/.xano/credentials.yaml
133
124
  const existingProfile = credentials.profiles[profileName];
134
125
  // Check if any flags were provided
135
126
  const hasFlags = flags.account_origin || flags.instance_origin || flags.access_token ||
136
- flags.workspace || flags.branch || flags.project || flags['run-project'] || flags.run_base_url ||
127
+ flags.workspace || flags.branch || flags.project || flags.run_base_url ||
137
128
  flags['remove-workspace'] || flags['remove-branch'] || flags['remove-project'] ||
138
- flags['remove-run-project'] || flags['remove-run-base-url'];
129
+ flags['remove-run-base-url'];
139
130
  if (!hasFlags) {
140
131
  this.error('No fields specified to update. Use at least one flag to edit the profile.');
141
132
  }
@@ -148,7 +139,6 @@ Profile 'default' updated successfully at ~/.xano/credentials.yaml
148
139
  ...(flags.workspace !== undefined && { workspace: flags.workspace }),
149
140
  ...(flags.branch !== undefined && { branch: flags.branch }),
150
141
  ...(flags.project !== undefined && { project: flags.project }),
151
- ...(flags['run-project'] !== undefined && { run_project: flags['run-project'] }),
152
142
  ...(flags.run_base_url !== undefined && { run_base_url: flags.run_base_url }),
153
143
  };
154
144
  // Handle removal flags
@@ -161,9 +151,6 @@ Profile 'default' updated successfully at ~/.xano/credentials.yaml
161
151
  if (flags['remove-project']) {
162
152
  delete updatedProfile.project;
163
153
  }
164
- if (flags['remove-run-project']) {
165
- delete updatedProfile.run_project;
166
- }
167
154
  if (flags['remove-run-base-url']) {
168
155
  delete updatedProfile.run_base_url;
169
156
  }
@@ -192,14 +192,16 @@ Profile 'production' created successfully at ~/.xano/credentials.yaml
192
192
  }
193
193
  }
194
194
  }
195
- // Step 7: Fetch run projects and auto-select the first one
196
- let runProject;
195
+ // Step 7: Fetch run projects and auto-select the first one if no project was selected
197
196
  this.log('');
198
197
  this.log('Fetching available run projects...');
199
198
  try {
200
199
  const runProjects = await this.fetchRunProjects(accessToken);
201
200
  if (runProjects.length > 0) {
202
- runProject = runProjects[0].id;
201
+ // Use run project if no metadata project was selected
202
+ if (!project) {
203
+ project = runProjects[0].id;
204
+ }
203
205
  this.log(`✓ Found ${runProjects.length} run project(s). Using "${runProjects[0].name}" as default.`);
204
206
  }
205
207
  else {
@@ -207,7 +209,7 @@ Profile 'production' created successfully at ~/.xano/credentials.yaml
207
209
  }
208
210
  }
209
211
  catch {
210
- // Silently ignore - run_project will remain undefined
212
+ // Silently ignore - project will remain undefined
211
213
  }
212
214
  // Save profile
213
215
  await this.saveProfile({
@@ -218,7 +220,6 @@ Profile 'production' created successfully at ~/.xano/credentials.yaml
218
220
  workspace,
219
221
  branch,
220
222
  project,
221
- run_project: runProject,
222
223
  }, true);
223
224
  this.log('');
224
225
  this.log(`✓ Profile '${profileName}' created successfully!`);
@@ -441,7 +442,6 @@ Profile 'production' created successfully at ~/.xano/credentials.yaml
441
442
  ...(profile.workspace && { workspace: profile.workspace }),
442
443
  ...(profile.branch && { branch: profile.branch }),
443
444
  ...(profile.project && { project: profile.project }),
444
- ...(profile.run_project && { run_project: profile.run_project }),
445
445
  };
446
446
  // Set as default if requested
447
447
  if (setAsDefault) {
@@ -10,7 +10,6 @@ export interface ProfileConfig {
10
10
  workspace?: string;
11
11
  branch?: string;
12
12
  project?: string;
13
- run_project?: string;
14
13
  run_base_url?: string;
15
14
  }
16
15
  export interface CredentialsFile {
@@ -26,12 +26,10 @@ export default class BaseRunCommand extends BaseCommand {
26
26
  this.error(`Profile '${this.profileName}' is missing access_token`);
27
27
  }
28
28
  const baseUrl = this.profile.run_base_url || DEFAULT_RUN_BASE_URL;
29
- // Use run_project if available, fall back to project for backward compatibility
30
- const projectId = this.profile.run_project || this.profile.project;
31
29
  this.httpClient = new RunHttpClient({
32
30
  baseUrl,
33
31
  authToken: this.profile.access_token,
34
- projectId,
32
+ projectId: this.profile.project,
35
33
  });
36
34
  }
37
35
  /**
@@ -39,9 +37,9 @@ export default class BaseRunCommand extends BaseCommand {
39
37
  */
40
38
  async initRunCommandWithProject(profileFlag) {
41
39
  await this.initRunCommand(profileFlag);
42
- if (!this.profile.run_project && !this.profile.project) {
43
- this.error(`Profile '${this.profileName}' is missing run_project. ` +
44
- `Run 'xano profile:wizard' to set up your profile or use 'xano profile:edit --run-project <project-id>'`);
40
+ if (!this.profile.project) {
41
+ this.error(`Profile '${this.profileName}' is missing project. ` +
42
+ `Run 'xano profile:wizard' to set up your profile or use 'xano profile:edit --project <project-id>'`);
45
43
  }
46
44
  }
47
45
  /**
@@ -97,25 +97,23 @@
97
97
  "index.js"
98
98
  ]
99
99
  },
100
- "function:edit": {
100
+ "function:get": {
101
101
  "aliases": [],
102
102
  "args": {
103
103
  "function_id": {
104
- "description": "Function ID to edit",
104
+ "description": "Function ID",
105
105
  "name": "function_id",
106
106
  "required": false
107
107
  }
108
108
  },
109
- "description": "Edit a function in a workspace",
109
+ "description": "Get a specific function from a workspace",
110
110
  "examples": [
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"
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"
119
117
  ],
120
118
  "flags": {
121
119
  "profile": {
@@ -137,44 +135,6 @@
137
135
  "multiple": false,
138
136
  "type": "option"
139
137
  },
140
- "file": {
141
- "char": "f",
142
- "description": "Path to file containing XanoScript code",
143
- "exclusive": [
144
- "stdin"
145
- ],
146
- "name": "file",
147
- "required": false,
148
- "hasDynamicHelp": false,
149
- "multiple": false,
150
- "type": "option"
151
- },
152
- "stdin": {
153
- "char": "s",
154
- "description": "Read XanoScript code from stdin",
155
- "exclusive": [
156
- "file"
157
- ],
158
- "name": "stdin",
159
- "required": false,
160
- "allowNo": false,
161
- "type": "boolean"
162
- },
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",
174
- "required": false,
175
- "allowNo": false,
176
- "type": "boolean"
177
- },
178
138
  "output": {
179
139
  "char": "o",
180
140
  "description": "Output format",
@@ -185,14 +145,29 @@
185
145
  "multiple": false,
186
146
  "options": [
187
147
  "summary",
188
- "json"
148
+ "json",
149
+ "xs"
189
150
  ],
190
151
  "type": "option"
152
+ },
153
+ "include_draft": {
154
+ "description": "Include draft version",
155
+ "name": "include_draft",
156
+ "required": false,
157
+ "allowNo": false,
158
+ "type": "boolean"
159
+ },
160
+ "include_xanoscript": {
161
+ "description": "Include XanoScript in response",
162
+ "name": "include_xanoscript",
163
+ "required": false,
164
+ "allowNo": false,
165
+ "type": "boolean"
191
166
  }
192
167
  },
193
168
  "hasDynamicHelp": false,
194
169
  "hiddenAliases": [],
195
- "id": "function:edit",
170
+ "id": "function:get",
196
171
  "pluginAlias": "@xano/cli",
197
172
  "pluginName": "@xano/cli",
198
173
  "pluginType": "core",
@@ -203,27 +178,29 @@
203
178
  "dist",
204
179
  "commands",
205
180
  "function",
206
- "edit",
181
+ "get",
207
182
  "index.js"
208
183
  ]
209
184
  },
210
- "function:get": {
185
+ "function:edit": {
211
186
  "aliases": [],
212
187
  "args": {
213
188
  "function_id": {
214
- "description": "Function ID",
189
+ "description": "Function ID to edit",
215
190
  "name": "function_id",
216
191
  "required": false
217
192
  }
218
193
  },
219
- "description": "Get a specific function from a workspace",
194
+ "description": "Edit a function in a workspace",
220
195
  "examples": [
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"
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"
227
204
  ],
228
205
  "flags": {
229
206
  "profile": {
@@ -245,39 +222,62 @@
245
222
  "multiple": false,
246
223
  "type": "option"
247
224
  },
248
- "output": {
249
- "char": "o",
250
- "description": "Output format",
251
- "name": "output",
225
+ "file": {
226
+ "char": "f",
227
+ "description": "Path to file containing XanoScript code",
228
+ "exclusive": [
229
+ "stdin"
230
+ ],
231
+ "name": "file",
252
232
  "required": false,
253
- "default": "summary",
254
233
  "hasDynamicHelp": false,
255
234
  "multiple": false,
256
- "options": [
257
- "summary",
258
- "json",
259
- "xs"
260
- ],
261
235
  "type": "option"
262
236
  },
263
- "include_draft": {
264
- "description": "Include draft version",
265
- "name": "include_draft",
237
+ "stdin": {
238
+ "char": "s",
239
+ "description": "Read XanoScript code from stdin",
240
+ "exclusive": [
241
+ "file"
242
+ ],
243
+ "name": "stdin",
266
244
  "required": false,
267
245
  "allowNo": false,
268
246
  "type": "boolean"
269
247
  },
270
- "include_xanoscript": {
271
- "description": "Include XanoScript in response",
272
- "name": "include_xanoscript",
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",
273
259
  "required": false,
274
260
  "allowNo": false,
275
261
  "type": "boolean"
262
+ },
263
+ "output": {
264
+ "char": "o",
265
+ "description": "Output format",
266
+ "name": "output",
267
+ "required": false,
268
+ "default": "summary",
269
+ "hasDynamicHelp": false,
270
+ "multiple": false,
271
+ "options": [
272
+ "summary",
273
+ "json"
274
+ ],
275
+ "type": "option"
276
276
  }
277
277
  },
278
278
  "hasDynamicHelp": false,
279
279
  "hiddenAliases": [],
280
- "id": "function:get",
280
+ "id": "function:edit",
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
- "get",
291
+ "edit",
292
292
  "index.js"
293
293
  ]
294
294
  },
@@ -633,21 +633,13 @@
633
633
  },
634
634
  "project": {
635
635
  "char": "j",
636
- "description": "Update project name",
636
+ "description": "Update project ID",
637
637
  "name": "project",
638
638
  "required": false,
639
639
  "hasDynamicHelp": false,
640
640
  "multiple": false,
641
641
  "type": "option"
642
642
  },
643
- "run-project": {
644
- "description": "Update run project ID (for xano run commands)",
645
- "name": "run-project",
646
- "required": false,
647
- "hasDynamicHelp": false,
648
- "multiple": false,
649
- "type": "option"
650
- },
651
643
  "remove-workspace": {
652
644
  "description": "Remove workspace from profile",
653
645
  "name": "remove-workspace",
@@ -669,13 +661,6 @@
669
661
  "allowNo": false,
670
662
  "type": "boolean"
671
663
  },
672
- "remove-run-project": {
673
- "description": "Remove run project from profile",
674
- "name": "remove-run-project",
675
- "required": false,
676
- "allowNo": false,
677
- "type": "boolean"
678
- },
679
664
  "run_base_url": {
680
665
  "char": "r",
681
666
  "description": "Update Xano Run API base URL",
@@ -736,28 +721,24 @@
736
721
  "index.js"
737
722
  ]
738
723
  },
739
- "profile:list": {
724
+ "profile:set-default": {
740
725
  "aliases": [],
741
- "args": {},
742
- "description": "List all available profile configurations",
743
- "examples": [
744
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
745
- "$ 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",
746
- "$ 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"
747
- ],
748
- "flags": {
749
- "details": {
750
- "char": "d",
751
- "description": "Show detailed information for each profile",
752
- "name": "details",
753
- "required": false,
754
- "allowNo": false,
755
- "type": "boolean"
726
+ "args": {
727
+ "name": {
728
+ "description": "Profile name to set as default",
729
+ "name": "name",
730
+ "required": true
756
731
  }
757
732
  },
733
+ "description": "Set the default profile",
734
+ "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"
737
+ ],
738
+ "flags": {},
758
739
  "hasDynamicHelp": false,
759
740
  "hiddenAliases": [],
760
- "id": "profile:list",
741
+ "id": "profile:set-default",
761
742
  "pluginAlias": "@xano/cli",
762
743
  "pluginName": "@xano/cli",
763
744
  "pluginType": "core",
@@ -768,7 +749,7 @@
768
749
  "dist",
769
750
  "commands",
770
751
  "profile",
771
- "list",
752
+ "set-default",
772
753
  "index.js"
773
754
  ]
774
755
  },
@@ -850,50 +831,28 @@
850
831
  "index.js"
851
832
  ]
852
833
  },
853
- "profile:token": {
834
+ "profile:list": {
854
835
  "aliases": [],
855
836
  "args": {},
856
- "description": "Print the access token for the default profile",
837
+ "description": "List all available profile configurations",
857
838
  "examples": [
858
- "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
859
- "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
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"
860
842
  ],
861
- "flags": {},
862
- "hasDynamicHelp": false,
863
- "hiddenAliases": [],
864
- "id": "profile:token",
865
- "pluginAlias": "@xano/cli",
866
- "pluginName": "@xano/cli",
867
- "pluginType": "core",
868
- "strict": true,
869
- "enableJsonFlag": false,
870
- "isESM": true,
871
- "relativePath": [
872
- "dist",
873
- "commands",
874
- "profile",
875
- "token",
876
- "index.js"
877
- ]
878
- },
879
- "profile:set-default": {
880
- "aliases": [],
881
- "args": {
882
- "name": {
883
- "description": "Profile name to set as default",
884
- "name": "name",
885
- "required": true
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"
886
851
  }
887
852
  },
888
- "description": "Set the default profile",
889
- "examples": [
890
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
891
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
892
- ],
893
- "flags": {},
894
853
  "hasDynamicHelp": false,
895
854
  "hiddenAliases": [],
896
- "id": "profile:set-default",
855
+ "id": "profile:list",
897
856
  "pluginAlias": "@xano/cli",
898
857
  "pluginName": "@xano/cli",
899
858
  "pluginType": "core",
@@ -904,7 +863,7 @@
904
863
  "dist",
905
864
  "commands",
906
865
  "profile",
907
- "set-default",
866
+ "list",
908
867
  "index.js"
909
868
  ]
910
869
  },
@@ -953,12 +912,38 @@
953
912
  "index.js"
954
913
  ]
955
914
  },
956
- "run:exec": {
915
+ "profile:token": {
957
916
  "aliases": [],
958
917
  "args": {},
959
- "description": "Execute XanoScript code (job or service)",
918
+ "description": "Print the access token for the default profile",
960
919
  "examples": [
961
- "$ xano run exec -f script.xs\nExecuted successfully!\n...\n",
920
+ "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
921
+ "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
922
+ ],
923
+ "flags": {},
924
+ "hasDynamicHelp": false,
925
+ "hiddenAliases": [],
926
+ "id": "profile:token",
927
+ "pluginAlias": "@xano/cli",
928
+ "pluginName": "@xano/cli",
929
+ "pluginType": "core",
930
+ "strict": true,
931
+ "enableJsonFlag": false,
932
+ "isESM": true,
933
+ "relativePath": [
934
+ "dist",
935
+ "commands",
936
+ "profile",
937
+ "token",
938
+ "index.js"
939
+ ]
940
+ },
941
+ "run:exec": {
942
+ "aliases": [],
943
+ "args": {},
944
+ "description": "Execute XanoScript code (job or service)",
945
+ "examples": [
946
+ "$ xano run exec -f script.xs\nExecuted successfully!\n...\n",
962
947
  "$ xano run exec -f script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
963
948
  "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
964
949
  "$ xano run exec -f script.xs -o json\n{\n \"run\": { ... }\n}\n",
@@ -1265,6 +1250,57 @@
1265
1250
  "index.js"
1266
1251
  ]
1267
1252
  },
1253
+ "run:env:delete": {
1254
+ "aliases": [],
1255
+ "args": {
1256
+ "name": {
1257
+ "description": "Environment variable name",
1258
+ "name": "name",
1259
+ "required": true
1260
+ }
1261
+ },
1262
+ "description": "Delete an environment variable",
1263
+ "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"
1266
+ ],
1267
+ "flags": {
1268
+ "profile": {
1269
+ "char": "p",
1270
+ "description": "Profile to use for this command",
1271
+ "env": "XANO_PROFILE",
1272
+ "name": "profile",
1273
+ "required": false,
1274
+ "hasDynamicHelp": false,
1275
+ "multiple": false,
1276
+ "type": "option"
1277
+ },
1278
+ "force": {
1279
+ "char": "f",
1280
+ "description": "Skip confirmation prompt",
1281
+ "name": "force",
1282
+ "required": false,
1283
+ "allowNo": false,
1284
+ "type": "boolean"
1285
+ }
1286
+ },
1287
+ "hasDynamicHelp": false,
1288
+ "hiddenAliases": [],
1289
+ "id": "run:env:delete",
1290
+ "pluginAlias": "@xano/cli",
1291
+ "pluginName": "@xano/cli",
1292
+ "pluginType": "core",
1293
+ "strict": true,
1294
+ "isESM": true,
1295
+ "relativePath": [
1296
+ "dist",
1297
+ "commands",
1298
+ "run",
1299
+ "env",
1300
+ "delete",
1301
+ "index.js"
1302
+ ]
1303
+ },
1268
1304
  "workspace:pull": {
1269
1305
  "aliases": [],
1270
1306
  "args": {
@@ -1385,57 +1421,6 @@
1385
1421
  "index.js"
1386
1422
  ]
1387
1423
  },
1388
- "run:env:delete": {
1389
- "aliases": [],
1390
- "args": {
1391
- "name": {
1392
- "description": "Environment variable name",
1393
- "name": "name",
1394
- "required": true
1395
- }
1396
- },
1397
- "description": "Delete an environment variable",
1398
- "examples": [
1399
- "$ 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",
1400
- "$ xano run env delete API_KEY --force\nEnvironment variable 'API_KEY' deleted successfully!\n"
1401
- ],
1402
- "flags": {
1403
- "profile": {
1404
- "char": "p",
1405
- "description": "Profile to use for this command",
1406
- "env": "XANO_PROFILE",
1407
- "name": "profile",
1408
- "required": false,
1409
- "hasDynamicHelp": false,
1410
- "multiple": false,
1411
- "type": "option"
1412
- },
1413
- "force": {
1414
- "char": "f",
1415
- "description": "Skip confirmation prompt",
1416
- "name": "force",
1417
- "required": false,
1418
- "allowNo": false,
1419
- "type": "boolean"
1420
- }
1421
- },
1422
- "hasDynamicHelp": false,
1423
- "hiddenAliases": [],
1424
- "id": "run:env:delete",
1425
- "pluginAlias": "@xano/cli",
1426
- "pluginName": "@xano/cli",
1427
- "pluginType": "core",
1428
- "strict": true,
1429
- "isESM": true,
1430
- "relativePath": [
1431
- "dist",
1432
- "commands",
1433
- "run",
1434
- "env",
1435
- "delete",
1436
- "index.js"
1437
- ]
1438
- },
1439
1424
  "run:env:get": {
1440
1425
  "aliases": [],
1441
1426
  "args": {
@@ -1544,54 +1529,6 @@
1544
1529
  "index.js"
1545
1530
  ]
1546
1531
  },
1547
- "run:env:set": {
1548
- "aliases": [],
1549
- "args": {
1550
- "name": {
1551
- "description": "Environment variable name",
1552
- "name": "name",
1553
- "required": true
1554
- },
1555
- "value": {
1556
- "description": "Environment variable value",
1557
- "name": "value",
1558
- "required": true
1559
- }
1560
- },
1561
- "description": "Set an environment variable",
1562
- "examples": [
1563
- "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
1564
- "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
1565
- ],
1566
- "flags": {
1567
- "profile": {
1568
- "char": "p",
1569
- "description": "Profile to use for this command",
1570
- "env": "XANO_PROFILE",
1571
- "name": "profile",
1572
- "required": false,
1573
- "hasDynamicHelp": false,
1574
- "multiple": false,
1575
- "type": "option"
1576
- }
1577
- },
1578
- "hasDynamicHelp": false,
1579
- "hiddenAliases": [],
1580
- "id": "run:env:set",
1581
- "pluginAlias": "@xano/cli",
1582
- "pluginName": "@xano/cli",
1583
- "pluginType": "core",
1584
- "strict": true,
1585
- "isESM": true,
1586
- "relativePath": [
1587
- "dist",
1588
- "commands",
1589
- "run",
1590
- "env",
1591
- "set",
1592
- "index.js"
1593
- ]
1594
- },
1595
1532
  "run:projects:create": {
1596
1533
  "aliases": [],
1597
1534
  "args": {},
@@ -1714,20 +1651,24 @@
1714
1651
  "index.js"
1715
1652
  ]
1716
1653
  },
1717
- "run:projects:update": {
1654
+ "run:env:set": {
1718
1655
  "aliases": [],
1719
1656
  "args": {
1720
- "projectId": {
1721
- "description": "Project ID to update",
1722
- "name": "projectId",
1657
+ "name": {
1658
+ "description": "Environment variable name",
1659
+ "name": "name",
1660
+ "required": true
1661
+ },
1662
+ "value": {
1663
+ "description": "Environment variable value",
1664
+ "name": "value",
1723
1665
  "required": true
1724
1666
  }
1725
1667
  },
1726
- "description": "Update a project",
1668
+ "description": "Set an environment variable",
1727
1669
  "examples": [
1728
- "$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
1729
- "$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
1730
- "$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
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"
1731
1672
  ],
1732
1673
  "flags": {
1733
1674
  "profile": {
@@ -1739,20 +1680,39 @@
1739
1680
  "hasDynamicHelp": false,
1740
1681
  "multiple": false,
1741
1682
  "type": "option"
1742
- },
1743
- "name": {
1744
- "char": "n",
1745
- "description": "New project name",
1746
- "name": "name",
1747
- "required": false,
1748
- "hasDynamicHelp": false,
1749
- "multiple": false,
1750
- "type": "option"
1751
- },
1752
- "description": {
1753
- "char": "d",
1754
- "description": "New project description",
1755
- "name": "description",
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
+ "run:projects:list": {
1703
+ "aliases": [],
1704
+ "args": {},
1705
+ "description": "List all projects",
1706
+ "examples": [
1707
+ "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
1708
+ "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
1709
+ ],
1710
+ "flags": {
1711
+ "profile": {
1712
+ "char": "p",
1713
+ "description": "Profile to use for this command",
1714
+ "env": "XANO_PROFILE",
1715
+ "name": "profile",
1756
1716
  "required": false,
1757
1717
  "hasDynamicHelp": false,
1758
1718
  "multiple": false,
@@ -1763,11 +1723,11 @@
1763
1723
  "description": "Output format",
1764
1724
  "name": "output",
1765
1725
  "required": false,
1766
- "default": "summary",
1726
+ "default": "table",
1767
1727
  "hasDynamicHelp": false,
1768
1728
  "multiple": false,
1769
1729
  "options": [
1770
- "summary",
1730
+ "table",
1771
1731
  "json"
1772
1732
  ],
1773
1733
  "type": "option"
@@ -1775,7 +1735,7 @@
1775
1735
  },
1776
1736
  "hasDynamicHelp": false,
1777
1737
  "hiddenAliases": [],
1778
- "id": "run:projects:update",
1738
+ "id": "run:projects:list",
1779
1739
  "pluginAlias": "@xano/cli",
1780
1740
  "pluginName": "@xano/cli",
1781
1741
  "pluginType": "core",
@@ -1786,17 +1746,24 @@
1786
1746
  "commands",
1787
1747
  "run",
1788
1748
  "projects",
1789
- "update",
1749
+ "list",
1790
1750
  "index.js"
1791
1751
  ]
1792
1752
  },
1793
- "run:projects:list": {
1753
+ "run:projects:update": {
1794
1754
  "aliases": [],
1795
- "args": {},
1796
- "description": "List all projects",
1755
+ "args": {
1756
+ "projectId": {
1757
+ "description": "Project ID to update",
1758
+ "name": "projectId",
1759
+ "required": true
1760
+ }
1761
+ },
1762
+ "description": "Update a project",
1797
1763
  "examples": [
1798
- "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
1799
- "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
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"
1800
1767
  ],
1801
1768
  "flags": {
1802
1769
  "profile": {
@@ -1809,16 +1776,34 @@
1809
1776
  "multiple": false,
1810
1777
  "type": "option"
1811
1778
  },
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
+ },
1812
1797
  "output": {
1813
1798
  "char": "o",
1814
1799
  "description": "Output format",
1815
1800
  "name": "output",
1816
1801
  "required": false,
1817
- "default": "table",
1802
+ "default": "summary",
1818
1803
  "hasDynamicHelp": false,
1819
1804
  "multiple": false,
1820
1805
  "options": [
1821
- "table",
1806
+ "summary",
1822
1807
  "json"
1823
1808
  ],
1824
1809
  "type": "option"
@@ -1826,7 +1811,7 @@
1826
1811
  },
1827
1812
  "hasDynamicHelp": false,
1828
1813
  "hiddenAliases": [],
1829
- "id": "run:projects:list",
1814
+ "id": "run:projects:update",
1830
1815
  "pluginAlias": "@xano/cli",
1831
1816
  "pluginName": "@xano/cli",
1832
1817
  "pluginType": "core",
@@ -1837,7 +1822,7 @@
1837
1822
  "commands",
1838
1823
  "run",
1839
1824
  "projects",
1840
- "list",
1825
+ "update",
1841
1826
  "index.js"
1842
1827
  ]
1843
1828
  },
@@ -1949,13 +1934,19 @@
1949
1934
  "index.js"
1950
1935
  ]
1951
1936
  },
1952
- "run:secrets:list": {
1937
+ "run:secrets:set": {
1953
1938
  "aliases": [],
1954
- "args": {},
1955
- "description": "List all secret keys",
1939
+ "args": {
1940
+ "name": {
1941
+ "description": "Secret name",
1942
+ "name": "name",
1943
+ "required": true
1944
+ }
1945
+ },
1946
+ "description": "Set a secret",
1956
1947
  "examples": [
1957
- "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
1958
- "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
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"
1959
1950
  ],
1960
1951
  "flags": {
1961
1952
  "profile": {
@@ -1968,24 +1959,41 @@
1968
1959
  "multiple": false,
1969
1960
  "type": "option"
1970
1961
  },
1971
- "output": {
1972
- "char": "o",
1973
- "description": "Output format",
1974
- "name": "output",
1975
- "required": false,
1976
- "default": "table",
1962
+ "type": {
1963
+ "char": "t",
1964
+ "description": "Secret type",
1965
+ "name": "type",
1966
+ "required": true,
1977
1967
  "hasDynamicHelp": false,
1978
1968
  "multiple": false,
1979
1969
  "options": [
1980
- "table",
1981
- "json"
1970
+ "dockerconfigjson",
1971
+ "service-account-token"
1982
1972
  ],
1983
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"
1984
1992
  }
1985
1993
  },
1986
1994
  "hasDynamicHelp": false,
1987
1995
  "hiddenAliases": [],
1988
- "id": "run:secrets:list",
1996
+ "id": "run:secrets:set",
1989
1997
  "pluginAlias": "@xano/cli",
1990
1998
  "pluginName": "@xano/cli",
1991
1999
  "pluginType": "core",
@@ -1996,23 +2004,17 @@
1996
2004
  "commands",
1997
2005
  "run",
1998
2006
  "secrets",
1999
- "list",
2007
+ "set",
2000
2008
  "index.js"
2001
2009
  ]
2002
2010
  },
2003
- "run:sessions:delete": {
2011
+ "run:secrets:list": {
2004
2012
  "aliases": [],
2005
- "args": {
2006
- "sessionId": {
2007
- "description": "Session ID",
2008
- "name": "sessionId",
2009
- "required": true
2010
- }
2011
- },
2012
- "description": "Delete a session",
2013
+ "args": {},
2014
+ "description": "List all secret keys",
2013
2015
  "examples": [
2014
- "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
2015
- "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
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"
2016
2018
  ],
2017
2019
  "flags": {
2018
2020
  "profile": {
@@ -2025,18 +2027,24 @@
2025
2027
  "multiple": false,
2026
2028
  "type": "option"
2027
2029
  },
2028
- "force": {
2029
- "char": "f",
2030
- "description": "Skip confirmation prompt",
2031
- "name": "force",
2030
+ "output": {
2031
+ "char": "o",
2032
+ "description": "Output format",
2033
+ "name": "output",
2032
2034
  "required": false,
2033
- "allowNo": false,
2034
- "type": "boolean"
2035
+ "default": "table",
2036
+ "hasDynamicHelp": false,
2037
+ "multiple": false,
2038
+ "options": [
2039
+ "table",
2040
+ "json"
2041
+ ],
2042
+ "type": "option"
2035
2043
  }
2036
2044
  },
2037
2045
  "hasDynamicHelp": false,
2038
2046
  "hiddenAliases": [],
2039
- "id": "run:sessions:delete",
2047
+ "id": "run:secrets:list",
2040
2048
  "pluginAlias": "@xano/cli",
2041
2049
  "pluginName": "@xano/cli",
2042
2050
  "pluginType": "core",
@@ -2046,24 +2054,24 @@
2046
2054
  "dist",
2047
2055
  "commands",
2048
2056
  "run",
2049
- "sessions",
2050
- "delete",
2057
+ "secrets",
2058
+ "list",
2051
2059
  "index.js"
2052
2060
  ]
2053
2061
  },
2054
- "run:secrets:set": {
2062
+ "run:sessions:delete": {
2055
2063
  "aliases": [],
2056
2064
  "args": {
2057
- "name": {
2058
- "description": "Secret name",
2059
- "name": "name",
2065
+ "sessionId": {
2066
+ "description": "Session ID",
2067
+ "name": "sessionId",
2060
2068
  "required": true
2061
2069
  }
2062
2070
  },
2063
- "description": "Set a secret",
2071
+ "description": "Delete a session",
2064
2072
  "examples": [
2065
- "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
2066
- "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
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"
2067
2075
  ],
2068
2076
  "flags": {
2069
2077
  "profile": {
@@ -2076,41 +2084,18 @@
2076
2084
  "multiple": false,
2077
2085
  "type": "option"
2078
2086
  },
2079
- "type": {
2080
- "char": "t",
2081
- "description": "Secret type",
2082
- "name": "type",
2083
- "required": true,
2084
- "hasDynamicHelp": false,
2085
- "multiple": false,
2086
- "options": [
2087
- "dockerconfigjson",
2088
- "service-account-token"
2089
- ],
2090
- "type": "option"
2091
- },
2092
- "value": {
2093
- "char": "v",
2094
- "description": "Secret value",
2095
- "name": "value",
2096
- "required": true,
2097
- "hasDynamicHelp": false,
2098
- "multiple": false,
2099
- "type": "option"
2100
- },
2101
- "repo": {
2102
- "char": "r",
2103
- "description": "Repository (for dockerconfigjson type)",
2104
- "name": "repo",
2087
+ "force": {
2088
+ "char": "f",
2089
+ "description": "Skip confirmation prompt",
2090
+ "name": "force",
2105
2091
  "required": false,
2106
- "hasDynamicHelp": false,
2107
- "multiple": false,
2108
- "type": "option"
2092
+ "allowNo": false,
2093
+ "type": "boolean"
2109
2094
  }
2110
2095
  },
2111
2096
  "hasDynamicHelp": false,
2112
2097
  "hiddenAliases": [],
2113
- "id": "run:secrets:set",
2098
+ "id": "run:sessions:delete",
2114
2099
  "pluginAlias": "@xano/cli",
2115
2100
  "pluginName": "@xano/cli",
2116
2101
  "pluginType": "core",
@@ -2120,12 +2105,12 @@
2120
2105
  "dist",
2121
2106
  "commands",
2122
2107
  "run",
2123
- "secrets",
2124
- "set",
2108
+ "sessions",
2109
+ "delete",
2125
2110
  "index.js"
2126
2111
  ]
2127
2112
  },
2128
- "run:sessions:get": {
2113
+ "run:sessions:start": {
2129
2114
  "aliases": [],
2130
2115
  "args": {
2131
2116
  "sessionId": {
@@ -2134,10 +2119,10 @@
2134
2119
  "required": true
2135
2120
  }
2136
2121
  },
2137
- "description": "Get session details",
2122
+ "description": "Start a session",
2138
2123
  "examples": [
2139
- "$ 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",
2140
- "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
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"
2141
2126
  ],
2142
2127
  "flags": {
2143
2128
  "profile": {
@@ -2167,7 +2152,7 @@
2167
2152
  },
2168
2153
  "hasDynamicHelp": false,
2169
2154
  "hiddenAliases": [],
2170
- "id": "run:sessions:get",
2155
+ "id": "run:sessions:start",
2171
2156
  "pluginAlias": "@xano/cli",
2172
2157
  "pluginName": "@xano/cli",
2173
2158
  "pluginType": "core",
@@ -2178,7 +2163,7 @@
2178
2163
  "commands",
2179
2164
  "run",
2180
2165
  "sessions",
2181
- "get",
2166
+ "start",
2182
2167
  "index.js"
2183
2168
  ]
2184
2169
  },
@@ -2233,7 +2218,7 @@
2233
2218
  "index.js"
2234
2219
  ]
2235
2220
  },
2236
- "run:sessions:start": {
2221
+ "run:sessions:get": {
2237
2222
  "aliases": [],
2238
2223
  "args": {
2239
2224
  "sessionId": {
@@ -2242,10 +2227,10 @@
2242
2227
  "required": true
2243
2228
  }
2244
2229
  },
2245
- "description": "Start a session",
2230
+ "description": "Get session details",
2246
2231
  "examples": [
2247
- "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
2248
- "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
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"
2249
2234
  ],
2250
2235
  "flags": {
2251
2236
  "profile": {
@@ -2275,7 +2260,7 @@
2275
2260
  },
2276
2261
  "hasDynamicHelp": false,
2277
2262
  "hiddenAliases": [],
2278
- "id": "run:sessions:start",
2263
+ "id": "run:sessions:get",
2279
2264
  "pluginAlias": "@xano/cli",
2280
2265
  "pluginName": "@xano/cli",
2281
2266
  "pluginType": "core",
@@ -2286,7 +2271,7 @@
2286
2271
  "commands",
2287
2272
  "run",
2288
2273
  "sessions",
2289
- "start",
2274
+ "get",
2290
2275
  "index.js"
2291
2276
  ]
2292
2277
  },
@@ -2661,5 +2646,5 @@
2661
2646
  ]
2662
2647
  }
2663
2648
  },
2664
- "version": "0.0.16"
2649
+ "version": "0.0.17"
2665
2650
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xano/cli",
3
3
  "description": "CLI for Xano's Metadata API",
4
- "version": "0.0.16",
4
+ "version": "0.0.17",
5
5
  "author": "Sean Montgomery",
6
6
  "bin": {
7
7
  "xano": "./bin/run.js"