@xano/cli 0.0.80-beta.0 → 0.0.81
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 +4 -2
- package/dist/base-command.d.ts +1 -1
- package/dist/commands/update/index.js +2 -0
- package/oclif.manifest.json +1466 -1466
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -123,6 +123,7 @@ xano workspace push ./my-workspace --delete # Delete objects not in
|
|
|
123
123
|
xano workspace push ./my-workspace --records # Include table records
|
|
124
124
|
xano workspace push ./my-workspace --env # Include environment variables
|
|
125
125
|
xano workspace push ./my-workspace --truncate # Truncate tables before import
|
|
126
|
+
xano workspace push ./my-workspace --no-transaction # Disable database transaction wrapping
|
|
126
127
|
xano workspace push ./my-workspace --no-sync-guids # Skip writing GUIDs back to local files
|
|
127
128
|
xano workspace push ./my-workspace --force # Skip preview and confirmation (for CI/CD)
|
|
128
129
|
|
|
@@ -331,9 +332,10 @@ xano tenant pull ./my-tenant -t <tenant_name> --draft
|
|
|
331
332
|
|
|
332
333
|
# Push local files to tenant
|
|
333
334
|
xano tenant push ./my-tenant -t <tenant_name>
|
|
334
|
-
xano tenant push ./my-tenant -t <tenant_name> --records
|
|
335
|
-
xano tenant push ./my-tenant -t <tenant_name> --env
|
|
335
|
+
xano tenant push ./my-tenant -t <tenant_name> --records # Include table records
|
|
336
|
+
xano tenant push ./my-tenant -t <tenant_name> --env # Include environment variables
|
|
336
337
|
xano tenant push ./my-tenant -t <tenant_name> --truncate
|
|
338
|
+
xano tenant push ./my-tenant -t <tenant_name> --no-transaction # Disable transaction wrapping
|
|
337
339
|
```
|
|
338
340
|
|
|
339
341
|
#### Deployments
|
package/dist/base-command.d.ts
CHANGED
|
@@ -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
|
-
|
|
26
|
+
protected updateNotice: string | null;
|
|
27
27
|
init(): Promise<void>;
|
|
28
28
|
finally(_: Error | undefined): Promise<void>;
|
|
29
29
|
private isJsonOutput;
|
|
@@ -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) {
|