Installation
Getting the DEJA Server running takes about two minutes. One command installs everything — then you link your account and start the server.
Requirements
- Node.js 20 or later — check with
node --version. If you need to install it, visit nodejs.org. - A USB cable connecting your DCC-EX EX-CommandStation to the computer running the server.
- A supported platform:
| Platform | Notes |
|---|---|
| macOS (Intel or Apple Silicon) | Works out of the box |
| Linux (x86_64 or ARM64) | May need serial port permissions (see below) |
| Raspberry Pi (Pi 4 or 5) | Runs great — plug in your EX-CommandStation via USB |
| Windows | Supported through WSL — run the installer from a WSL terminal |
Install
Open a terminal on the computer connected to your EX-CommandStation and run:
curl -fsSL https://install.dejajs.com | bash
The Cloud app onboarding wizard walks you through the same steps — when you run deja login, your browser opens with your new layout ready to select, so the server links to the right place.
What the Installer Does
The installer handles setup automatically:
- Detects your platform — confirms macOS, Linux, or Raspberry Pi and the correct architecture.
- Checks Node.js — verifies you have Node.js 20 or later. If not, it tells you how to install it.
- Sets up configuration — creates the
~/.deja/directory with your environment file and credentials. - Detects serial ports — scans for USB devices that look like a DCC-EX EX-CommandStation.
- Downloads the server — pulls the latest release and installs dependencies.
- Installs the
dejaCLI — adds thedejacommand to your terminal so you can manage the server.
Once it finishes, two commands get you running:
deja login
Links this install to your DEJA Cloud account and layout — opens a browser tab to connect.
deja start
Launches the server and connects to your EX-CommandStation.
Serial Port Permissions (Linux / Raspberry Pi)
On Linux, your user account may need permission to access USB serial ports. If the installer warns you about this, run:
sudo usermod -a -G dialout $USER
Then log out and log back in for the change to take effect. This only needs to be done once.
Reinstalling
If something goes wrong or you want a fresh start, just run the install command again:
curl -fsSL https://install.dejajs.com | bash
This downloads a clean copy of the server and reconfigures everything. Your account and layout stay the same.
What Gets Installed
Everything lives in ~/.deja/ inside your home directory:
| Path | What it is |
|---|---|
~/.deja/bin/deja | The deja CLI command |
~/.deja/server/ | The server runtime |
~/.deja/config.json | Your account and layout configuration |
~/.deja/.env | Environment variables (Firebase credentials, feature flags) |
~/.deja/logs/ | Server log files |
Next Steps
- Run
deja statusto verify everything is connected — see CLI Reference - Open throttle.dejajs.com on any device and start driving
- Check the Troubleshooting page if anything isn't working