snow helpers detect-encoding¶
Show the encoding configuration for the current environment.
Syntax¶
Arguments¶
None
Options¶
--format [TABLE|JSON|JSON_EXT|CSV]Specifies the output format. [env var: SNOWFLAKE_CLI_OUTPUT_FORMAT | config: cli.output_format]. Default: TABLE.
--verbose, -vDisplays log entries for log levels
infoand higher. Default: False.--debugDisplays log entries for log levels
debugand 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¶
Use snow helpers detect-encoding to inspect the text encoding Snowflake CLI uses in the current environment and to diagnose encoding warnings. The command reports the encodings applied to reading and writing project files, decoding subprocess output, and writing output to standard output, and it highlights settings that can corrupt files when projects are shared across platforms, for example between Windows and macOS or Linux.
To change these encodings, configure the [cli.encoding] section of config.toml or set the corresponding SNOWFLAKE_CLI_ENCODING_* environment variables. For more information, see Configuring Snowflake CLI.
Examples¶
-
Show the encoding configuration for the current environment:
-
Emit the encoding details as JSON for scripting: