Mikael LirbankM
Convex Community3y ago
6 replies
Mikael Lirbank

Is there a way to run `npx convex

Is there a way to run npx convex deploy but for dev? I want to sync my local code (schema) with my Convex dev env, and then run some npx convex run xyz which deplends on the schema change.

Alternatively can I somehow run convex dev but exit once the schemas have been synced? Eg. since convex dev is kept alive, it won't work for scripting.

1. CLI: Sync schema.ts
2. CLI: Run function which depends on the new schema
3. Exit
Was this page helpful?