npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

supabase-env-generator

v1.0.1

Published

Generate the .env secrets for your Supabase instance using a single CLI command

Downloads

9

Readme

supabase-env-generator

Generate the ANON_KEY and SERVICE_KEY for your Supabase instance and output it as a .env, yaml or json file.

oclif Version Downloads/week License

Usage

The recommended usage for this would be to use npx, an example would be as follows:

# YAML output
npx supabase-env-generator generate -o yaml | tee output.yaml

# JSON output
npx supabase-env-generator generate -o json | tee output.json

# .env output
npx supabase-env-generator generate | tee .env

You can now plug/pipe this into your deployment tools to carry this through to your deployment.


Full usage can be seen below

$ npm install -g supabase-env-generator
$ supabase-env-generator COMMAND
running command...
$ supabase-env-generator (--version)
supabase-env-generator/1.0.1 linux-x64 node-v16.19.0
$ supabase-env-generator --help [COMMAND]
USAGE
  $ supabase-env-generator COMMAND
...

Commands

supabase-env-generator generate

Generate the secrets for the .env file in Supabase

USAGE
  $ supabase-env-generator generate [-o env|json|yaml] [-j <value>] [-d <value>] [-l <value>]

FLAGS
  -d, --jwt-secret-dict=<value>    [default:
                                   abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789[]{}()<>~._-+=:;,] The
                                   dictionary that you would like to use to generate the JWT secret. If not provided,
                                   the default dictionary will be used.
  -j, --jwt-secret=<value>         The JWT secret that you would like to use. If not provided, a random secret will be
                                   generated.
  -l, --jwt-secret-length=<value>  [default: 64] The length of the JWT secret that you would like to generate. If not
                                   provided, the default length will be used.
  -o, --output=<option>            [default: env] The output format that you would like to print the data. You can use
                                   this to `tee` the data into a file.
                                   <options: env|json|yaml>

DESCRIPTION
  Generate the secrets for the .env file in Supabase

EXAMPLES
  $ supabase-env-generator generate

  $ supabase-env-generator generate -o yaml | tee output.yaml

  $ supabase-env-generator generate -o yaml --jwt-secret-dict=abcdef0123456789 | tee output.yaml

  $ supabase-env-generator generate --jwt-secret=my-jwt-secret -o json > tee output.json

See code: dist/commands/generate.ts

supabase-env-generator help [COMMANDS]

Display help for supabase-env-generator.

USAGE
  $ supabase-env-generator help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for supabase-env-generator.

See code: @oclif/plugin-help