CIRCE / DOCUMENTATION
Installation
Install Circe with npm, pnpm, Yarn, Bun or Deno and run the CLI the right way for your runtime.
On this page
Add the package
Install Circe with its peer dependencies in your project folder.
Node.js
# npm
npm install @sxnnyside/circe discord.js zod
# pnpm
pnpm add @sxnnyside/circe discord.js zod
# Yarn
yarn add @sxnnyside/circe discord.js zod
Circe is ESM. Make sure package.json has "type": "module"; the scaffold sets it for you. Add typescript and @types/node as dev dependencies if you want type checking.
Bun
bun add @sxnnyside/circe discord.js zod
Deno
deno add npm:@sxnnyside/circe npm:discord.js npm:zod
Run the CLI
The circe binary is installed with the package. How you call it depends on the runtime:
| Runtime | Installed in the project | Without installing |
|---|---|---|
| Node.js | npx circe <command> |
npx @sxnnyside/circe <command> |
| Bun | bun x circe <command> |
bun x @sxnnyside/circe <command> |
| Deno | deno task <command> (see Deno deployment) |
deno run -A npm:@sxnnyside/circe/cli <command> |
Inside package.json scripts you can call circe directly, which is what the scaffold does: "dev": "circe dev", "start": "circe start".
Import paths
| Import | Provides |
|---|---|
@sxnnyside/circe |
define* helpers, guards, createCirce, createPaginator, localization helpers. |
@sxnnyside/circe/testing |
Offline interaction harness. |
@sxnnyside/circe/sqlite |
SqliteCooldownStore for Bun, Node.js and Deno. |
@sxnnyside/circe/bun-sqlite |
Older Bun-only alias of the SQLite store. |
@sxnnyside/circe/cli |
The CLI entry, for Deno and programmatic use. |
Verify
npx circe version
npx circe doctor