CLI

glyria init

Scaffold a new glyria.js project in seconds.

Usage

npx glyria init

Run this command in an empty folder to scaffold a new glyria.js project.

What it does

glyria init sets up everything you need to start building your bot:

Creates the folder structure

src/
  commands/
    ping.ts
  events/
  utils/
.glyria/

Generates config files

FileDescription
tsconfig.jsonPre-configured TypeScript config
glyria.config.tsglyria.js configuration file
.envEnvironment variables (token)
.gitignoreIgnores node_modules/, dist/, .env, .glyria/

Updates package.json

Adds the following scripts automatically:

{
  "scripts": {
    "dev": "glyria dev",
    "build": "glyria build",
    "start": "glyria start",
    "generate": "glyria generate"
  }
}

Installs dependencies

@glyria/bot
typescript
@types/node
tsx

Generates auto-imports

Runs glyria generate automatically at the end — your globals are ready to use immediately.

After init

Fill in your .env with your bot token:

TOKEN=your_bot_token_here

Then start your bot:

npm run dev
glyria init skips any file that already exists — tsconfig.json, .env, glyria.config.ts, etc. Safe to run in an existing project.
Copyright © 2026