Skip to main content
The Deskofy CLI is a command-line tool for creating, running, building, and managing Deskofy projects. It provides a set of commands and options to simplify development workflows.

Global Options

OptionAliasDescription
--version-vDisplay the Deskofy CLI version
--help-hShow help information for commands

Available Commands

create

Description: Initializes a new Deskofy project in the current directory. Usage:
deskofy create
Options: None Example:
deskofy create

run

Description: Runs a Deskofy project using the specified configuration file. Usage:
deskofy run

# or

deskofy run path/to/deskofy.config.json5
Positional Arguments:
NameDescriptionTypeDefault
project-config-filePath to the project configuration filestringdeskofy.config.json5
Example:
deskofy run

# or

deskofy run ./myproject/deskofy.config.json5

build

Description: Builds a Deskofy project for a specified target platform. Usage:
deskofy build --config deskofy.config.json5 --target <target>
Options:
OptionDescriptionTypeRequiredDefault
--configPath to the project configuration filestringYesdeskofy.config.json5
--targetOutput format for the buildstringYes-
Target Validation: The --target must match the current operating system:
PlatformSupported Targets
linuxdeb, rpm, app-image, flatpak, snap
windowsmsi, msi-wrapped, exe
macdmg
Example:
deskofy build --target deb

deskofy build --config ./myconfig.json5 --target snap
If an unsupported target is specified for the current platform, Deskofy will display an error and exit.

fmt

Description: Automatically formats all source code in the project. Usage:
deskofy fmt

lint

Description: Runs a linter to check code style and potential issues. Usage:
deskofy lint

types

Description: Validates TypeScript types across the project. Usage:
deskofy types

Error Handling & Help

  • Strict Mode: Unknown commands or invalid arguments trigger errors.
  • Command Suggestions: If a typo is detected, the CLI suggests correct commands.
  • Default Behavior: Running deskofy without a command prints a default help message.
I