@xano/cli 0.0.60 → 0.0.62
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.
|
@@ -59,6 +59,7 @@ Deployed platform 5 to tenant: My Tenant (my-tenant)
|
|
|
59
59
|
const tenantName = args.tenant_name;
|
|
60
60
|
const platformId = flags.platform_id;
|
|
61
61
|
const apiUrl = `${profile.instance_origin}/api:meta/workspace/${workspaceId}/tenant/${tenantName}/platform/deploy`;
|
|
62
|
+
const startTime = Date.now();
|
|
62
63
|
try {
|
|
63
64
|
const response = await this.verboseFetch(apiUrl, {
|
|
64
65
|
body: JSON.stringify({ platform_id: platformId }),
|
|
@@ -78,11 +79,13 @@ Deployed platform 5 to tenant: My Tenant (my-tenant)
|
|
|
78
79
|
this.log(JSON.stringify(tenant, null, 2));
|
|
79
80
|
}
|
|
80
81
|
else {
|
|
82
|
+
const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
|
|
81
83
|
this.log(`Deployed platform ${platformId} to tenant: ${tenant.display || tenant.name} (${tenant.name})`);
|
|
82
84
|
if (tenant.state)
|
|
83
85
|
this.log(` State: ${tenant.state}`);
|
|
84
86
|
if (tenant.platform?.name)
|
|
85
87
|
this.log(` Platform: ${tenant.platform.name}`);
|
|
88
|
+
this.log(` Time: ${elapsed}s`);
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
91
|
catch (error) {
|
|
@@ -60,6 +60,7 @@ Deployed release "v1.0" to tenant: My Tenant (my-tenant)
|
|
|
60
60
|
const releaseName = flags.release;
|
|
61
61
|
const tenantName = args.tenant_name;
|
|
62
62
|
const apiUrl = `${profile.instance_origin}/api:meta/workspace/${workspaceId}/tenant/${tenantName}/deploy`;
|
|
63
|
+
const startTime = Date.now();
|
|
63
64
|
try {
|
|
64
65
|
const response = await this.verboseFetch(apiUrl, {
|
|
65
66
|
body: JSON.stringify({ release_name: releaseName }),
|
|
@@ -79,11 +80,13 @@ Deployed release "v1.0" to tenant: My Tenant (my-tenant)
|
|
|
79
80
|
this.log(JSON.stringify(tenant, null, 2));
|
|
80
81
|
}
|
|
81
82
|
else {
|
|
83
|
+
const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
|
|
82
84
|
this.log(`Deployed release "${releaseName}" to tenant: ${tenant.display || tenant.name} (${tenant.name})`);
|
|
83
85
|
if (tenant.state)
|
|
84
86
|
this.log(` State: ${tenant.state}`);
|
|
85
87
|
if (tenant.release?.name)
|
|
86
88
|
this.log(` Release: ${tenant.release.name}`);
|
|
89
|
+
this.log(` Time: ${elapsed}s`);
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
catch (error) {
|
|
@@ -26,7 +26,7 @@ export default class Update extends BaseCommand {
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
this.log(`Updating @xano/cli ${currentVersion} → ${latest}...`);
|
|
29
|
-
execSync('npm install -g @xano/cli@latest', { stdio: 'inherit' });
|
|
29
|
+
execSync('npm install -g @xano/cli@latest --no-fund', { stdio: 'inherit' });
|
|
30
30
|
this.log(`Updated to ${latest}`);
|
|
31
31
|
}
|
|
32
32
|
catch (error) {
|