sos
SignageOS CLI - The central command-line tool for deploying, managing, and debugging signageOS projects and devices
Overview
The signageOS CLI is a command-line tool for managing applets, devices, organizations, and other signageOS resources. It provides a comprehensive set of commands for the complete development lifecycle from applet creation to deployment.
Key Features
- Applet Development: Create, build, test, and deploy applets
- Development Tools: Connect to devices for testing, upload custom scripts and debug
- Device Management: Control device power states and applet timings
- Organization Management: Handle multi-tenant environments
- Authentication: Secure login and profile management
Installation
npm install -g @signageos/cli
Getting Started
- Login to your account:
sos login
- Generate a new applet:
sos applet generate --name my-applet
- Start development:
cd my-applet && sos applet start
Usage
sos [options] <command>
Debugging
To enable debugging for specific modules, use the DEBUG
environment variable:
# Debug applet upload module
DEBUG=@signageos/cli:Applet:Upload:appletUploadFacade sos applet upload
# Debug all signageOS modules
DEBUG=@signageos/* sos applet upload
# Set debug environment variable
export DEBUG=@signageos/*
Description
The root command for the signageOS CLI tool that provides comprehensive management capabilities for applets, devices, organizations, and other signageOS resources. This command serves as the entry point for all CLI operations and coordinates access to all available command groups.
Options
Option | Alias | Description |
---|---|---|
--command | -c | (default) Command name (string) |
--help | -h | Display this usage guide. (boolean) |
--api-url | -u | API URL to be used for REST requests (string) |
--version | -v | Display installed version of the CLI. (boolean) |
--profile | signageOS Profile to be used for authentication and other values from ~/.sosrc config file. (string) |
Commands
Authentication
sos login
Authenticate user with signageOS