{"id":14155151,"url":"https://github.com/spyglasshq/spyglass-cli","last_synced_at":"2025-08-06T00:33:31.587Z","repository":{"id":142990067,"uuid":"601672395","full_name":"spyglasshq/spyglass-cli","owner":"spyglasshq","description":"Access management as code.","archived":false,"fork":false,"pushed_at":"2024-06-08T11:29:23.000Z","size":3147,"stargazers_count":26,"open_issues_count":33,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-28T14:18:13.110Z","etag":null,"topics":["access-control","access-management","data-engineering","database-security","iam","security","snowflake","spyglass"],"latest_commit_sha":null,"homepage":"https://spyglass.software","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spyglasshq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-14T15:15:45.000Z","updated_at":"2024-07-18T14:52:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"db594760-9941-4677-9103-4b5c0b3647be","html_url":"https://github.com/spyglasshq/spyglass-cli","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyglasshq%2Fspyglass-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyglasshq%2Fspyglass-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyglasshq%2Fspyglass-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyglasshq%2Fspyglass-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spyglasshq","download_url":"https://codeload.github.com/spyglasshq/spyglass-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":215735785,"owners_count":15923388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["access-control","access-management","data-engineering","database-security","iam","security","snowflake","spyglass"],"created_at":"2024-08-17T08:02:16.531Z","updated_at":"2024-08-17T08:04:44.058Z","avatar_url":"https://github.com/spyglasshq.png","language":"TypeScript","funding_links":[],"categories":["security"],"sub_categories":[],"readme":"![spyglass-ascii](https://github.com/spyglasshq/spyglass-cli/assets/121976108/78e0a2d4-5462-48bb-a13c-9e8f6430da66)\n\n\n![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/spyglasshq/spyglass-cli/test.yml?branch=master) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/spyglasshq/spyglass-cli) ![GitHub](https://img.shields.io/github/license/spyglasshq/spyglass-cli) ![GitHub milestone](https://img.shields.io/github/milestones/progress-percent/spyglasshq/spyglass-cli/3)\n\nManage your Snowflake access controls as code.\n\n---\n\n🚣‍♂️ _**Before Spyglass**_: Permissions are managed manually across scripts, snowsight worksheets, and one-off requests.\n\n\u003cimg width=\"595\" alt=\"Screen Shot 2023-03-20 at 11 47 17 AM\" src=\"https://user-images.githubusercontent.com/121976108/226393854-6c9e08ba-8101-4569-a93b-bdf104129eff.png\"\u003e\n\n🚤 _**After Spyglass**_: Permissions are managed centrally in git and automatically synced to Snowflake.\n\n\u003cimg width=\"595\" alt=\"Screen Shot 2023-03-20 at 11 38 02 AM\" src=\"https://user-images.githubusercontent.com/121976108/226395881-2104d915-6e1c-4422-9b21-8a5e08447cc9.png\"\u003e\n\n## Overview\n\nFor a detailed explanation, see our [Introducing Snowflake Access-as-Code](https://blog.spyglass.software/p/introducing-snowflake-access-as-code) post.\n\nBasic usage of this tool looks like:\n\n```\n1. Import your current Snowflake objects/roles to YAML.\n\n┌───────────┐     spyglass import / sync      ┌──────────┐\n│ Snowflake │ ──────────────────────────────► │   YAML   │\n└───────────┘                                 └──────────┘\n\n2. Manage them as code.\n\n┌───────────┐          make changes           ┌──────────┐\n│           │ ──────────────────────────────► │          │\n│ Data User │        spyglass verify          │   YAML   │\n│           │ ──────────────────────────────► │          │\n└───────────┘                                 └──────────┘\n\n3. Automatically sync objects/roles between your Git repo and Snowflake.\n\n┌───────────┐        spyglass apply           ┌──────────┐\n│ Snowflake │ ◄────────────────────────────── │   YAML   │\n└───────────┘                                 └──────────┘\n```\n\n## Getting Started\n\nInstall the CLI using `npm`:\n\n```\nsudo npm install -g spyglass-cli@latest\n```\n\n## Basic Usage\n\nSee [How do I set up the CLI? #43](https://github.com/spyglasshq/spyglass-cli/discussions/43).\n\nSee the [Reference Documentation](https://spyglasshq.github.io/spyglass-cli/) for details on the configuration.\n\n## CI/CD Usage\n\nSee [How do I set up github actions / workflows? #42](https://github.com/spyglasshq/spyglass-cli/discussions/42).\n\n## Query Usage\n\nFor getting insight into \"who can access what?\", see [Announcing Queries (alpha) #45](https://github.com/spyglasshq/spyglass-cli/discussions/45).\n\n## Getting Help and Contributing\n\nWe love working with the community, here's a few ways to get involved:\n\n1. [Discussions](https://github.com/spyglasshq/spyglass-cli/discussions) - For FAQs, Q\u0026A, feature requests, ideas, announcements, and sharing your use cases.\n2. [Issues](https://github.com/spyglasshq/spyglass-cli/issues) - For bug reports and concrete work items.\n3. [Email](mailto:devs@spyglass.software) - If all else fails, or if you'd just like to chat, let us know at devs@spyglass.software.\n4. [Slack](mailto:demo@spyglass.software) - For early partners, we're working on Slack for real time feedback and support. If you're interested, reach out to demo@spyglass.software.\n\n## Security\n\nFor submitting security issues, see [SECURITY.md](./SECURITY.md)\n\nFor our security guidance to users, see [Security Best Practices #96](https://github.com/spyglasshq/spyglass-cli/discussions/96)\n\n## Usage Analytics\n\nWe constantly improve this software, but we need your help! By default, we log **anonymous analytics** such as: commands invoked, errors, and software versions. We never log any personally-identifiable user information.\n\nTo opt out, you can run `spyglass config:set disableAnalytics true`. See https://github.com/spyglasshq/spyglass-cli/issues/9 and [logging.ts](./src/lib/logging.ts) for more information.\n\n## Roadmap\n\nAs of Q1 '23, Spyglass has full support for **Snowflake**. Support for other analytics databases (BigQuery, Databricks, Redshift, Oracle, etc.) is planned to follow.\n\nCheck out the [Milestones](https://github.com/spyglasshq/spyglass-cli/milestones) page to track further progress.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyglasshq%2Fspyglass-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspyglasshq%2Fspyglass-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyglasshq%2Fspyglass-cli/lists"}