From 7649caa8d8e527ee47e3cff3109b2ae67326a979 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 14 May 2025 00:59:52 +0200 Subject: [PATCH] chore(snowflake): expand kb a little --- knowledge base/snowflake.md | 99 +++++++++++++++++++++++++++++++------ snippets/snowflake.fish | 6 +++ 2 files changed, 90 insertions(+), 15 deletions(-) create mode 100644 snippets/snowflake.fish diff --git a/knowledge base/snowflake.md b/knowledge base/snowflake.md index e236435..a1e4ea2 100644 --- a/knowledge base/snowflake.md +++ b/knowledge base/snowflake.md @@ -9,6 +9,7 @@ Intro 1. [TL;DR](#tldr) 1. [Snowflake CLI](#snowflake-cli) +1. [RoleOut](#roleout) 1. [Further readings](#further-readings) 1. [Sources](#sources) @@ -17,31 +18,71 @@ Intro
Setup -```sh -# Install Snowflake CLI. -# Get it from the [Snowflake CLI repository]. -curl -fsSLO 'https://sfc-repo.snowflakecomputing.com/snowflake-cli/linux_aarch64/3.4.1/snowflake-cli-3.4.1.aarch64.deb' \ -&& dpkg -i 'snowflake-cli-3.4.1.aarch64.deb' -curl -fsSLO 'https://sfc-repo.snowflakecomputing.com/snowflake-cli/darwin_arm64/3.4.1/snowflake-cli-3.4.1-darwin-arm64.pkg' \ -&& sudo installer -pkg 'snowflake-cli-3.4.1-darwin-arm64.pkg' -target '/' -curl -fsSLO 'https://sfc-repo.snowflakecomputing.com/snowflake-cli/linux_aarch64/3.4.1/snowflake-cli-3.4.1.aarch64.rpm' \ -&& rpm -i 'snowflake-cli-3.4.1.rpm' +
+ Linux (DEB) -# Check it works. -snow --help +```sh +# Install Snowflake's CLI. +# Get it from the [Snowflake CLI repository]. +curl --continue-at '-' --location --fail --show-error --remote-name \ + --url 'https://sfc-repo.snowflakecomputing.com/snowflake-cli/linux_aarch64/3.7.2/snowflake-cli-3.7.2.aarch64.deb' \ +&& sudo dpkg -i 'snowflake-cli-3.7.2.aarch64.deb' ``` +
+ +
+ Linux (RPM) + +```sh +# Install Snowflake's CLI. +# Get it from the [Snowflake CLI repository]. +curl --continue-at '-' --location --fail --show-error --remote-name \ + --url 'https://sfc-repo.snowflakecomputing.com/snowflake-cli/linux_aarch64/3.7.2/snowflake-cli-3.7.2.aarch64.rpm' \ +&& sudo rpm -i 'snowflake-cli-3.7.2.rpm' +``` + +
+ +
+ Mac OS X + +```sh +# Install Snowflake's CLI. +brew install 'snowflake-cli' + +# Install RoleOut's UI and CLI. +curl -C '-' -LfSO --url 'https://github.com/Snowflake-Labs/roleout/releases/download/v2.0.1/Roleout-2.0.1-arm64.dmg' \ +&& sudo installer -pkg 'Roleout-2.0.1-arm64.dmg' -target '/' \ +&& curl -C '-' -LfS --url 'https://github.com/Snowflake-Labs/roleout/releases/download/v2.0.1/roleout-cli-macos' \ + --output "$HOME/bin/roleout-cli" \ +&& chmod 'u+x' "$HOME/bin/roleout-cli" \ +&& xattr -d 'com.apple.quarantine' "$HOME/bin/roleout-cli" +``` + +
+
-