@xano/cli 0.0.75-beta.4 → 0.0.76
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
|
@@ -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
|
|
@@ -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()}`;
|
|
@@ -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
|