Installation
The DPage CLI is distributed as a global npm package. It requires Node.js 18 or later to run.
Package Installation
npm
Terminal
npm install -g @dpage-ai/dpage-cliyarn
Terminal
yarn global add @dpage-ai/dpage-clipnpm
Terminal
pnpm add -g @dpage-ai/dpage-cliWe recommend using
npm or yarn for global installations as they are standard for CLI tools.Verify Installation
Check that the CLI is installed correctly by running:
Terminal
dpage --versionCross-Platform Support
The CLI is designed to work seamlessly across all major operating systems:
- macOS: Apple Silicon (M1/M2/M3) and Intel (x64)
- Windows: Windows 10/11 (PowerShell, CMD, WSL)
- Linux: All major distributions (Ubuntu, Fedora, etc.)
No native dependencies are required. The CLI is built with pure JavaScript/Node.js and works out of the box after installation.
Global Configuration
The CLI stores global configuration (like authentication tokens) in standard system directories:
| Platform | Config Location |
|---|---|
| macOS | ~/Library/Preferences/dpage-cli-nodejs/ |
| Linux | ~/.config/dpage-cli/ |
| Windows | %APPDATA%/dpage-cli/ |
Troubleshooting
Permission Denied (EACCES)
If you encounter permission errors during global installation, you may need to use sudo or configure your npm global directory properly.
Terminal
sudo npm install -g @dpage-ai/dpage-cliUsing
sudo for npm is generally discouraged. We recommend using a version manager like nvm or fnmto manage Node.js versions without needing root permissions.