@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.
@@ -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: this.profile.project,
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 project. ` +
42
- `Update your profile with 'xano profile:edit --project <project-id>'`);
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
  /**