An interactive Cedar shell -- a REPL with your Cedar project's API side pre-loaded.
Run directly from your Cedar project root:
# npm
npx @cedarjs/console
# yarn
yarn dlx @cedarjs/console
# pnpm
pnpm dlx @cedarjs/consoleThe Prisma client is available as db in the REPL:
> await db.user.findMany({ take: 5 })
> await db.post.count()You can also import your services and lib files:
> const { users } = await import('./api/src/services/users/users.js')
> await users()- A Cedar project (must be run from the project root)
@cedarjs/console |
Cedar |
|---|---|
| 1.x | >= 5.0.0 |
This package was previously built into the Cedar CLI as yarn cedar console. It
was extracted as a standalone tool so it can evolve independently. If you were
using cedar console, replace it with the npx/yarn dlx/pnpm dlx
invocation above.