Installation
Dex CLI is a Node.js-based tool that requires Node.js and npm to be installed on your system.Prerequisites
Before installing Dex, ensure you have the following installed:Node.js
Version 16.x or higher recommended
npm
Comes bundled with Node.js
Git
Required for repository operations
Terminal
Access to a command-line interface
Installation Steps
Install Dependencies
Install all required npm packages:This will install all dependencies defined in
package.json, including:prompts- Interactive command-line prompts- React and Ink for TUI rendering
- Various utility libraries
Verify Installation
Test that Dex is working by running:You should see the Dex help output with available commands.
Running Dex
There are several ways to run Dex commands:- Direct Script
- npm Script
- Global Link (Optional)
Run Dex directly using Node.js:
Configuration
Workspace Configuration
Dex stores workspace configuration in:Manual Configuration
Manual Configuration
The workspace configuration file has the following structure:You can manually edit this file or use environment variables to override:
DEX_WORKSPACE_FILE- Custom config file pathDEX_CONFIG_DIR- Alternative config directory
Environment Variables
Dex supports several environment variables for configuration:Explicit path to workspace configuration file
Alternative config home directory (defaults to
~/.config/dexdsl)Admin token for test environment assets API
Admin token for production environment assets API
Admin token for test environment catalog API
Admin token for production environment catalog API
Verifying Installation
Test the Dashboard
Launch the interactive TUI dashboard to verify everything is working:Run a Simple Command
Test a non-interactive command:Check Workspace Configuration
Verify your workspace setup:Troubleshooting
Command not found
Command not found
If you get a “command not found” error, ensure you’re running Dex from the correct directory or have properly linked it globally using
npm link.Module import errors
Module import errors
If you see module import errors, ensure you’ve run
npm install to install all dependencies. Try removing node_modules and running npm install again:Permission denied
Permission denied
If you encounter permission errors, ensure the scripts have execute permissions:
Workspace configuration issues
Workspace configuration issues
If workspace configuration fails, try resetting it:
Next Steps
Quickstart
Create your first entry and explore core features
Workspace Concepts
Learn about workspace configuration
TUI Dashboard
Explore the interactive dashboard
Command Reference
Browse all available commands
System Requirements
Minimum Requirements
- Node.js: 16.x or higher
- npm: 7.x or higher
- Operating System: macOS, Linux, or Windows with WSL
- Terminal: TTY-compatible terminal for interactive features
- Disk Space: ~100MB for dependencies
Recommended
- Node.js: 18.x LTS or 20.x LTS
- Terminal: Modern terminal with Unicode support (iTerm2, Hyper, Windows Terminal)
- Screen Resolution: Minimum 80x24 for TUI features
Some interactive TUI features require a TTY-compatible terminal. Commands can still be run in non-interactive mode in CI/CD environments.