The Native Desktop CLI provides a comprehensive set of commands to manage your desktop application development workflow. This page provides an overview of all available commands and their primary use cases.Documentation Index
Fetch the complete documentation index at: https://docs.nativedesktop.com/llms.txt
Use this file to discover all available pages before exploring further.
Command List
Project Management
create
Initialize a new Native Desktop project in an empty directory.
run
Run your Native Desktop application in development mode.
Build & Distribution
build
Build your Native Desktop project for production distribution.
sign
Sign a built application for Windows or macOS.
Code Quality
lint
Run ESLint on your project to check for code quality issues.
fmt
Format your source code using Prettier.
types
Check TypeScript types in your project.
Command Workflow
A typical Native Desktop development workflow follows this pattern:1. Project Creation
2. Development Cycle
3. Production Build
Global Options
All commands support the following global options:--help / -h
Display help information for the command.
--version / -v
Display the CLI version number.
Platform-Specific Commands
Some commands have platform-specific behavior:macOS
macOS
- Build Targets:
dmg,app,pkg - Signing: Requires Apple Developer ID and certificates
- Notarization: Supported via
signcommand with Apple ID credentials
Windows
Windows
- Build Targets:
exe,msi,msi-wrapped - Signing: Requires code signing certificate (.pfx or .p12)
- Certificate Options: Support for file-based and SHA1-based signing
Linux
Linux
- Build Targets:
deb,rpm,app-image,flatpak,snap - Signing: Platform-specific signing mechanisms
- Distribution: Multiple package formats for different distributions
Configuration Files
Most commands interact with the project configuration file: Default Configuration File:native-desktop.config.json5
You can specify a custom configuration file using the --config option:
Exit Codes
The Native Desktop CLI uses standard exit codes:- 0: Command completed successfully
- 1: Command failed with an error