Skip to main content

start

Start local applet development server with live preview

Description

Starts a local development server with hot reload functionality, allowing developers to preview their applets in a browser-based emulator. Supports both local development and device connection for testing on actual signageOS devices.

Remarks

The development server provides a browser-based emulator accessible at http://localhost:8090 by default. Hot reload automatically refreshes the emulator when source code changes.

Usage

sos applet start [options]

Options

OptionDescriptionDefault
--no-default-organizationPrevent using the defaultOrganizationUid from ~/.sosrc (boolean)
--organization-uidOrganization UID (string)
--portPort where will the applet run (number)8090
--applet-pathPath to the applet file or the project folder depending on the entry file. Relative to the command or absolute. (string)
--entry-file-pathPath to the applet entry file. Relative to the command or absolute. (string)
--hot-reloadEnable hot reload and build of applet (boolean)false
--server-portThe custom server port for local machine server. Default is detected from currently running applet server. (number)
--server-public-urlPublic url of local machine server. Is useful when the local machine is behind a reverse proxy. (string)
--forceForce start applet server even if it is already running on a different port. Kill the running server first. (boolean)
--detachDetach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet. (boolean)false
--forward-server-urlUrl of forward server to connect to the device instead of the local network (LAN). (string)

Examples

# Start development server with default settings
sos applet start

# Start with custom port and hot reload
sos applet start --port 8080 --hot-reload

# Start with specific organization
sos applet start --organization-uid abc123

# Start with custom applet path
sos applet start --applet-path ./my-applet

# Start with specific entry file
sos applet start --entry-file-path index.html

# Force restart if server is already running
sos applet start --force

# Run in detached mode
sos applet start --detach

Since

0.1.0

Global Options

All commands support the following global options:

OptionAliasDescription
--help-hDisplay help information for any command
--version-vDisplay the installed version of the CLI
--api-url-uOverride the API URL for REST requests
--profileUse a specific profile from ~/.sosrc config

Examples

# Show version
sos --version

# Get help for any command
sos applet --help
sos applet upload --help

# Use custom API endpoint
sos --api-url https://api.example.com applet upload

# Use specific profile
sos --profile production organization list

See Also