migratorxpress_preview_command
Preview the exact MigratorXpress migration CLI command, with passwords masked, before running it. Build and review the command safely without executing the migration or validating connectivity.
Instructions
Build and preview a MigratorXpress migration command WITHOUT executing it. Shows the exact CLI command with passwords masked. Does NOT execute the migration or validate database connectivity. After reviewing, pass the command to migratorxpress_execute_command. Set upgrade_migdb=true (0.7.0+) to build the metadata-DB upgrade command instead (needs only auth_file and migration_db_auth_id).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"auth_file": "<auth_file>",
"migration_db_auth_id": "<migration_db_auth_id>"
},
"name": "migratorxpress_preview_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force overwrite of existing migration data | |
| n_jobs | No | Number of concurrent table transfers | |
| resume | No | Resume a previous run by RUN_ID | |
| fk_mode | No | How to handle foreign key constraints. trusted: create as trusted. untrusted: create and verify. disabled: skip FK creation. | |
| license | No | License key (will be masked in display) | |
| log_dir | No | Directory for log files | |
| os_type | No | Target operating system for command formatting | linux |
| p_query | No | Parallelism degree for profiling queries | |
| project | No | Project tag attached to this run, stored on the tracking tables for later filtering (0.6.30+) | |
| max_rows | No | Maximum row count filter -- only migrate tables with at most this many rows | |
| min_rows | No | Minimum row count filter -- only migrate tables with at least this many rows | |
| quiet_ft | No | Suppress FastTransfer console output during data transfer | |
| with_xid | No | Incremental transfer (0.8.0+): skip an Oracle or Netezza table whose max ROWID / CREATEXID is unchanged since the last run and whose target table holds rows. Off by default from 0.8.0. Ignored with drop_tables_if_exists=true, no effect for a PostgreSQL or SQL Server source | |
| auth_file | Yes | Path to authentication/credentials JSON file | |
| load_mode | No | How to load data into target tables. truncate: clear target before loading. append: add to existing data. | |
| log_level | No | Logging verbosity level | |
| no_banner | No | Suppress the startup banner | |
| task_list | No | Tasks to run (e.g., ['translate', 'create', 'transfer'] for full migration, or ['diff'] for validation). Call `migratorxpress_info` with action='workflow' to get the recommended task sequence. | |
| basic_diff | No | Use basic diff mode (row counts only, no checksum) | |
| no_progress | No | Disable progress bar display | |
| without_xid | No | Before 0.8.0: transfer every Oracle / Netezza table, also those unchanged since the last run. Deprecated and ignored from 0.8.0, where this is the default (see with_xid) | |
| license_file | No | Path to the license file, passed with --license_file. MigratorXpress 0.8.0+ needs a license, also for the free 30-day trial (exit code 13 without one); without license or license_file it looks in MIGRATORXPRESS_LICENSE, ~/.migratorxpress/license.lic, %APPDATA%\MigratorXpress\license.lic and ./license.lic | |
| aci_threshold | No | Row count threshold for auto-created indexes on target | |
| cci_threshold | No | Row count threshold for clustered columnstore index creation on target | |
| upgrade_migdb | No | Upgrade the migration (tracking) DB metadata in place to the run_id schema introduced in 0.7.0, then exit (0.7.0+). Only auth_file and migration_db_auth_id are needed; cannot be combined with task_list or resume. Pre-0.7.0 tracking DBs are also auto-upgraded on the first regular 0.7.0+ run. | |
| compute_nbrows | No | Compute row counts for source tables before transfer | |
| exclude_tables | No | Table exclude patterns, comma-separated. Supports wildcards | |
| fasttransfer_p | No | FastTransfer parallel degree (number of threads per table transfer) | |
| include_tables | No | Table include patterns, comma-separated. Supports wildcards | |
| source_db_name | No | Source database name to migrate from. Required before 0.7.2; deprecated and ignored from 0.7.2 (the source auth entry's database is used) | |
| target_db_name | No | Target database name to migrate to. Required before 0.7.2; optional from 0.7.2, where it defaults to the target auth entry's database and must match it | |
| ft_large_table_th | No | Row count threshold above which FastTransfer parallelism is used | |
| migration_db_mode | No | How to handle existing target database objects. preserve: keep existing objects. truncate: empty tables before loading. drop: drop and recreate objects. | |
| source_db_auth_id | No | Source database credential ID from the auth file | |
| target_db_auth_id | No | Target database credential ID from the auth file | |
| source_schema_name | No | Source schema name. If omitted, all schemas are migrated | |
| target_schema_name | No | Target schema name. Defaults to source schema name if omitted | |
| profiling_sample_pc | No | Percentage of rows to sample for data profiling (0-100) | |
| migration_db_auth_id | Yes | Migration tracking database credential ID from the auth file | |
| drop_tables_if_exists | No | Drop target tables before creating them. Before 0.7.2 any value, including 'false', is read as true: omit it instead of passing 'false' | |
| fasttransfer_dir_path | No | Path to FastTransfer binary directory for parallel data transfer. The 0.8.0+ package bundles FastTransfer in engine/, where it is found automatically | |
| min_sample_pc_profile | No | Minimum sample percentage for profiling small tables | |
| forced_int_id_prefixes | No | Column name prefixes to force integer identity mapping | |
| forced_int_id_suffixes | No | Column name suffixes to force integer identity mapping |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tips | No | Suggested next tool calls to resolve errors. | |
| errors | No | Field-level validation errors (status='error'). | |
| status | Yes | 'ok' when the call succeeded; 'error' when the parameters failed validation or execution failed. | |
| command | No | Full CLI argv with real credentials, ready to hand to the execute tool. | |
| warnings | No | Version-compatibility warnings. | |
| explanation | No | Human-readable summary of what the command does. | |
| preview_only | No | True when no binary is configured (execution unavailable). | |
| command_string | No | The argv joined into one command string (real credentials). | |
| command_display | No | The command with the license key masked, safe to show the user. |