snow

開発者向けの Snowflake CLI ツール。

構文

snow [<resource-commands>]
  --version
  --info
  --config-file <configuration_file>
  --help
Copy

引数

[resource-commands]

Snowflake CLI リソースを管理するためのオプションのコマンド。

オプション

--version

Snowflake CLI のバージョンを表示します。

--info

Snowflake CLI に関する情報を表示します。

--config-file configuration_file

使用する代替 Snowflake CLI 構成ファイルを指定します。

--help

このコマンドのヘルプテキストを表示します。

使用上の注意

snow コマンドは、Snowflakeリソースを管理するための次のコマンドをサポートしています。

  • Snowflake CLI バージョンを表示するには、次のコマンドを実行します。

    snow --version
    
    Copy
    Snowflake CLI version: 3.0.0
    
  • Snowflake CLI に関する情報を表示するには、次のコマンドを実行します。

    snow --info
    
    Copy
    [
        {
            "key": "version",
            "value": "3.0.0"
        },
        {
            "key": "default_config_file_path",
            "value": "<user-home>/.snowflake/config.toml"
        },
        {
            "key": "python_version",
            "value": "3.11.6 (v3.11.6:8b6ee5ba3b, Oct  2 2023, 11:18:21) [Clang 13.0.0 (clang-1300.0.29.30)]"
        },
        {
            "key": "system_info",
            "value": "macOS-14.4.1-x86_64-i386-64bit"
        },
        {
            "key": "feature_flags",
            "value": {}
        }
    ]
    
  • snow コマンドのコマンドラインヘルプを表示するには、次のコマンドを実行します。

    snow --help
    
    Copy
    Usage: snow [OPTIONS] COMMAND [ARGS]...
    
    Snowflake CLI tool for developers.
    
    ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ --version                           Shows version of the Snowflake CLI                                                                   │
    │ --info                              Shows information about the Snowflake CLI                                                            │
    │ --config-file                 FILE  Specifies Snowflake CLI configuration file that should be used [default: None]                       │
    │ --install-completion                Install completion for the current shell.                                                            │
    │ --show-completion                   Show completion for the current shell, to copy it or customize the installation.                     │
    │ --help                -h            Show this message and exit.                                                                          │
    ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
    ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ app          Manages a Snowflake Native App                                                                                              │
    │ connection   Manages connections to Snowflake.                                                                                           │
    │ cortex       Provides access to Snowflake Cortex.                                                                                        │
    │ git          Manages git repositories in Snowflake.                                                                                      │
    │ notebook     Manages notebooks in Snowflake.                                                                                             │
    │ object       Manages Snowflake objects like warehouses and stages                                                                        │
    │ snowpark     Manages procedures and functions.                                                                                           │
    │ spcs         Manages Snowpark Container Services compute pools, services, image registries, and image repositories.                      │
    │ sql          Executes Snowflake query.                                                                                                   │
    │ stage        Manages stages.                                                                                                             │
    │ streamlit    Manages a Streamlit app in Snowflake.                                                                                       │
    ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
    
  • コマンドラインヘルプのリソースコマンドを表示するには、次のようなコマンドを実行して、snow spcs コマンドのヘルプを表示します。

    snow spcs --help
    
    Copy
    Usage: snow spcs [OPTIONS] COMMAND [ARGS]...
    
    Manages Snowpark Container Services compute pools, services, image registries, and image repositories.
    
    ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ --help  -h        Show this message and exit.                                                                        │
    ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
    ╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ compute-pool       Manages compute pools.                                                                            │
    │ image-registry     Manages image registries.                                                                         │
    │ image-repository   Manages image repositories.                                                                       │
    │ service            Manages services.                                                                                 │
    ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯