@xano/cli 0.0.80-beta.1 → 0.0.82-beta.0

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.
@@ -23,7 +23,7 @@ export default abstract class BaseCommand extends Command {
23
23
  profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
24
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
25
25
  };
26
- private updateNotice;
26
+ protected updateNotice: string | null;
27
27
  init(): Promise<void>;
28
28
  finally(_: Error | undefined): Promise<void>;
29
29
  private isJsonOutput;
@@ -87,8 +87,9 @@ Tenant: My Tenant (my-tenant)
87
87
  this.log(` Custom Domain: ${tenant.domain}`);
88
88
  if (tenant.cluster?.name)
89
89
  this.log(` Cluster: ${tenant.cluster.name}`);
90
- if (tenant.release?.name)
91
- this.log(` Release: ${tenant.release.name}`);
90
+ const release = typeof tenant.release === 'string' ? tenant.release : tenant.release?.name;
91
+ if (release)
92
+ this.log(` Release: ${release}`);
92
93
  if (tenant.platform?.name)
93
94
  this.log(` Platform: ${tenant.platform.name}`);
94
95
  if (tenant.version !== undefined)
@@ -10,7 +10,12 @@ export default class TenantList extends BaseCommand {
10
10
  `$ xano tenant list
11
11
  Tenants in workspace 5:
12
12
  - My Tenant (my-tenant) [ok] - tier1
13
+ Cluster: us-central
14
+ Release: r1
15
+ Platform: default
13
16
  - Staging (staging) [ok] - tier1
17
+ Cluster: us-central
18
+ Release: r1
14
19
  `,
15
20
  `$ xano tenant list -w 5 --output json`,
16
21
  ];
@@ -89,6 +94,13 @@ Tenants in workspace 5:
89
94
  const license = tenant.license ? ` - ${tenant.license}` : '';
90
95
  const ephemeral = tenant.ephemeral ? ' [ephemeral]' : '';
91
96
  this.log(` - ${tenant.display || tenant.name} (${tenant.name})${state}${license}${ephemeral}`);
97
+ if (tenant.cluster?.name)
98
+ this.log(` Cluster: ${tenant.cluster.name}`);
99
+ const release = typeof tenant.release === 'string' ? tenant.release : tenant.release?.name;
100
+ if (release)
101
+ this.log(` Release: ${release}`);
102
+ if (tenant.platform?.name)
103
+ this.log(` Platform: ${tenant.platform.name}`);
92
104
  }
93
105
  }
94
106
  }
@@ -17,6 +17,7 @@ export default class Update extends BaseCommand {
17
17
  async run() {
18
18
  const { flags } = await this.parse(Update);
19
19
  const currentVersion = this.config.version;
20
+ this.updateNotice = null;
20
21
  this.log(`Current version: ${currentVersion}`);
21
22
  this.log('Checking for updates...');
22
23
  const tag = flags.beta ? 'beta' : 'latest';
@@ -24,6 +25,7 @@ export default class Update extends BaseCommand {
24
25
  const latest = execSync(`npm view @xano/cli dist-tags.${tag}`, { encoding: 'utf8' }).trim();
25
26
  if (latest === currentVersion) {
26
27
  this.log(`Already up to date (${currentVersion})`);
28
+ clearUpdateCache();
27
29
  return;
28
30
  }
29
31
  if (flags.check) {