Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

How do I set up the CLI? #43

Answered by spyglass-software
APTy asked this question in Q&A
Discussion options

You must be logged in to vote

Getting Started

Install the CLI using npm:

npm install -g spyglass-cli

Basic Usage

1. Authentication

To start, connect an account

spyglass accounts:auth <orgID-accountID> --check
Welcome to Spyglass! Let's set up a ~/.snowsql/config file.
(See https://docs.snowflake.com/en/user-guide/snowsql-config for more info)

Username (required): <myUsername>
Password (required): *********************
Checking connection... done
Success!

(The identifier is a combination of your Organization ID and Account ID, viewable in the Snowsight UI, e.g. zhjgixi-tv26532)

2. Import

Next, import your current Snowflake objects/roles to Spyglass YAML format.

spyglass import <orgID-accountID>
Fetching current Sn…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by APTy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants