CLI

glyria build

Compile your bot for production.

Usage

npm run build
# or
npx glyria build

What it does

glyria build prepares your bot for production in two steps:

  1. Generates auto-imports — runs glyria generate to update .glyria/imports.d.ts
  2. Compiles TypeScript — runs tsc and outputs compiled files to dist/

Output

After a successful build, your project will have a dist/ folder mirroring your src/ structure:

dist/
  commands/
    ping.js
  events/
    ready.js
  utils/
    useDatabase.js
  index.js

Errors

If the TypeScript compilation fails, glyria build exits with a non-zero code and prints the compiler errors. Fix the reported errors and run glyria build again.

Run glyria build before starting your bot in production. glyria start runs the compiled dist/index.js — not your TypeScript source.
Copyright © 2026