@supabase-kit/cli
v0.3.7
Published
## install
Downloads
458
Readme
@supabase-kit/cli
install
npm i @supabase-kit/cli -D
bun add @supabase-kit/cli -D
pnpm add @supabase-kit/cli -D
yarn add @supabase-kit/cli -D
get start
step 1:
npm run supa init --name=supa -pf=5432 -fm=react
step 2:
npm run supa migrate init
run commnad
- init — [options] Init project
- migrate — manager migrastions and db flow
- types — Basic commands to generate types based on the DB, we recommend using Supabase CLI directly for greater optimization
init
init proyect define folder structure, install extra tools.
npm run supa init --name=supa -pf=5432 -fm=react
- n, --name name project (default: "supa")
- pf --port_family port family by docker container for local dev (default: "5432")
- fm, --framework "react" or "next" extra tools by framework
migrate
create migration flow this include create folders structure and prisma schemas, define local docker container, write .env variables for connect to local db.
npm run supa migrate init
init migration flow by proyect.