Appearance
metaplay database import-archive [ENVIRONMENT] [INPUT_FILE] [flags]
Import database archive from a file
Appearance
Import database archive from a file
metaplay database import-archive [ENVIRONMENT] [INPUT_FILE] [flags] Import database archive from a file created by 'database export-archive' into the target environment.
WARNING: This is a destructive operation and will PERMANENTLY OVERWRITE ALL DATA in the target environment's database!
Safety protections:
For multi-shard environments, each shard archive will be restored to the corresponding shard in the target environment (shard_0.sql → shard 0, etc.). The target environment must have the same number of shards as the archive, or otherwise the command will fail.
Expected arguments:
Related commands:
# Import database archive to 'nimbly' environment (asks for manual confirmation)
metaplay database import-archive nimbly archive.mdb
# Auto-accept import without confirmation prompt
metaplay database import-archive nimbly archive.mdb --yes
# Import to production environment (requires additional confirmation)
metaplay database import-archive production archive.mdb --yes --confirm-production--confirm-production: Required flag when importing to production environments--force: Proceed with import even if a game server is deployed (DANGEROUS!)--yes: Skip confirmation prompt and proceed with import--color <string>: Should the output be colored (yes/no/auto)? [env: METAPLAYCLI_COLOR] (default: auto)--project <string>: Path to the to project directory (where metaplay-project.yaml is located)--skip-version-check: Skip the check for a new CLI version being available--verbose: Enable verbose logging, useful for troubleshooting [env: METAPLAYCLI_VERBOSE]