@xano/cli 0.0.75-beta.2 → 0.0.75-beta.6
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 +6 -2
- package/dist/commands/tenant/push/index.d.ts +0 -1
- package/dist/commands/tenant/push/index.js +0 -7
- package/dist/commands/update/index.d.ts +1 -0
- package/dist/commands/update/index.js +7 -3
- package/dist/commands/workspace/push/index.d.ts +0 -1
- package/dist/commands/workspace/push/index.js +0 -7
- package/oclif.manifest.json +2003 -2010
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -123,7 +123,6 @@ xano workspace push ./my-workspace --records # Include table records
|
|
|
123
123
|
xano workspace push ./my-workspace --env # Include environment variables
|
|
124
124
|
xano workspace push ./my-workspace --truncate # Truncate tables before import
|
|
125
125
|
xano workspace push ./my-workspace --no-sync-guids # Skip writing GUIDs back to local files
|
|
126
|
-
xano workspace push ./my-workspace --no-transaction # Skip wrapping import in a transaction (for large pushes)
|
|
127
126
|
xano workspace push ./my-workspace --force # Skip preview and confirmation (for CI/CD)
|
|
128
127
|
|
|
129
128
|
# Pull from a git repository to local files
|
|
@@ -334,7 +333,6 @@ xano tenant push ./my-tenant -t <tenant_name>
|
|
|
334
333
|
xano tenant push ./my-tenant -t <tenant_name> --records # Include table records
|
|
335
334
|
xano tenant push ./my-tenant -t <tenant_name> --env # Include environment variables
|
|
336
335
|
xano tenant push ./my-tenant -t <tenant_name> --truncate
|
|
337
|
-
xano tenant push ./my-tenant -t <tenant_name> --no-transaction # Skip transaction (for large pushes)
|
|
338
336
|
```
|
|
339
337
|
|
|
340
338
|
#### Deployments
|
|
@@ -517,6 +515,12 @@ xano update
|
|
|
517
515
|
|
|
518
516
|
# Check for updates without installing
|
|
519
517
|
xano update --check
|
|
518
|
+
|
|
519
|
+
# Update to the latest beta version
|
|
520
|
+
xano update --beta
|
|
521
|
+
|
|
522
|
+
# Check for beta updates without installing
|
|
523
|
+
xano update --beta --check
|
|
520
524
|
```
|
|
521
525
|
|
|
522
526
|
## Scripts
|
|
@@ -9,7 +9,6 @@ export default class Push extends BaseCommand {
|
|
|
9
9
|
env: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
10
|
records: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
tenant: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
-
transaction: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
12
|
truncate: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
13
|
workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
14
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -50,12 +50,6 @@ Truncate all table records before importing
|
|
|
50
50
|
description: 'Tenant name to push to',
|
|
51
51
|
required: true,
|
|
52
52
|
}),
|
|
53
|
-
transaction: Flags.boolean({
|
|
54
|
-
allowNo: true,
|
|
55
|
-
default: true,
|
|
56
|
-
description: 'Wrap import in a database transaction (use --no-transaction for debugging purposes)',
|
|
57
|
-
required: false,
|
|
58
|
-
}),
|
|
59
53
|
truncate: Flags.boolean({
|
|
60
54
|
default: false,
|
|
61
55
|
description: 'Truncate all table records before importing',
|
|
@@ -163,7 +157,6 @@ Truncate all table records before importing
|
|
|
163
157
|
const queryParams = new URLSearchParams({
|
|
164
158
|
env: flags.env.toString(),
|
|
165
159
|
records: flags.records.toString(),
|
|
166
|
-
transaction: flags.transaction.toString(),
|
|
167
160
|
truncate: flags.truncate.toString(),
|
|
168
161
|
});
|
|
169
162
|
const apiUrl = `${profile.instance_origin}/api:meta/workspace/${workspaceId}/tenant/${tenantName}/multidoc?${queryParams.toString()}`;
|
|
@@ -3,6 +3,7 @@ export default class Update extends BaseCommand {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
+
beta: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
6
7
|
check: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
8
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -3,9 +3,12 @@ import { execSync } from 'node:child_process';
|
|
|
3
3
|
import BaseCommand from '../../base-command.js';
|
|
4
4
|
export default class Update extends BaseCommand {
|
|
5
5
|
static description = 'Update the Xano CLI to the latest version';
|
|
6
|
-
static examples = [`$ xano update`, `$ xano update --check`];
|
|
6
|
+
static examples = [`$ xano update`, `$ xano update --check`, `$ xano update --beta`];
|
|
7
7
|
static flags = {
|
|
8
8
|
...BaseCommand.flags,
|
|
9
|
+
beta: Flags.boolean({
|
|
10
|
+
description: 'Update to the latest beta version',
|
|
11
|
+
}),
|
|
9
12
|
check: Flags.boolean({
|
|
10
13
|
description: 'Check for updates without installing',
|
|
11
14
|
}),
|
|
@@ -15,8 +18,9 @@ export default class Update extends BaseCommand {
|
|
|
15
18
|
const currentVersion = this.config.version;
|
|
16
19
|
this.log(`Current version: ${currentVersion}`);
|
|
17
20
|
this.log('Checking for updates...');
|
|
21
|
+
const tag = flags.beta ? 'beta' : 'latest';
|
|
18
22
|
try {
|
|
19
|
-
const latest = execSync(
|
|
23
|
+
const latest = execSync(`npm view @xano/cli dist-tags.${tag}`, { encoding: 'utf8' }).trim();
|
|
20
24
|
if (latest === currentVersion) {
|
|
21
25
|
this.log(`Already up to date (${currentVersion})`);
|
|
22
26
|
return;
|
|
@@ -26,7 +30,7 @@ export default class Update extends BaseCommand {
|
|
|
26
30
|
return;
|
|
27
31
|
}
|
|
28
32
|
this.log(`Updating @xano/cli ${currentVersion} → ${latest}...`);
|
|
29
|
-
execSync(
|
|
33
|
+
execSync(`npm install -g @xano/cli@${tag} --no-fund`, { stdio: 'inherit' });
|
|
30
34
|
this.log(`Updated to ${latest}`);
|
|
31
35
|
}
|
|
32
36
|
catch (error) {
|
|
@@ -12,7 +12,6 @@ export default class Push extends BaseCommand {
|
|
|
12
12
|
partial: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
13
|
records: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
14
|
'sync-guids': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
|
-
transaction: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
15
|
truncate: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
16
|
workspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
17
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -78,12 +78,6 @@ Truncate all table records before importing
|
|
|
78
78
|
description: 'Write server-assigned GUIDs back to local files (use --no-sync-guids to skip)',
|
|
79
79
|
required: false,
|
|
80
80
|
}),
|
|
81
|
-
transaction: Flags.boolean({
|
|
82
|
-
allowNo: true,
|
|
83
|
-
default: true,
|
|
84
|
-
description: 'Wrap import in a database transaction (use --no-transaction for debugging purposes)',
|
|
85
|
-
required: false,
|
|
86
|
-
}),
|
|
87
81
|
truncate: Flags.boolean({
|
|
88
82
|
default: false,
|
|
89
83
|
description: 'Truncate all table records before importing',
|
|
@@ -177,7 +171,6 @@ Truncate all table records before importing
|
|
|
177
171
|
env: flags.env.toString(),
|
|
178
172
|
partial: flags.partial.toString(),
|
|
179
173
|
records: flags.records.toString(),
|
|
180
|
-
transaction: flags.transaction.toString(),
|
|
181
174
|
truncate: flags.truncate.toString(),
|
|
182
175
|
});
|
|
183
176
|
// POST the multidoc to the API
|