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
Copy

实参

选项

--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
    
    Copy
语言: 中文