mirror of
https://github.com/supabase/setup-cli.git
synced 2026-02-09 03:45:28 +00:00
chore: update readme to use db start
This commit is contained in:
12
README.md
12
README.md
@@ -24,18 +24,18 @@ A specific version of the `supabase` CLI can be installed:
|
|||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v1
|
- uses: supabase/setup-cli@v1
|
||||||
with:
|
with:
|
||||||
version: 1.12.2
|
version: 1.16.1
|
||||||
```
|
```
|
||||||
|
|
||||||
Run `supabase start` to execute all migrations on a fresh database:
|
Run `supabase db start` to execute all migrations on a fresh database:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v1
|
- uses: supabase/setup-cli@v1
|
||||||
with:
|
with:
|
||||||
version: 1.12.2
|
version: 1.16.1
|
||||||
- run: supabase init
|
- run: supabase init
|
||||||
- run: supabase start
|
- run: supabase db start
|
||||||
```
|
```
|
||||||
|
|
||||||
Since Supabase CLI relies on Docker Engine API, additional setup may be required on Windows and macOS runners.
|
Since Supabase CLI relies on Docker Engine API, additional setup may be required on Windows and macOS runners.
|
||||||
@@ -54,7 +54,7 @@ Check generated TypeScript types are up-to-date with Postgres schema:
|
|||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v1
|
- uses: supabase/setup-cli@v1
|
||||||
- run: supabase init
|
- run: supabase init
|
||||||
- run: supabase start
|
- run: supabase db start
|
||||||
- name: Verify generated types match Postgres schema
|
- name: Verify generated types match Postgres schema
|
||||||
run: |
|
run: |
|
||||||
supabase gen types typescript --local > schema.gen.ts
|
supabase gen types typescript --local > schema.gen.ts
|
||||||
@@ -134,7 +134,7 @@ You can now validate the action by referencing `./` in a workflow in your repo (
|
|||||||
```yaml
|
```yaml
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: 1.12.2
|
version: 1.16.1
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [actions tab](https://github.com/actions/typescript-action/actions) for runs of this action! :rocket:
|
See the [actions tab](https://github.com/actions/typescript-action/actions) for runs of this action! :rocket:
|
||||||
|
|||||||
Reference in New Issue
Block a user