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-cli

v0.0.21

Published

## description

Downloads

1,830

Readme

supabase-cli

description

Create a cli environment for supabase.
The Docker environment to be used for construction is obtained from the latest repository of supabase.

usage

Usage: spabase-cli [options] [command]

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  init                Initialize supabase
  start               Launch supabase
  stop                Stop supabase
  restart             Restart supabase
  remove              Remove supabase
  update              Update supabase
  reset               Database initialization
  info                View access to supabase
  regions                     List of region
  backup <filename>   Backup database
  restore <filename>  Restore database
  user                [command]
    create <email> <password>  Create a user
    list                       Displaying the user list
  migration           [command]
    create [name]     Create migration
      -t, --tableName <tableName>  Output table name
    up                Apply migrations
  remote              [command]
    restore [options] <filename> Restore remote databases
      -a, --host <host>          Host address of database
      -p, --password <password>  Password for database
    backup [options] <filename>  Backup remote databases
      -a, --host <host>          Host address of database
      -p, --password <password>  Password for database
    migration [options]          Migration remote databases
      -a, --host <host>          Host address of database
      -p, --password <password>  Password for database
    reset [options]              Reset the remote
      -a, --host <host>          Host address of database
      -p, --password <password>  Password for database
    user                         [command]
      create <email> <password>            Create a remote user
        -u, --url <url>                    Url of supabase
        -k, --service_role <service_role>  Service role of supabase
      list [options]                       Display of remote user list
        -u, --url <url>                    Url of supabase
        -k, --service_role <service_role>  Service role of supabase
  project
      list [options]
        -t, --token <accessToken>  AccessToken
      create [options] name dbpass
        -t, --token <accessToken>  AccessToken
        -p, --plan <plan>          Plan of project
        -r, --region <region>      Region of project
        -o, --org <org>            Organization of project
  organization
      list [options]
        -t, --token <accessToken>  AccessToken
  help [command]  display help for command

Remote commands refer to the value of supabase/.env.remote

url=https://xxxxx.supabase.co
service_role=xxxx
db_password=xxxx
access_token=xxxx

For remote backup and remote reset

You will need superuser privileges, so run the following command from SQLEditor on the web.

alter role postgres with superuser;

Remote operation is an experimental feature.

Regarding initialization

command

supabase-cli init

For the second and subsequent runs, the file is updated.

Operation

1. Download files to the supabase directory

  • https://github.com/supabase/supabase/tree/master/docker
    • .gitignore will not be overwritten
  • https://github.com/supabase/storage-api/tree/master/migrations/tenant/
  • https://github.com/supabase/realtime/tree/master/server/priv/repo/migrations

2. Creation of supabase/docker/.env

  • If the file already exists, it will not be overwritten

3. Recalculate AccessKey based on JWT_SECRET

  • supabase/docker/.env
  • supabase/docker/volumes/api/kong.yml

Recalculation of AccessKey by JWT_SECRET is also done at start.

Startup and shutdown

Startup of supabase

supabase-cli start

Stop supabase

supabase-cli stop

Remove containers from Docker

supabase-cli remove

important point

After applying the following migrations, realtime functions will no longer work.
The current version has been modified to not include them in system-migrations.

  • 20220603231003_add_quoted_regtypes_support.exs
  • 20220603232444_add_output_for_data_less_than_equal_64_bytes_when_payload_too_large.exs
  • 20220615214548_add_quoted_regtypes_backward_compatibility_support.exs