Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/commands/migrateContent/run/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ The command provides several parameters to cover various scenarios for selecting
| `--depth` | (Optional) The depth of linked items to include in the migration. |
| `--limit` | (Optional) The maximum number of content items to retrieve per API call (default is 100, maximum is 100). |
| `--configFile` | (Optional) Path to a JSON configuration file containing parameters. |
| `--skipConfirmation` | (Optional) Skip confirmation message. |

To see all supported parameters, run:

Expand Down
3 changes: 2 additions & 1 deletion src/commands/migrateContent/run/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const register: RegisterCommand = (yargs) =>
.option("skipConfirmation", {
type: "boolean",
describe: "Skip confirmation message.",
alias: "sc",
})
.option("kontentUrl", {
type: "string",
Expand Down Expand Up @@ -149,7 +150,7 @@ const migrateContentRunCli = async (params: MigrateContentRunCliParams) => {
await migrateContentRunInternal(resolvedParams, "migrate-content-run", async () => {
await checkConfirmation({
message: `⚠ Running this operation may result in irreversible changes to the content in environment ${params.targetEnvironmentId}.
OK to proceed y/n? (suppress this message with --sw parameter)\n`,
OK to proceed y/n? (suppress this message with --sc parameter)\n`,
skipConfirmation: params.skipConfirmation,
logOptions: params,
});
Expand Down
3 changes: 2 additions & 1 deletion src/commands/sync/run/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const register: RegisterCommand = (yargs) =>
.option("skipConfirmation", {
type: "boolean",
describe: "Skip confirmation message.",
alias: "sc",
})
.option("kontentUrl", {
type: "string",
Expand Down Expand Up @@ -100,7 +101,7 @@ const syncRunCli = async (params: SyncModelRunCliParams) => {
await checkConfirmation({
message: `⚠ Running this operation may result in irreversible changes to the content in environment ${params.targetEnvironmentId}. Mentioned changes might include:
- Removing content due to element deletion
OK to proceed y/n? (suppress this message with --sw parameter)\n`,
OK to proceed y/n? (suppress this message with --sc parameter)\n`,
skipConfirmation: params.skipConfirmation,
logOptions: params,
});
Expand Down
Loading