

You can preset login credentials and database settings by adding a block and specify options by adding to the block. The config file in the SnowSQL folder is where you can set configuration and options for the CLI. It’s preferable to the UI if you already have a grasp of terminal operations and don’t require the UI to navigate around. SnowSQL CLI is a quick way to plug into Snowflake directly from the terminal. # auto_completion gives you possible existing options, very helpful! To auto change the prompt format, add the following to the configuration file. This prompt can be a bit lengthy but you can edit the prompt with the following command: The tokens can be seen in the image above. SnowSQl prompt automatically displays the current user, warehouse, database and schema. Open the file named config and add the following.You can edit the snowSQL config file to perform these automatically.

However, it can be quite tedious to type in your account, username, password, warehouse, DB, and schema every time you login. Yours will be different unless you somehow stole my laptop in which case please give it back.)Īwesome! Now we’re ready to perform whatever data analytics you desire. (Note: Lukes-MacBook-Pro and lmunro are specific to my console.

Good! Now that snowsql has been installed, let’s set up our environment to work.Īccount name can be found in the first part of your url when logged into snowflake (everything before, for instance sample_username.sample_region.azure)ĬREATE WAREHOUSE yourname_WH AUTO_SUSPEND = 60 AUTO_RESUME=TRUE
