cli

command module
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 2 Imported by: 0

README

Supabase CLI MkII (WIP)

Supabase is an open source Firebase alternative. We're building the features of Firebase using enterprise-grade open source tools.

This repository contains all the functionality for our CLI. It is still under heavy development.

  • Running Supabase locally
  • Managing database migrations (in progress)
  • Pushing your local changes to production (in progress)
  • Self-hosting
  • Manage your Supabase Account
  • Manage your Supabase Projects
  • Generating types directly from your database schema
  • Generating API and validation schemas from your database

Getting started

Install the CLI
macOS
brew install supabase/tap/supabase
Windows
scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
scoop install supabase/supabase
Run the CLI
supabase help

Command reference

Usage:
  supabase [command]

Available Commands:
  db dump         Diffs the local database with current migrations, writing it as a new migration, and writes a new structured dump.
  db restore      Restores the local database to reflect current migrations. Any changes on the local database that is not dumped will be lost.
  deploy          Deploy current migrations to prod.
  help            Help about any command
  init            Initialize a project to use Supabase CLI.
  link            Link the current project to a remote deploy database.
  start           Start the Supabase local development setup.

Flags:
  -h, --help      help for supabase
  -v, --version   version for supabase

Developing

To run from source:

# Go >= 1.16
go run -ldflags "-X github.com/supabase/cli/cmd.version=0.0.0" main.go help

Sponsors

New Sponsor

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL