documentation/Reference/Commands/Test Connection.md
The testConnection command attempts to establish a connection to the database using the configured environment.
This command is designed to verify that Flyway and other engines used by Flyway can reach your database, ensuring the connectivity and configuration are correct before running migrations or other operations.
Currently supported engines:
If no environment is specified, the default environment will be used, if it exists.
This command only returns output and does not make any changes to your database; unlike info which may also trigger callbacks, migration validation or checksum evaluation.
flyway testConnection -environment=development
-url, -user, -password, or environment selection like -environment={name}) are supported.For a full list of configuration options, see Flyway configuration.
{
"successfulConnections" : "Flyway"
}