DeesseJS

CLI Overview

Introduction to the DeesseJS Command Line Interface

CLI Overview

The DeesseJS Command Line Interface (CLI) is a powerful tool that helps you create, develop, and manage your DeesseJS applications from the command line.

Installation

The CLI is available via npx without installation:

npx deessejs <command>

For frequent use, install globally:

npm install -g @deessejs/cli

# Then use directly
deessejs <command>

Available Commands

Project Commands

CommandDescription
createCreate a new DeesseJS project
initInitialize DeesseJS in an existing project
devStart the development server
buildBuild the application for production
startStart the production server

Database Commands

CommandDescription
db:pushPush schema changes to the database
db:pullPull schema from the database
db:migrateRun database migrations
db:seedSeed the database with sample data
db:studioOpen Prisma Studio (database browser)
db:resetReset the database

Plugin Commands

CommandDescription
plugin:addAdd a plugin to your project
plugin:removeRemove a plugin
plugin:listList installed plugins

Generation Commands

CommandDescription
generateGenerate code (collections, components, etc.)
gShorthand for generate

Utility Commands

CommandDescription
loginLogin to your DeesseJS account
logoutLogout from your account
infoDisplay system information
versionShow CLI version

Quick Start

Create a New Project

npx deessejs create my-app
cd my-app
npm run dev

Initialize in Existing Project

npx deessejs init

This will:

  1. Create the deesse.config.ts file
  2. Set up the database schema
  3. Create the admin dashboard structure
  4. Install required dependencies

Command Help

Get help for any command:

deessejs --help
deessejs <command> --help
deessejs <command> <subcommand> --help

Global Flags

These flags work with all commands:

FlagDescription
--help, -hShow help
--version, -vShow version number
--verboseEnable verbose logging
--debugEnable debug mode
--yes, -ySkip confirmation prompts

Configuration

The CLI can be configured via environment variables or a configuration file.

Environment Variables

# .env.local
DEESSEJS_API_URL=https://api.deessejs.com
DEESSEJS_TOKEN=your-token
DEESSEJS_TELEMETRY=disabled

CLI Configuration File

# ~/.deessejsrc
{
  "apiUrl": "https://api.deessejs.com",
  "token": "your-token",
  "telemetry": false,
  "theme": "dark"
}

Autocompletion

Enable shell autocompletion for the CLI:

# Bash
deessejs completion bash > ~/.deessejs-completion
echo "source ~/.deessejs-completion" >> ~/.bashrc

# Zsh
deessejs completion zsh > ~/.deessejs-completion
echo "source ~/.deessejs-completion" >> ~/.zshrc

# Fish
deessejs completion fish > ~/.config/fish/completions/deessejs.fish

Telemetry

DeesseJS collects anonymous usage data to improve the CLI. You can disable telemetry:

# Disable telemetry
deessejs telemetry disable

# Enable telemetry
deessejs telemetry enable

# Check status
deessejs telemetry status

Or via environment variable:

DEESSEJS_TELEMETRY=disabled deessejs <command>

Next Steps

On this page