@xano/cli 0.0.82-beta.4 → 0.0.83

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 CHANGED
@@ -347,9 +347,8 @@ xano tenant deploy_platform <tenant_name> --platform_id 5
347
347
  # Deploy a release by name
348
348
  xano tenant deploy_release <tenant_name> --release v1.0
349
349
 
350
- # Deploy with a license override file
350
+ # Deploy with a license override file (deploy_platform only)
351
351
  xano tenant deploy_platform <tenant_name> --platform_id 5 --license ./license.yaml
352
- xano tenant deploy_release <tenant_name> --release v1.0 --license ./license.yaml
353
352
  ```
354
353
 
355
354
  #### Tenant License
@@ -6,7 +6,6 @@ export default class TenantDeployRelease extends BaseCommand {
6
6
  static description: string;
7
7
  static examples: string[];
8
8
  static flags: {
9
- license: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
9
  output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
11
10
  release: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
12
11
  workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -17,15 +17,9 @@ export default class TenantDeployRelease extends BaseCommand {
17
17
  Deployed release "v1.0" to tenant: My Tenant (my-tenant)
18
18
  `,
19
19
  `$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0 -o json`,
20
- `$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0 --license ./license.yaml`,
21
20
  ];
22
21
  static flags = {
23
22
  ...BaseCommand.baseFlags,
24
- license: Flags.string({
25
- char: 'l',
26
- description: 'Path to a license override file to apply after deploy',
27
- required: false,
28
- }),
29
23
  output: Flags.string({
30
24
  char: 'o',
31
25
  default: 'summary',
@@ -83,28 +77,6 @@ Deployed release "v1.0" to tenant: My Tenant (my-tenant)
83
77
  this.error(`API request failed with status ${response.status}: ${response.statusText}\n${errorText}`);
84
78
  }
85
79
  const tenant = (await response.json());
86
- // Apply license override if provided
87
- if (flags.license) {
88
- const licensePath = path.resolve(flags.license);
89
- if (!fs.existsSync(licensePath)) {
90
- this.error(`License file not found: ${licensePath}`);
91
- }
92
- const licenseValue = fs.readFileSync(licensePath, 'utf8');
93
- const licenseUrl = `${profile.instance_origin}/api:meta/workspace/${workspaceId}/tenant/${tenantName}/license`;
94
- const licenseResponse = await this.verboseFetch(licenseUrl, {
95
- body: JSON.stringify({ value: licenseValue }),
96
- headers: {
97
- accept: 'application/json',
98
- Authorization: `Bearer ${profile.access_token}`,
99
- 'Content-Type': 'application/json',
100
- },
101
- method: 'POST',
102
- }, flags.verbose, profile.access_token);
103
- if (!licenseResponse.ok) {
104
- const errorText = await licenseResponse.text();
105
- this.error(`License override failed with status ${licenseResponse.status}: ${licenseResponse.statusText}\n${errorText}`);
106
- }
107
- }
108
80
  if (flags.output === 'json') {
109
81
  this.log(JSON.stringify(tenant, null, 2));
110
82
  }
@@ -115,8 +87,6 @@ Deployed release "v1.0" to tenant: My Tenant (my-tenant)
115
87
  this.log(` State: ${tenant.state}`);
116
88
  if (tenant.release?.name)
117
89
  this.log(` Release: ${tenant.release.name}`);
118
- if (flags.license)
119
- this.log(` License: applied`);
120
90
  this.log(` Time: ${elapsed}s`);
121
91
  }
122
92
  }