Flags for automation, logging, and alternate config files.
All SchemaSmith Community command-line tools (SchemaQuench, SchemaTongs, and DataTongs) share a common set of switches for configuration and logging.
Switches can be passed directly on the command line or combined with configuration files.
Command-line values take the highest priority, overriding appsettings.json settings.
All switches accept either a double-dash (--) or forward-slash (/) prefix:
> SchemaQuench --ConfigFile:production.json
> SchemaQuench /ConfigFile:production.json
Values are separated from the switch name by a colon (:) or equals sign (=):
--ConfigFile:production.json
--ConfigFile=production.json
Switch names are not case-sensitive. These are all equivalent:
--version
--Version
--VERSION
If a value contains spaces, wrap it in quotes:
> SchemaQuench --ConfigFile:"C:\My Projects\config.json"
These switches are recognized by all SchemaSmith Community tools: SchemaQuench, SchemaTongs, and DataTongs.
| Switch | Aliases | Description |
|---|---|---|
--version |
-v, --ver |
Print the tool version, then exit. |
--help |
-h, -? |
Print command-line options, then exit. |
--ConfigFile:<path> |
Path to the configuration file. Overrides the default appsettings.json in the current working directory. |
|
--LogPath:<path> |
Directory for log output and backup directories. Defaults to the executable directory. |
> SchemaQuench --ConfigFile:production.json --LogPath:C:\Logs
> SchemaTongs --ConfigFile:extract-config.json
> SchemaQuench --version
> SchemaTongs --help