CLI Commands Reference
Complete reference for all DeskForge CLI commands with examples and options.
deskforge init
Initialize a new DeskForge project by creating a deskforge.config.json file.
Usage
deskforge init [options]Options
-n, --name <name>Project name
-u, --url <url>Web app URL
-f, --forceOverwrite existing config
Example
deskforge init --name "My App" --url "https://myapp.com"deskforge login
Authenticate the CLI with your DeskForge account.
Usage
deskforge loginAuthentication Flow
- Prompts for email address
- Prompts for access token (get from dashboard Settings → Access Tokens)
- Validates credentials with DeskForge API
- Stores credentials securely in system keychain
deskforge logout
Remove stored authentication credentials.
deskforge logoutdeskforge account
Display current account information.
Output
- Email address
- Account plan (Free, Pro, Team)
- Monthly build usage
- Build limit
deskforge build
Build your desktop application (remote or local).
Options
-p, --platform <platform>Target platform: mac, windows, linux
-a, --arch <arch>Target architecture: x64, arm64
--localBuild locally instead of using cloud infrastructure
--watchWatch for changes and rebuild automatically
Examples
# Remote build for macOS
deskforge build --platform mac
# Local build for development
deskforge build --local
# Build for Windows x64
deskforge build --platform windows --arch x64
# Watch mode for local development
deskforge build --local --watchdeskforge dev
Start a local Tauri development environment with hot reload.
Options
-p, --port <port>Dev server port (default: 3000)
--openOpen DevTools automatically
Example
# Start dev server on default port
deskforge dev
# Use custom port and open DevTools
deskforge dev --port 8080 --opendeskforge projects
Manage your DeskForge projects.
List Projects
deskforge projects list
deskforge projects list --jsonShow Project
deskforge projects show my-appDelete Project
deskforge projects delete my-app
deskforge projects delete my-app --yesdeskforge logs
View build logs for a specific build.
Options
-f, --followFollow log output in real-time
-n, --lines <number>Number of lines to show (default: 100)
Example
# View last 100 lines
deskforge logs build_abc123
# Follow logs in real-time
deskforge logs build_abc123 --follow
# Show last 500 lines
deskforge logs build_abc123 --lines 500deskforge config
Manage your DeskForge configuration.
Show Configuration
deskforge config showSet Value
deskforge config set window.width 1400
deskforge config set features.autoUpdate trueGet Value
deskforge config get window.width
deskforge config get platformsValidate Configuration
deskforge config validate