Skip to main content

sos applet 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

OptionTypeDescriptionDefault
--no-default-organizationbooleanPrevent using the defaultOrganizationUid from ~/.sosrc
--organization-uidstringOrganization UID
--portnumberPort where will the applet run8090
--applet-pathstringPath to the applet file or the project folder depending on the entry file. Relative to the command or absolute.
--entry-file-pathstringPath to the applet entry file. Relative to the command or absolute.
--hot-reloadbooleanEnable hot reload and build of appletfalse
--server-portnumberThe custom server port for local machine server. Default is detected from currently running applet server.
--server-public-urlstringPublic url of local machine server. Is useful when the local machine is behind a reverse proxy.
--forcebooleanForce start applet server even if it is already running on a different port. Kill the running server first.
--detachbooleanDetach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.false
--forward-server-urlstringUrl of forward server to connect to the device instead of the local network (LAN).``

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