Interactive REPL shell for exploring and calling Convex functions directly from your terminal.
Note: This is an unofficial community package, not affiliated with Convex.
- Interactive REPL with autocomplete support
- Call Convex functions (queries, mutations, actions) directly
- Explore both public and internal functions
- Support for dev and production deployments
- View function signatures and argument types
Install as a dev dependency in your Convex project:
npm install --save-dev function-shell-for-convexOr install globally:
npm install -g function-shell-for-convexNavigate to your Convex project directory and run:
npx convex-shellOr if installed globally:
convex-shellTo connect to your production deployment:
npx convex-shell --prodOnce in the shell, you can use these commands:
update()- Refresh the function list from Convexhelp()- Show help information.exit- Exit the shell
api- Access public functionsinternal- Access internal functions
// View available modules
help()
// Call a function
api.messages.send({ text: "Hello from the shell!" })
// View function signature
api.messages.send
// Call an internal function
internal.utils.cleanup({})git clone https://github.com/graham/convex_function_shell.git
cd convex_function_shell
npm install
npm run buildnpm run build
npm publish- Node.js >= 18.0.0
- A Convex project with
convexCLI installed
MIT