snow auth oidc read-token¶
Reads OIDC token based on the specified type. Use 'auto' to auto-detect available providers.
语法¶
snow auth oidc read-token
--type <_type>
--format <format>
--verbose
--debug
--silent
--enhanced-exit-codes
实参¶
无
选项¶
--type [auto|github]Type of OIDC provider to use. Default: auto.
--format [TABLE|JSON|JSON_EXT|CSV]指定输出格式。默认:TABLE。
--verbose, -v显示日志级别
info及更高级别的日志条目。默认值:False。--debug显示日志级别
debug及更高级别的日志条目;调试日志包含其他信息。默认值:False。--silent关闭到控制台的中间输出。默认值:False。
--enhanced-exit-codes根据错误类型区分退出错误代码。默认值:False。
--help显示此命令的帮助文本。
使用说明¶
The snow auth read-token command displays the OIDC token, which can be used for authentication in Snowflake operations. This command is primarily for retrieving the authentication token and must run within the supported CI/CD runner.
示例¶
Display the OIDC token in the current CI/CD environment:
snow auth oidc read-token --type github