windmill-cli 1.799.0 → 1.800.0
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/esm/main.js +91 -39
- package/package.json +1 -1
package/esm/main.js
CHANGED
|
@@ -16769,7 +16769,7 @@ var init_OpenAPI = __esm(() => {
|
|
|
16769
16769
|
PASSWORD: undefined,
|
|
16770
16770
|
TOKEN: getEnv3("WM_TOKEN"),
|
|
16771
16771
|
USERNAME: undefined,
|
|
16772
|
-
VERSION: "1.
|
|
16772
|
+
VERSION: "1.800.0",
|
|
16773
16773
|
WITH_CREDENTIALS: true,
|
|
16774
16774
|
interceptors: {
|
|
16775
16775
|
request: new Interceptors,
|
|
@@ -27786,7 +27786,7 @@ var init_auth = __esm(async () => {
|
|
|
27786
27786
|
});
|
|
27787
27787
|
|
|
27788
27788
|
// src/core/constants.ts
|
|
27789
|
-
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.
|
|
27789
|
+
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.800.0";
|
|
27790
27790
|
|
|
27791
27791
|
// src/utils/git.ts
|
|
27792
27792
|
var exports_git = {};
|
|
@@ -65853,7 +65853,7 @@ var init_openflow = __esm(() => {
|
|
|
65853
65853
|
openflow_default = {
|
|
65854
65854
|
openapi: "3.0.3",
|
|
65855
65855
|
info: {
|
|
65856
|
-
version: "1.
|
|
65856
|
+
version: "1.800.0",
|
|
65857
65857
|
title: "OpenFlow Spec",
|
|
65858
65858
|
contact: {
|
|
65859
65859
|
name: "Ruben Fiszel",
|
|
@@ -73327,17 +73327,15 @@ async function readDirRecursive(dir, rel = "", out = {}) {
|
|
|
73327
73327
|
}
|
|
73328
73328
|
return out;
|
|
73329
73329
|
}
|
|
73330
|
-
async function
|
|
73331
|
-
const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
|
|
73332
|
-
if (!fs11.existsSync(localDir)) {
|
|
73333
|
-
return [];
|
|
73334
|
-
}
|
|
73335
|
-
const files = await readDirRecursive(localDir);
|
|
73336
|
-
let remote = {};
|
|
73330
|
+
async function fetchSharedUi(workspace) {
|
|
73337
73331
|
try {
|
|
73338
73332
|
const got = await getSharedUi({ workspace });
|
|
73339
|
-
|
|
73340
|
-
} catch {
|
|
73333
|
+
return got.files ?? {};
|
|
73334
|
+
} catch {
|
|
73335
|
+
return;
|
|
73336
|
+
}
|
|
73337
|
+
}
|
|
73338
|
+
function sharedUiChanges(files, remote, keepDeleted) {
|
|
73341
73339
|
const changes = [];
|
|
73342
73340
|
for (const [rel, content] of Object.entries(files)) {
|
|
73343
73341
|
const p4 = `${SHARED_UI_DIR}/${rel}`;
|
|
@@ -73347,24 +73345,54 @@ async function diffSharedUi(workspace) {
|
|
|
73347
73345
|
changes.push({ type: "edited", path: p4, before: remote[rel], after: content });
|
|
73348
73346
|
}
|
|
73349
73347
|
}
|
|
73350
|
-
|
|
73351
|
-
|
|
73352
|
-
|
|
73348
|
+
if (!keepDeleted) {
|
|
73349
|
+
for (const rel of Object.keys(remote)) {
|
|
73350
|
+
if (!Object.hasOwn(files, rel)) {
|
|
73351
|
+
changes.push({ type: "deleted", path: `${SHARED_UI_DIR}/${rel}` });
|
|
73352
|
+
}
|
|
73353
73353
|
}
|
|
73354
73354
|
}
|
|
73355
73355
|
return changes;
|
|
73356
73356
|
}
|
|
73357
|
-
async function
|
|
73357
|
+
async function diffSharedUi(workspace, keepDeleted) {
|
|
73358
|
+
const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
|
|
73359
|
+
if (!fs11.existsSync(localDir)) {
|
|
73360
|
+
return [];
|
|
73361
|
+
}
|
|
73362
|
+
const files = await readDirRecursive(localDir);
|
|
73363
|
+
const remote = await fetchSharedUi(workspace);
|
|
73364
|
+
if (remote === undefined && keepDeleted) {
|
|
73365
|
+
return [];
|
|
73366
|
+
}
|
|
73367
|
+
return sharedUiChanges(files, remote ?? {}, keepDeleted);
|
|
73368
|
+
}
|
|
73369
|
+
async function pushSharedUi(workspace, keepDeleted) {
|
|
73358
73370
|
const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
|
|
73359
73371
|
if (!fs11.existsSync(localDir)) {
|
|
73360
73372
|
return false;
|
|
73361
73373
|
}
|
|
73362
|
-
const
|
|
73363
|
-
|
|
73374
|
+
const files = await readDirRecursive(localDir);
|
|
73375
|
+
const remote = await fetchSharedUi(workspace);
|
|
73376
|
+
if (remote === undefined && keepDeleted) {
|
|
73377
|
+
warn(colors.yellow("Could not read the shared UI folder from the remote; skipping its push so --keep-deleted does not clear it."));
|
|
73378
|
+
return false;
|
|
73379
|
+
}
|
|
73380
|
+
if (sharedUiChanges(files, remote ?? {}, keepDeleted).length === 0) {
|
|
73364
73381
|
info(colors.gray("Shared UI folder up to date"));
|
|
73365
73382
|
return false;
|
|
73366
73383
|
}
|
|
73367
|
-
|
|
73384
|
+
if (keepDeleted) {
|
|
73385
|
+
for (const [rel, content] of Object.entries(remote)) {
|
|
73386
|
+
if (!Object.hasOwn(files, rel)) {
|
|
73387
|
+
Object.defineProperty(files, rel, {
|
|
73388
|
+
value: content,
|
|
73389
|
+
writable: true,
|
|
73390
|
+
enumerable: true,
|
|
73391
|
+
configurable: true
|
|
73392
|
+
});
|
|
73393
|
+
}
|
|
73394
|
+
}
|
|
73395
|
+
}
|
|
73368
73396
|
await updateSharedUi({
|
|
73369
73397
|
workspace,
|
|
73370
73398
|
requestBody: { files }
|
|
@@ -73372,7 +73400,7 @@ async function pushSharedUi(workspace) {
|
|
|
73372
73400
|
info(colors.green(`Pushed ${Object.keys(files).length} file(s) to shared UI folder`));
|
|
73373
73401
|
return true;
|
|
73374
73402
|
}
|
|
73375
|
-
async function pullSharedUi(workspace) {
|
|
73403
|
+
async function pullSharedUi(workspace, keepDeleted) {
|
|
73376
73404
|
const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
|
|
73377
73405
|
let got;
|
|
73378
73406
|
try {
|
|
@@ -73399,14 +73427,16 @@ async function pullSharedUi(workspace) {
|
|
|
73399
73427
|
fs11.writeFileSync(full, content, "utf-8");
|
|
73400
73428
|
}
|
|
73401
73429
|
}
|
|
73402
|
-
|
|
73403
|
-
|
|
73404
|
-
|
|
73405
|
-
|
|
73406
|
-
|
|
73407
|
-
|
|
73408
|
-
|
|
73409
|
-
|
|
73430
|
+
if (!keepDeleted) {
|
|
73431
|
+
const known = new Set(Object.keys(files));
|
|
73432
|
+
const local = await readDirRecursive(localDir);
|
|
73433
|
+
for (const rel of Object.keys(local)) {
|
|
73434
|
+
if (!known.has(rel)) {
|
|
73435
|
+
const full = path11.join(localDir, rel);
|
|
73436
|
+
try {
|
|
73437
|
+
fs11.unlinkSync(full);
|
|
73438
|
+
} catch {}
|
|
73439
|
+
}
|
|
73410
73440
|
}
|
|
73411
73441
|
}
|
|
73412
73442
|
info(colors.green(`Pulled ${Object.keys(files).length} file(s) into ui/`));
|
|
@@ -75896,6 +75926,15 @@ function countDatatableMigrationRecords(changes) {
|
|
|
75896
75926
|
function untrackedDatatableMigrationDeletions(changes, recorded) {
|
|
75897
75927
|
return changes.filter((c5) => c5.name === "deleted" && isDatatableMigrationPath(c5.path) && !(recorded.kind === "known" && recorded.paths.has(c5.path)));
|
|
75898
75928
|
}
|
|
75929
|
+
function dropDeletions(changes, keptOn) {
|
|
75930
|
+
const deletions = changes.filter((c5) => c5.name === "deleted");
|
|
75931
|
+
if (deletions.length === 0)
|
|
75932
|
+
return;
|
|
75933
|
+
const kept = changes.filter((c5) => c5.name !== "deleted");
|
|
75934
|
+
changes.length = 0;
|
|
75935
|
+
changes.push(...kept);
|
|
75936
|
+
info(colors.yellow(`--keep-deleted: keeping ${deletions.length} item(s) that exist only ` + (keptOn === "local" ? `on disk instead of deleting them locally` : `on the remote instead of deleting them from the workspace`)));
|
|
75937
|
+
}
|
|
75899
75938
|
async function addModuleParentToChanged(p4, tracker) {
|
|
75900
75939
|
if (isModuleEntryMetadata(p4)) {
|
|
75901
75940
|
try {
|
|
@@ -76153,6 +76192,9 @@ async function pull(opts) {
|
|
|
76153
76192
|
const remote = ZipFSElement(zipFile, !opts.json, opts.defaultTs ?? "bun", resourceTypeToFormatExtension, resourceTypeToIsFileset, true, parseSyncBehavior(opts.syncBehavior) >= 1);
|
|
76154
76193
|
const local = !opts.stateful ? await FSFSElement(process.cwd(), codebases, true) : await FSFSElement(path13.join(process.cwd(), ".wmill"), [], true);
|
|
76155
76194
|
const { changes, localMap } = await compareDynFSElement(remote, local, await ignoreF(opts), opts.json ?? false, opts, false, codebases, true, specificItems, wsNameForFiles, true, await isCaseInsensitiveFilesystem(process.cwd()));
|
|
76195
|
+
if (opts.keepDeleted) {
|
|
76196
|
+
dropDeletions(changes, "local");
|
|
76197
|
+
}
|
|
76156
76198
|
info(`remote (${workspace.name}) -> local: ${changes.length} changes to apply`);
|
|
76157
76199
|
if (wsSpecificMerge.serverItems && wsSpecificMerge.serverItems.length > 0) {
|
|
76158
76200
|
const changedPaths = new Set(changes.map((c5) => c5.path));
|
|
@@ -76372,10 +76414,12 @@ Done! All ${changes.length} changes applied locally and wmill-lock.yaml updated.
|
|
|
76372
76414
|
warn(colors.yellow(`Could not auto-fill missing lockfile entries: ${e4 instanceof Error ? e4.message : e4}`));
|
|
76373
76415
|
}
|
|
76374
76416
|
}
|
|
76375
|
-
|
|
76376
|
-
|
|
76377
|
-
|
|
76378
|
-
|
|
76417
|
+
if (!opts.dryRun) {
|
|
76418
|
+
try {
|
|
76419
|
+
await pullSharedUi(workspace.workspaceId, opts.keepDeleted);
|
|
76420
|
+
} catch (e4) {
|
|
76421
|
+
warn(`Failed to pull shared UI folder: ${e4}`);
|
|
76422
|
+
}
|
|
76379
76423
|
}
|
|
76380
76424
|
}
|
|
76381
76425
|
async function dedupeLockfilesOnDisk(args) {
|
|
@@ -76487,6 +76531,9 @@ function prettyChanges(changes, specificItems, branchOverride, folderDefaultAnno
|
|
|
76487
76531
|
function removeSuffix(str, suffix) {
|
|
76488
76532
|
return str.slice(0, str.length - suffix.length);
|
|
76489
76533
|
}
|
|
76534
|
+
function syncPushDestructiveWarning(keepDeleted) {
|
|
76535
|
+
return "`wmill sync push` is destructive: applying it deploys these changes to the remote workspace and overwrites " + (keepDeleted ? "remote items that differ from local" : "or deletes remote items that differ from or are absent locally") + " — this is not automatically reversible. If you are an AI agent, do NOT run `wmill sync push` (without --dry-run) until the user has explicitly confirmed this deploy, unless your custom instructions explicitly allow bypassing that confirmation.";
|
|
76536
|
+
}
|
|
76490
76537
|
async function checkServerLockJobs(workspaceId, sinceIso, changedPaths) {
|
|
76491
76538
|
const belongsToPush = (scriptPath) => !!scriptPath && changedPaths.some((p4) => p4 === scriptPath || p4.startsWith(scriptPath + "."));
|
|
76492
76539
|
const listJobs2 = async (path14) => {
|
|
@@ -76662,6 +76709,9 @@ Push aborted: ${lockIssues.length} script(s) missing locks.`));
|
|
|
76662
76709
|
if (unconvertedTree) {
|
|
76663
76710
|
warn(colors.yellow(`dedupeLockfiles is on but this checkout still holds one lockfile per script. Run 'wmill generate-metadata' (or pull) to convert it — until then every script reads as changed.`));
|
|
76664
76711
|
}
|
|
76712
|
+
if (opts.keepDeleted) {
|
|
76713
|
+
dropDeletions(changes, "remote");
|
|
76714
|
+
}
|
|
76665
76715
|
const autoRegenerate = !!opts.autoMetadata;
|
|
76666
76716
|
const staleScripts = [];
|
|
76667
76717
|
const staleFlows = [];
|
|
@@ -76827,7 +76877,7 @@ Push aborted: ${lockIssues.length} script(s) missing locks.`));
|
|
|
76827
76877
|
}
|
|
76828
76878
|
if (opts.dryRun) {
|
|
76829
76879
|
try {
|
|
76830
|
-
for (const c5 of await diffSharedUi(workspace.workspaceId)) {
|
|
76880
|
+
for (const c5 of await diffSharedUi(workspace.workspaceId, opts.keepDeleted)) {
|
|
76831
76881
|
if (c5.type === "added") {
|
|
76832
76882
|
changes.push({ name: "added", path: c5.path, content: "" });
|
|
76833
76883
|
} else if (c5.type === "deleted") {
|
|
@@ -76949,7 +76999,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
76949
76999
|
} : {}
|
|
76950
77000
|
})),
|
|
76951
77001
|
total: changes.length,
|
|
76952
|
-
...changes.length > 0 ? { warning:
|
|
77002
|
+
...changes.length > 0 ? { warning: syncPushDestructiveWarning(opts.keepDeleted) } : {}
|
|
76953
77003
|
};
|
|
76954
77004
|
console.log(JSON.stringify(result, null, 2));
|
|
76955
77005
|
return;
|
|
@@ -76996,7 +77046,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
76996
77046
|
if (opts.dryRun) {
|
|
76997
77047
|
info(colors.gray(`Dry run complete.`));
|
|
76998
77048
|
warn(colors.yellow(`
|
|
76999
|
-
⚠ ${
|
|
77049
|
+
⚠ ${syncPushDestructiveWarning(opts.keepDeleted)}`));
|
|
77000
77050
|
return;
|
|
77001
77051
|
}
|
|
77002
77052
|
let permissionedAsContext = undefined;
|
|
@@ -77577,7 +77627,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
77577
77627
|
}
|
|
77578
77628
|
}
|
|
77579
77629
|
try {
|
|
77580
|
-
await pushSharedUi(workspace.workspaceId);
|
|
77630
|
+
await pushSharedUi(workspace.workspaceId, opts.keepDeleted);
|
|
77581
77631
|
} catch (e4) {
|
|
77582
77632
|
warn(`Failed to push shared UI folder: ${e4}`);
|
|
77583
77633
|
}
|
|
@@ -77636,7 +77686,7 @@ Done! All ${changes.length} changes pushed to the remote workspace ${workspace.w
|
|
|
77636
77686
|
let sharedUiPushed = false;
|
|
77637
77687
|
if (!opts.dryRun) {
|
|
77638
77688
|
try {
|
|
77639
|
-
sharedUiPushed = await pushSharedUi(workspace.workspaceId);
|
|
77689
|
+
sharedUiPushed = await pushSharedUi(workspace.workspaceId, opts.keepDeleted);
|
|
77640
77690
|
} catch (e4) {
|
|
77641
77691
|
warn(`Failed to push shared UI folder: ${e4}`);
|
|
77642
77692
|
}
|
|
@@ -77680,7 +77730,7 @@ var import_yaml14, branchDeprecationWarned = false, yamlOptions, _caseInsensitiv
|
|
|
77680
77730
|
}
|
|
77681
77731
|
}, isWhitelisted = (p4) => {
|
|
77682
77732
|
return p4 == "." + SEP9 || p4 == "" || p4 == "u" || p4 == "f" || p4 == "g" || p4 == "ui" || p4 == "users" || p4 == "groups" || p4 == "dependencies" || p4 == SHARED_LOCK_DIR || p4 == "migrations";
|
|
77683
|
-
},
|
|
77733
|
+
}, command8, sync_default;
|
|
77684
77734
|
var init_sync = __esm(async () => {
|
|
77685
77735
|
init_client();
|
|
77686
77736
|
init_colors2();
|
|
@@ -77727,7 +77777,7 @@ var init_sync = __esm(async () => {
|
|
|
77727
77777
|
aliasDuplicateObjects: false,
|
|
77728
77778
|
singleQuote: true
|
|
77729
77779
|
};
|
|
77730
|
-
command8 = new Command().description("sync local with a remote workspaces or the opposite (push or pull)").action(() => info("2 actions available, pull and push. Use -h to display help.")).command("pull").description("Pull any remote changes and apply them locally.").option("--yes", "Pull without needing confirmation").option("--dry-run", "Show changes that would be pulled without actually pushing").option("--plain-secrets", "Pull secrets as plain text").option("--json", "Use JSON instead of YAML").option("--skip-variables", "Skip syncing variables (including secrets)").option("--skip-secrets", "Skip syncing only secrets variables").option("--include-secrets", "Include secrets in sync (overrides skipSecrets in wmill.yaml)").option("--skip-resources", "Skip syncing resources").option("--skip-resource-types", "Skip syncing resource types").option("--skip-scripts", "Skip syncing scripts").option("--skip-flows", "Skip syncing flows").option("--skip-apps", "Skip syncing apps").option("--skip-folders", "Skip syncing folders").option("--skip-workspace-dependencies", "Skip syncing workspace dependencies").option("--include-schedules", "Include syncing schedules").option("--include-triggers", "Include syncing triggers").option("--include-users", "Include syncing users").option("--include-groups", "Include syncing groups").option("--include-settings", "Include syncing workspace settings").option("--include-key", "Include workspace encryption key").option("--skip-branch-validation", "Skip git branch validation and prompts").option("--json-output", "Output results in JSON format").option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Overrides wmill.yaml includes").option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account. Overrides wmill.yaml excludes").option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy").option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist").option("--promotion <branch:string>", "Use promotionOverrides from the specified branch instead of regular overrides").option("--branch, --env <branch:string>", "[Deprecated: use --workspace] Override the current git branch/environment").action(pull).command("push").description("Push any local changes and apply them remotely.").option("--yes", "Push without needing confirmation").option("--dry-run", "Show changes that would be pushed without actually pushing").option("--plain-secrets", "Push secrets as plain text").option("--json", "Use JSON instead of YAML").option("--skip-variables", "Skip syncing variables (including secrets)").option("--skip-secrets", "Skip syncing only secrets variables").option("--include-secrets", "Include secrets in sync (overrides skipSecrets in wmill.yaml)").option("--skip-resources", "Skip syncing resources").option("--skip-resource-types", "Skip syncing resource types").option("--skip-scripts", "Skip syncing scripts").option("--skip-flows", "Skip syncing flows").option("--skip-apps", "Skip syncing apps").option("--skip-folders", "Skip syncing folders").option("--skip-workspace-dependencies", "Skip syncing workspace dependencies").option("--include-schedules", "Include syncing schedules").option("--include-triggers", "Include syncing triggers").option("--include-users", "Include syncing users").option("--include-groups", "Include syncing groups").option("--include-settings", "Include syncing workspace settings").option("--include-key", "Include workspace encryption key").option("--skip-reencrypt-on-key-change", "When the pushed encryption key differs from the remote, do NOT re-encrypt existing remote secrets. Only safe if they are already encrypted with the new key (e.g. workspace/instance migration). Default is to re-encrypt.").option("--skip-branch-validation", "Skip git branch validation and prompts").option("--json-output", "Output results in JSON format").option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)").option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account.").option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy").option("--message <message:string>", "Include a message that will be added to all scripts/flows/apps updated during this push").option("--parallel <number>", "Number of changes to process in parallel").option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist").option("--branch, --env <branch:string>", "[Deprecated: use --workspace] Override the current git branch/environment").option("--lint", "Run lint validation before pushing").option("--locks-required", "Fail if scripts or flow inline scripts that need locks have no locks").option("--auto-metadata", "Automatically regenerate stale metadata (locks and schemas) before pushing").option("--accept-overriding-permissioned-as-with-self", "Accept that items with a different permissioned_as will be updated with your own user").action(push4).command("git-deploy").hidden().description("Internal git-sync deployment-callback step (used by the git-sync hub script). Runs inside an existing clone: switches to the wm_deploy/fork branch when applicable, pulls workspace content, then commits and pushes.").option("--repository <repo:string>", "Repository resource path (e.g. u/user/repo)").option("--git-deploy-items <json:string>", "JSON array of {path_type,path,parent_path,commit_msg} being deployed").option("--use-individual-branch", "Push each deployed object to its own wm_deploy/<workspace>/<...> branch").option("--group-by-folder", "With --use-individual-branch, group deployed objects per folder branch").option("--only-create-branch", "Only create/push the deploy branch, skip pulling and committing files").option("--parent-workspace-id <id:string>", "Parent workspace id, used to root a fork-of-a-fork branch").option("--dev-workspace-label <label:string>", "Environment label of a dev workspace (dev, staging, uat, ...); its deploys go to that branch").option("--parent-dev-workspace-label <label:string>", "Environment label of the parent dev workspace; roots a fork-of-dev branch on it").option("--skip-secrets", "Skip syncing only secrets variables").option("--git-committer-email <email:string>", "Committer email for the deploy commit (GPG-signed repos pass the GPG key email; defaults to WM_EMAIL)").option("--git-committer-name <name:string>", "Committer name for the deploy commit (defaults to WM_USERNAME)").action(gitDeploy);
|
|
77780
|
+
command8 = new Command().description("sync local with a remote workspaces or the opposite (push or pull)").action(() => info("2 actions available, pull and push. Use -h to display help.")).command("pull").description("Pull any remote changes and apply them locally.").option("--yes", "Pull without needing confirmation").option("--dry-run", "Show changes that would be pulled without actually pushing").option("--plain-secrets", "Pull secrets as plain text").option("--json", "Use JSON instead of YAML").option("--skip-variables", "Skip syncing variables (including secrets)").option("--skip-secrets", "Skip syncing only secrets variables").option("--include-secrets", "Include secrets in sync (overrides skipSecrets in wmill.yaml)").option("--skip-resources", "Skip syncing resources").option("--skip-resource-types", "Skip syncing resource types").option("--skip-scripts", "Skip syncing scripts").option("--skip-flows", "Skip syncing flows").option("--skip-apps", "Skip syncing apps").option("--skip-folders", "Skip syncing folders").option("--skip-workspace-dependencies", "Skip syncing workspace dependencies").option("--include-schedules", "Include syncing schedules").option("--include-triggers", "Include syncing triggers").option("--include-users", "Include syncing users").option("--include-groups", "Include syncing groups").option("--include-settings", "Include syncing workspace settings").option("--include-key", "Include workspace encryption key").option("--keep-deleted", "Do not delete local files for items that no longer exist on the remote workspace. Only adds and updates.").option("--skip-branch-validation", "Skip git branch validation and prompts").option("--json-output", "Output results in JSON format").option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Overrides wmill.yaml includes").option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account. Overrides wmill.yaml excludes").option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy").option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist").option("--promotion <branch:string>", "Use promotionOverrides from the specified branch instead of regular overrides").option("--branch, --env <branch:string>", "[Deprecated: use --workspace] Override the current git branch/environment").action(pull).command("push").description("Push any local changes and apply them remotely.").option("--yes", "Push without needing confirmation").option("--dry-run", "Show changes that would be pushed without actually pushing").option("--plain-secrets", "Push secrets as plain text").option("--json", "Use JSON instead of YAML").option("--skip-variables", "Skip syncing variables (including secrets)").option("--skip-secrets", "Skip syncing only secrets variables").option("--include-secrets", "Include secrets in sync (overrides skipSecrets in wmill.yaml)").option("--skip-resources", "Skip syncing resources").option("--skip-resource-types", "Skip syncing resource types").option("--skip-scripts", "Skip syncing scripts").option("--skip-flows", "Skip syncing flows").option("--skip-apps", "Skip syncing apps").option("--skip-folders", "Skip syncing folders").option("--skip-workspace-dependencies", "Skip syncing workspace dependencies").option("--include-schedules", "Include syncing schedules").option("--include-triggers", "Include syncing triggers").option("--include-users", "Include syncing users").option("--include-groups", "Include syncing groups").option("--include-settings", "Include syncing workspace settings").option("--include-key", "Include workspace encryption key").option("--skip-reencrypt-on-key-change", "When the pushed encryption key differs from the remote, do NOT re-encrypt existing remote secrets. Only safe if they are already encrypted with the new key (e.g. workspace/instance migration). Default is to re-encrypt.").option("--keep-deleted", "Do not delete remote items that no longer exist locally. Only adds and updates.").option("--skip-branch-validation", "Skip git branch validation and prompts").option("--json-output", "Output results in JSON format").option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)").option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account.").option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy").option("--message <message:string>", "Include a message that will be added to all scripts/flows/apps updated during this push").option("--parallel <number>", "Number of changes to process in parallel").option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist").option("--branch, --env <branch:string>", "[Deprecated: use --workspace] Override the current git branch/environment").option("--lint", "Run lint validation before pushing").option("--locks-required", "Fail if scripts or flow inline scripts that need locks have no locks").option("--auto-metadata", "Automatically regenerate stale metadata (locks and schemas) before pushing").option("--accept-overriding-permissioned-as-with-self", "Accept that items with a different permissioned_as will be updated with your own user").action(push4).command("git-deploy").hidden().description("Internal git-sync deployment-callback step (used by the git-sync hub script). Runs inside an existing clone: switches to the wm_deploy/fork branch when applicable, pulls workspace content, then commits and pushes.").option("--repository <repo:string>", "Repository resource path (e.g. u/user/repo)").option("--git-deploy-items <json:string>", "JSON array of {path_type,path,parent_path,commit_msg} being deployed").option("--use-individual-branch", "Push each deployed object to its own wm_deploy/<workspace>/<...> branch").option("--group-by-folder", "With --use-individual-branch, group deployed objects per folder branch").option("--only-create-branch", "Only create/push the deploy branch, skip pulling and committing files").option("--parent-workspace-id <id:string>", "Parent workspace id, used to root a fork-of-a-fork branch").option("--dev-workspace-label <label:string>", "Environment label of a dev workspace (dev, staging, uat, ...); its deploys go to that branch").option("--parent-dev-workspace-label <label:string>", "Environment label of the parent dev workspace; roots a fork-of-dev branch on it").option("--skip-secrets", "Skip syncing only secrets variables").option("--git-committer-email <email:string>", "Committer email for the deploy commit (GPG-signed repos pass the GPG key email; defaults to WM_EMAIL)").option("--git-committer-name <name:string>", "Committer name for the deploy commit (defaults to WM_USERNAME)").action(gitDeploy);
|
|
77731
77781
|
sync_default = command8;
|
|
77732
77782
|
});
|
|
77733
77783
|
|
|
@@ -95219,6 +95269,7 @@ sync local with a remote workspaces or the opposite (push or pull)
|
|
|
95219
95269
|
- \`--include-groups\` - Include syncing groups
|
|
95220
95270
|
- \`--include-settings\` - Include syncing workspace settings
|
|
95221
95271
|
- \`--include-key\` - Include workspace encryption key
|
|
95272
|
+
- \`--keep-deleted\` - Do not delete local files for items that no longer exist on the remote workspace. Only adds and updates.
|
|
95222
95273
|
- \`--skip-branch-validation\` - Skip git branch validation and prompts
|
|
95223
95274
|
- \`--json-output\` - Output results in JSON format
|
|
95224
95275
|
- \`-i --includes <patterns:file[]>\` - Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Overrides wmill.yaml includes
|
|
@@ -95250,6 +95301,7 @@ sync local with a remote workspaces or the opposite (push or pull)
|
|
|
95250
95301
|
- \`--include-settings\` - Include syncing workspace settings
|
|
95251
95302
|
- \`--include-key\` - Include workspace encryption key
|
|
95252
95303
|
- \`--skip-reencrypt-on-key-change\` - When the pushed encryption key differs from the remote, do NOT re-encrypt existing remote secrets. Only safe if they are already encrypted with the new key (e.g. workspace/instance migration). Default is to re-encrypt.
|
|
95304
|
+
- \`--keep-deleted\` - Do not delete remote items that no longer exist locally. Only adds and updates.
|
|
95253
95305
|
- \`--skip-branch-validation\` - Skip git branch validation and prompts
|
|
95254
95306
|
- \`--json-output\` - Output results in JSON format
|
|
95255
95307
|
- \`-i --includes <patterns:file[]>\` - Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)
|