snow connection set-default¶
Changes default connection to provided value.
Syntax¶
Arguments¶
nameName of the connection, as defined in your config.toml file.
Options¶
--format [TABLE%JSON%JSON_EXT|CSV]Specifies the output format. Default: TABLE.
--verbose, -vDisplays log entries for log levels info and higher. Default: False.
--debugDisplays log entries for log levels debug and higher; debug logs contain additional information. Default: False.
--silentTurns off intermediate output to console. Default: False.
--enhanced-exit-codesDifferentiate exit error codes based on failure type. Default: False.
--decimal-precision INTEGERNumber of decimal places to display for decimal values. Uses Python’s default precision if not specified. [env var: SNOWFLAKE_DECIMAL_PRECISION].
--helpDisplays the help text for this command.
Usage notes¶
This command lets you change the default connection from the command line instead of changing the value of default_connection_name in the config.toml file each time. Using this command can simplify changing between multiple connections.