Skip to content

Commit

Permalink
update selfhosting instructions to use self-host cli (#34138)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 3b19ab8473bc412aa772447b18e29aebafdf3e37
  • Loading branch information
ldanilek authored and Convex, Inc. committed Feb 6, 2025
1 parent 14bd7e1 commit 14dc813
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions self-hosted/SELFHOSTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,18 @@ CONVEX_SELF_HOST_ADMIN_KEY='<your deploy key>'
```

Now you can run commands in your Convex project, to push code, run queries,
import data, etc.
import data, etc. To use these commands, you'll need the latest alpha version of
Convex.

```sh
npx convex dev
npx convex run <run args>
npx convex import <import args>
npm install convex@alpha
```

```sh
npx convex self-host dev
npx convex self-host run <run args>
npx convex self-host import <import args>
npx convex self-host --help # see all available commands
```

By default, the backend will store its data in a volume managed by Docker. Note
Expand Down

0 comments on commit 14dc813

Please sign in to comment.