@xano/cli 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -4
- package/dist/commands/profile/edit/index.d.ts +2 -0
- package/dist/commands/profile/edit/index.js +15 -2
- package/dist/commands/profile/wizard/index.d.ts +1 -0
- package/dist/commands/profile/wizard/index.js +38 -0
- package/dist/commands/workspace/pull/index.d.ts +28 -0
- package/dist/commands/workspace/pull/index.js +238 -0
- package/dist/commands/workspace/push/index.d.ts +19 -0
- package/dist/commands/workspace/push/index.js +163 -0
- package/dist/lib/base-run-command.d.ts +1 -0
- package/dist/lib/base-run-command.js +6 -4
- package/oclif.manifest.json +445 -310
- package/package.json +1 -1
|
@@ -26,10 +26,12 @@ 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;
|
|
29
31
|
this.httpClient = new RunHttpClient({
|
|
30
32
|
baseUrl,
|
|
31
33
|
authToken: this.profile.access_token,
|
|
32
|
-
projectId
|
|
34
|
+
projectId,
|
|
33
35
|
});
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
@@ -37,9 +39,9 @@ export default class BaseRunCommand extends BaseCommand {
|
|
|
37
39
|
*/
|
|
38
40
|
async initRunCommandWithProject(profileFlag) {
|
|
39
41
|
await this.initRunCommand(profileFlag);
|
|
40
|
-
if (!this.profile.project) {
|
|
41
|
-
this.error(`Profile '${this.profileName}' is missing
|
|
42
|
-
`
|
|
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>'`);
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
/**
|