Command Reference
Complete reference for all commands and flags available in the DPage CLI.
Global Flags
| Flag | Description |
|---|---|
--help | Show help for any command |
--version | Show current CLI version |
--token | Manually provide an auth token |
--json | Output results in JSON format |
Authentication
dpage login
Authenticate the CLI with your DPage account via OAuth.
dpage logout
Sign out and remove the local access token.
dpage whoami
Display information about the currently logged-in user.
Project Management
dpage link
Interactively link the current directory to a project.
| Option | Description |
|---|---|
--yes, -y | Skip interactive prompts |
dpage unlink
Remove the project link from the current directory.
dpage organizations list
Alias: orgs ls. List organizations you belong to.
dpage projects list
Alias: projects ls. List projects you have access to.
| Option | Description |
|---|---|
--organization-id, -o | Filter by organization ID |
Code Indexing
dpage code index
Scan and upload the codebase for AI analysis.
| Option | Description |
|---|---|
--dir, -d | Directory to index (default: current) |
--exclude, -e | Patterns to exclude from scanning |
--organization-id, -o | Explicit organization ID |
--project-id, -p | Explicit project ID |
dpage code status
Show indexing statistics for the current project.
Templates
Note: Template management commands are currently in preview.
dpage templates list
List all dynamic component templates in a project.
dpage templates create
Create a new template from a local file.
dpage templates update
Update an existing template with new code.
dpage templates delete
Remove a template from the DPage platform.