@signageos/cli 2.4.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -1
- package/dist/Applet/Build/appletBuildCommand.d.ts +28 -2
- package/dist/Applet/Build/appletBuildCommand.js +27 -1
- package/dist/Applet/Generate/Templates/index.js.template +1 -1
- package/dist/Applet/Generate/Templates/tsconfig.js.template +1 -1
- package/dist/Applet/Generate/appletGenerateCommand.d.ts +29 -23
- package/dist/Applet/Generate/appletGenerateCommand.js +37 -31
- package/dist/Applet/Start/appletStartCommand.d.ts +44 -2
- package/dist/Applet/Start/appletStartCommand.js +44 -2
- package/dist/Applet/Test/Upload/appletTestRunCommand.d.ts +25 -2
- package/dist/Applet/Test/Upload/appletTestRunCommand.js +24 -1
- package/dist/Applet/Test/Upload/appletTestUploadCommand.d.ts +34 -4
- package/dist/Applet/Test/Upload/appletTestUploadCommand.js +32 -2
- package/dist/Applet/Test/appletTestCommand.d.ts +23 -6
- package/dist/Applet/Test/appletTestCommand.js +17 -0
- package/dist/Applet/Upload/appletUploadCommand.d.ts +46 -4
- package/dist/Applet/Upload/appletUploadCommand.js +44 -2
- package/dist/Applet/Upload/appletUploadFacade.js +3 -3
- package/dist/Applet/appletCommand.d.ts +42 -10
- package/dist/Applet/appletCommand.js +33 -1
- package/dist/Auth/loginCommand.d.ts +23 -2
- package/dist/Auth/loginCommand.js +42 -14
- package/dist/Command/Autocomplete/Install/installAutocompleteCommand.d.ts +17 -0
- package/dist/Command/Autocomplete/Install/installAutocompleteCommand.js +17 -0
- package/dist/Command/Autocomplete/Install/installAutocompleteCommand.ts +17 -0
- package/dist/Command/Autocomplete/Uninstall/uninstallAutocompleteCommand.d.ts +17 -0
- package/dist/Command/Autocomplete/Uninstall/uninstallAutocompleteCommand.js +22 -5
- package/dist/Command/Autocomplete/autocompleteCommand.d.ts +18 -0
- package/dist/Command/Autocomplete/autocompleteCommand.js +19 -1
- package/dist/Command/autoComplete.js +2 -2
- package/dist/Command/globalArgs.d.ts +33 -0
- package/dist/Command/globalArgs.js +33 -0
- package/dist/CustomScript/Generate/customScriptGenerateCommand.d.ts +19 -0
- package/dist/CustomScript/Generate/customScriptGenerateCommand.js +20 -1
- package/dist/CustomScript/Upload/customScriptUploadCommand.d.ts +32 -2
- package/dist/CustomScript/Upload/customScriptUploadCommand.js +31 -1
- package/dist/CustomScript/customScriptCommand.d.ts +21 -1
- package/dist/CustomScript/customScriptCommand.js +20 -0
- package/dist/Device/Connect/connectCommand.d.ts +51 -2
- package/dist/Device/Connect/connectCommand.js +50 -1
- package/dist/Device/Content/setContentCommand.d.ts +28 -2
- package/dist/Device/Content/setContentCommand.js +27 -1
- package/dist/Device/PowerAction/powerActionCommand.d.ts +54 -2
- package/dist/Device/PowerAction/powerActionCommand.js +52 -0
- package/dist/Device/deviceCommand.d.ts +26 -6
- package/dist/Device/deviceCommand.js +21 -1
- package/dist/Device/deviceFacade.d.ts +1 -1
- package/dist/Firmware/Upload/firmwareUploadCommand.d.ts +42 -0
- package/dist/Firmware/Upload/firmwareUploadCommand.js +40 -6
- package/dist/Firmware/Upload/firmwareUploadFacade.js +1 -1
- package/dist/Firmware/firmwareCommand.d.ts +25 -0
- package/dist/Firmware/firmwareCommand.js +18 -1
- package/dist/Lib/childProcess.js +2 -2
- package/dist/Organization/Get/organizationGetCommand.d.ts +31 -2
- package/dist/Organization/Get/organizationGetCommand.js +31 -2
- package/dist/Organization/List/organizationListCommand.d.ts +20 -0
- package/dist/Organization/List/organizationListCommand.js +21 -1
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.d.ts +24 -0
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.js +25 -1
- package/dist/Organization/organizationCommand.d.ts +27 -2
- package/dist/Organization/organizationCommand.js +26 -1
- package/dist/Organization/organizationFacade.d.ts +2 -2
- package/dist/Organization/organizationFacade.js +3 -3
- package/dist/Timing/List/timingListCommand.d.ts +26 -2
- package/dist/Timing/List/timingListCommand.js +26 -2
- package/dist/Timing/timingCommand.d.ts +17 -2
- package/dist/Timing/timingCommand.js +15 -0
- package/dist/helper.d.ts +5 -5
- package/dist/helper.js +4 -6
- package/dist/index.js +23 -1
- package/docs/applet/build/index.md +74 -0
- package/docs/applet/generate/index.md +118 -0
- package/docs/applet/index.md +134 -0
- package/docs/applet/start/index.md +104 -0
- package/docs/applet/test/index.md +91 -0
- package/docs/applet/test/run/index.md +82 -0
- package/docs/applet/test/upload/index.md +80 -0
- package/docs/applet/upload/index.md +131 -0
- package/docs/autocomplete/index.md +92 -0
- package/docs/autocomplete/install/index.md +120 -0
- package/docs/autocomplete/uninstall/index.md +65 -0
- package/docs/custom-script/generate/index.md +66 -0
- package/docs/custom-script/index.md +96 -0
- package/docs/custom-script/upload/index.md +78 -0
- package/docs/device/connect/index.md +148 -0
- package/docs/device/index.md +105 -0
- package/docs/device/power-action/index.md +130 -0
- package/docs/device/set-content/index.md +72 -0
- package/docs/index.md +168 -0
- package/docs/login/index.md +122 -0
- package/docs/organization/get/index.md +79 -0
- package/docs/organization/index.md +105 -0
- package/docs/organization/list/index.md +65 -0
- package/docs/organization/set-default/index.md +74 -0
- package/docs/timing/index.md +78 -0
- package/docs/timing/list/index.md +71 -0
- package/package.json +29 -19
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: device-index
|
|
3
|
+
title: device
|
|
4
|
+
sidebar_position: 30
|
|
5
|
+
---
|
|
6
|
+
# device
|
|
7
|
+
|
|
8
|
+
Device management
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Provides commands for managing signageOS devices, including connecting to devices
|
|
14
|
+
for development, controlling device power states, and managing applet deployment.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
sos device <subcommand> [options]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Subcommands
|
|
23
|
+
|
|
24
|
+
### set-content
|
|
25
|
+
|
|
26
|
+
Deploy applet to device
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
sos device set-content [options]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[→ See detailed documentation](set-content/)
|
|
33
|
+
|
|
34
|
+
### power-action
|
|
35
|
+
|
|
36
|
+
Perform power action on device
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
sos device power-action <actionType> [options]
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[→ See detailed documentation](power-action/)
|
|
43
|
+
|
|
44
|
+
### connect
|
|
45
|
+
|
|
46
|
+
Connect device to local development server
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
sos device connect [options]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[→ See detailed documentation](connect/)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Examples
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Connect to device for development
|
|
59
|
+
sos device connect --device-uid device123
|
|
60
|
+
|
|
61
|
+
# Control device power actions
|
|
62
|
+
sos device power-action reload --device-uid device123
|
|
63
|
+
|
|
64
|
+
# Deploy applet to device
|
|
65
|
+
sos device set-content --device-uid device123
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Since
|
|
69
|
+
|
|
70
|
+
0.9.0
|
|
71
|
+
|
|
72
|
+
## Global Options
|
|
73
|
+
|
|
74
|
+
All commands support the following global options:
|
|
75
|
+
|
|
76
|
+
| Option | Alias | Description |
|
|
77
|
+
|--------|-------|-------------|
|
|
78
|
+
| `--help` | `-h` | Display help information for any command |
|
|
79
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
80
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
81
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
82
|
+
|
|
83
|
+
### Examples
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Show version
|
|
87
|
+
sos --version
|
|
88
|
+
|
|
89
|
+
# Get help for any command
|
|
90
|
+
sos applet --help
|
|
91
|
+
sos applet upload --help
|
|
92
|
+
|
|
93
|
+
# Use custom API endpoint
|
|
94
|
+
sos --api-url https://api.example.com applet upload
|
|
95
|
+
|
|
96
|
+
# Use specific profile
|
|
97
|
+
sos --profile production organization list
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## Related Commands
|
|
102
|
+
|
|
103
|
+
- [`sos device set-content`](set-content/) - Deploy applet to device
|
|
104
|
+
- [`sos device power-action`](power-action/) - Perform power action on device
|
|
105
|
+
- [`sos device connect`](connect/) - Connect device to local development server
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: device-power-action-index
|
|
3
|
+
title: power-action
|
|
4
|
+
sidebar_position: 32
|
|
5
|
+
---
|
|
6
|
+
# power-action
|
|
7
|
+
|
|
8
|
+
Perform power action on device
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Executes various power and control actions on remote signageOS devices, including
|
|
14
|
+
applet reloads, display power management, system reboots, and applet state changes.
|
|
15
|
+
This command provides remote device management capabilities for troubleshooting
|
|
16
|
+
and maintenance operations.
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
sos device power-action <actionType> [options]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Options
|
|
25
|
+
|
|
26
|
+
| Option | Description |
|
|
27
|
+
| --------------------------- | ---------------------------------------------------------------- |
|
|
28
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
|
|
29
|
+
| `--organization-uid` | Organization UID (string) |
|
|
30
|
+
| `--device-uid` | Device UID (string) |
|
|
31
|
+
| `--type` | Type of device power action (string) |
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Reload applet on device
|
|
37
|
+
sos device power-action reload --device-uid device123
|
|
38
|
+
|
|
39
|
+
# Turn display on
|
|
40
|
+
sos device power-action displayOn --device-uid device123
|
|
41
|
+
|
|
42
|
+
# Turn display off
|
|
43
|
+
sos device power-action displayOff --device-uid device123
|
|
44
|
+
|
|
45
|
+
# Restart application
|
|
46
|
+
sos device power-action restart --device-uid device123
|
|
47
|
+
|
|
48
|
+
# Disable applet
|
|
49
|
+
sos device power-action disable --device-uid device123
|
|
50
|
+
|
|
51
|
+
# Enable applet
|
|
52
|
+
sos device power-action enable --device-uid device123
|
|
53
|
+
|
|
54
|
+
# Reboot device
|
|
55
|
+
sos device power-action reboot --device-uid device123
|
|
56
|
+
|
|
57
|
+
# Refresh content
|
|
58
|
+
sos device power-action refresh --device-uid device123
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
# Reboot system
|
|
62
|
+
sos device power-action reboot --device-uid device123
|
|
63
|
+
|
|
64
|
+
# Refresh applet
|
|
65
|
+
sos device power-action refresh --device-uid device123
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Advanced Usage
|
|
69
|
+
|
|
70
|
+
### Power Action Types
|
|
71
|
+
|
|
72
|
+
| Action | Description |
|
|
73
|
+
|-------------|----------------------------|
|
|
74
|
+
| reload | Applet Reload |
|
|
75
|
+
| displayOn | Display power On |
|
|
76
|
+
| displayOff | Display power Off |
|
|
77
|
+
| restart | Application restart |
|
|
78
|
+
| disable | Applet disable |
|
|
79
|
+
| enable | Applet enable |
|
|
80
|
+
| reboot | System reboot |
|
|
81
|
+
| refresh | Applet Refresh |
|
|
82
|
+
|
|
83
|
+
### Usage Scenarios
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Reload applet content
|
|
87
|
+
sos device power-action --device-uid device123 --type reload
|
|
88
|
+
|
|
89
|
+
# Turn display off for maintenance
|
|
90
|
+
sos device power-action --device-uid device123 --type displayOff
|
|
91
|
+
|
|
92
|
+
# Restart the device application
|
|
93
|
+
sos device power-action --device-uid device123 --type restart
|
|
94
|
+
|
|
95
|
+
# Reboot the entire system
|
|
96
|
+
sos device power-action --device-uid device123 --type reboot
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## Since
|
|
101
|
+
|
|
102
|
+
0.9.0
|
|
103
|
+
|
|
104
|
+
## Global Options
|
|
105
|
+
|
|
106
|
+
All commands support the following global options:
|
|
107
|
+
|
|
108
|
+
| Option | Alias | Description |
|
|
109
|
+
|--------|-------|-------------|
|
|
110
|
+
| `--help` | `-h` | Display help information for any command |
|
|
111
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
112
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
113
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
114
|
+
|
|
115
|
+
### Examples
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# Show version
|
|
119
|
+
sos --version
|
|
120
|
+
|
|
121
|
+
# Get help for any command
|
|
122
|
+
sos applet --help
|
|
123
|
+
sos applet upload --help
|
|
124
|
+
|
|
125
|
+
# Use custom API endpoint
|
|
126
|
+
sos --api-url https://api.example.com applet upload
|
|
127
|
+
|
|
128
|
+
# Use specific profile
|
|
129
|
+
sos --profile production organization list
|
|
130
|
+
```
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: device-set-content-index
|
|
3
|
+
title: set-content
|
|
4
|
+
sidebar_position: 33
|
|
5
|
+
---
|
|
6
|
+
# set-content
|
|
7
|
+
|
|
8
|
+
Deploy applet to device
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Deploys an applet to a specific device by creating a timing configuration
|
|
14
|
+
that activates the specified applet version on the target device. This command
|
|
15
|
+
establishes the applet-to-device relationship for production deployment.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos device set-content [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Options
|
|
24
|
+
|
|
25
|
+
| Option | Description |
|
|
26
|
+
| --------------------------- | ---------------------------------------------------------------- |
|
|
27
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
|
|
28
|
+
| `--organization-uid` | Organization UID (string) |
|
|
29
|
+
| `--applet-uid` | Applet UID (string) |
|
|
30
|
+
| `--device-uid` | Device UID (string) |
|
|
31
|
+
|
|
32
|
+
## Examples
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Deploy applet to device
|
|
36
|
+
sos device set-content --device-uid device123 --applet-uid my-applet
|
|
37
|
+
|
|
38
|
+
# Deploy with organization override
|
|
39
|
+
sos device set-content --device-uid device123 --applet-uid my-applet --organization-uid org456
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Since
|
|
43
|
+
|
|
44
|
+
0.9.0
|
|
45
|
+
|
|
46
|
+
## Global Options
|
|
47
|
+
|
|
48
|
+
All commands support the following global options:
|
|
49
|
+
|
|
50
|
+
| Option | Alias | Description |
|
|
51
|
+
|--------|-------|-------------|
|
|
52
|
+
| `--help` | `-h` | Display help information for any command |
|
|
53
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
54
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
55
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
56
|
+
|
|
57
|
+
### Examples
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Show version
|
|
61
|
+
sos --version
|
|
62
|
+
|
|
63
|
+
# Get help for any command
|
|
64
|
+
sos applet --help
|
|
65
|
+
sos applet upload --help
|
|
66
|
+
|
|
67
|
+
# Use custom API endpoint
|
|
68
|
+
sos --api-url https://api.example.com applet upload
|
|
69
|
+
|
|
70
|
+
# Use specific profile
|
|
71
|
+
sos --profile production organization list
|
|
72
|
+
```
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: sos
|
|
3
|
+
title: Introduction
|
|
4
|
+
sidebar_position: 0
|
|
5
|
+
---
|
|
6
|
+
# sos
|
|
7
|
+
|
|
8
|
+
SignageOS CLI - The central command-line tool for deploying, managing, and debugging signageOS projects and devices
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
### Key Features
|
|
16
|
+
|
|
17
|
+
- **Applet Development**: Create, build, test, and deploy applets
|
|
18
|
+
- **Development Tools**: Connect to devices for testing, upload custom scripts and debug
|
|
19
|
+
- **Device Management**: Control device power states and applet timings
|
|
20
|
+
- **Organization Management**: Handle multi-tenant environments
|
|
21
|
+
- **Authentication**: Secure login and profile management
|
|
22
|
+
|
|
23
|
+
### Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install -g @signageos/cli
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Getting Started
|
|
30
|
+
|
|
31
|
+
1. **Login to your account**: `sos login`
|
|
32
|
+
2. **Generate a new applet**: `sos applet generate --name my-applet`
|
|
33
|
+
3. **Start development**: `cd my-applet && sos applet start`
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
sos [options] <command>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Debugging
|
|
42
|
+
|
|
43
|
+
To enable debugging for specific modules, use the `DEBUG` environment variable:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Debug applet upload module
|
|
47
|
+
DEBUG=@signageos/cli:Applet:Upload:appletUploadFacade sos applet upload
|
|
48
|
+
|
|
49
|
+
# Debug all signageOS modules
|
|
50
|
+
DEBUG=@signageos/* sos applet upload
|
|
51
|
+
|
|
52
|
+
# Set debug environment variable
|
|
53
|
+
export DEBUG=@signageos/*
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Description
|
|
58
|
+
|
|
59
|
+
The root command for the signageOS CLI tool that provides comprehensive management
|
|
60
|
+
capabilities for applets, devices, organizations, and other signageOS resources.
|
|
61
|
+
This command serves as the entry point for all CLI operations and coordinates
|
|
62
|
+
access to all available command groups.
|
|
63
|
+
|
|
64
|
+
## Options
|
|
65
|
+
|
|
66
|
+
| Option | Alias | Description |
|
|
67
|
+
| ----------- | ----- | ---------------------------------------------------------------------------------------------------- |
|
|
68
|
+
| `--command` | `-c` | (default) Command name (string) |
|
|
69
|
+
| `--help` | `-h` | Display this usage guide. (boolean) |
|
|
70
|
+
| `--api-url` | `-u` | API URL to be used for REST requests (string) |
|
|
71
|
+
| `--version` | `-v` | Display installed version of the CLI. (boolean) |
|
|
72
|
+
| `--profile` | | signageOS Profile to be used for authentication and other values from ~/.sosrc config file. (string) |
|
|
73
|
+
|
|
74
|
+
## Commands
|
|
75
|
+
|
|
76
|
+
### Development
|
|
77
|
+
|
|
78
|
+
#### `sos applet`
|
|
79
|
+
|
|
80
|
+
Applet development and management operations
|
|
81
|
+
|
|
82
|
+
**Available commands**: `sos applet generate`, `sos applet upload`, `sos applet start`, `sos applet test`, `sos applet build`
|
|
83
|
+
|
|
84
|
+
[→ See detailed documentation](applet/)
|
|
85
|
+
|
|
86
|
+
#### `sos custom-script`
|
|
87
|
+
|
|
88
|
+
Custom Script management
|
|
89
|
+
|
|
90
|
+
**Available commands**: `sos custom-script upload`, `sos custom-script generate`
|
|
91
|
+
|
|
92
|
+
[→ See detailed documentation](custom-script/)
|
|
93
|
+
|
|
94
|
+
### Authentication
|
|
95
|
+
|
|
96
|
+
#### `sos login`
|
|
97
|
+
|
|
98
|
+
Authenticate user with signageOS
|
|
99
|
+
|
|
100
|
+
[→ See detailed documentation](login/)
|
|
101
|
+
|
|
102
|
+
### Management
|
|
103
|
+
|
|
104
|
+
#### `sos organization`
|
|
105
|
+
|
|
106
|
+
Organization management operations
|
|
107
|
+
|
|
108
|
+
**Available commands**: `sos organization list`, `sos organization get`, `sos organization set-default`
|
|
109
|
+
|
|
110
|
+
[→ See detailed documentation](organization/)
|
|
111
|
+
|
|
112
|
+
#### `sos timing`
|
|
113
|
+
|
|
114
|
+
Timing management
|
|
115
|
+
|
|
116
|
+
**Available commands**: `sos timing list`
|
|
117
|
+
|
|
118
|
+
[→ See detailed documentation](timing/)
|
|
119
|
+
|
|
120
|
+
#### `sos device`
|
|
121
|
+
|
|
122
|
+
Device management
|
|
123
|
+
|
|
124
|
+
**Available commands**: `sos device set-content`, `sos device power-action`, `sos device connect`
|
|
125
|
+
|
|
126
|
+
[→ See detailed documentation](device/)
|
|
127
|
+
|
|
128
|
+
### Tools
|
|
129
|
+
|
|
130
|
+
#### `sos autocomplete`
|
|
131
|
+
|
|
132
|
+
CLI auto-completion management
|
|
133
|
+
|
|
134
|
+
**Available commands**: `sos autocomplete install`, `sos autocomplete uninstall`
|
|
135
|
+
|
|
136
|
+
[→ See detailed documentation](autocomplete/)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## Examples
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# Show help and available commands
|
|
143
|
+
sos --help
|
|
144
|
+
|
|
145
|
+
# Show version information
|
|
146
|
+
sos --version
|
|
147
|
+
|
|
148
|
+
# Use custom API endpoint
|
|
149
|
+
sos --api-url https://api.custom.signageos.io applet list
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Since
|
|
153
|
+
|
|
154
|
+
0.1.0
|
|
155
|
+
|
|
156
|
+
## Related Commands
|
|
157
|
+
|
|
158
|
+
- [`sos applet`](applet/) - Applet development and management operations
|
|
159
|
+
- [`sos login`](login/) - Authenticate user with signageOS
|
|
160
|
+
- [`sos organization`](organization/) - Organization management operations
|
|
161
|
+
- [`sos timing`](timing/) - Timing management
|
|
162
|
+
- [`sos device`](device/) - Device management
|
|
163
|
+
- [`sos custom-script`](custom-script/) - Custom Script management
|
|
164
|
+
- [`sos autocomplete`](autocomplete/) - CLI auto-completion management
|
|
165
|
+
|
|
166
|
+
## See Also
|
|
167
|
+
|
|
168
|
+
- [CLI Setup](https://developers.signageos.io/docs/cli-setup/)
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: login-index
|
|
3
|
+
title: login
|
|
4
|
+
sidebar_position: 10
|
|
5
|
+
---
|
|
6
|
+
# login
|
|
7
|
+
|
|
8
|
+
Authenticate user with signageOS
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Handles user authentication using username/email and password credentials.
|
|
14
|
+
Supports both Auth0 and legacy authentication methods. Stores credentials
|
|
15
|
+
securely in the ~/.sosrc configuration file for subsequent CLI operations.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos login [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Options
|
|
24
|
+
|
|
25
|
+
| Option | Description |
|
|
26
|
+
| ------------ | --------------------------------------------------- |
|
|
27
|
+
| `--username` | Username or e-mail used for authentication (string) |
|
|
28
|
+
|
|
29
|
+
## Examples
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Interactive login (prompts for username and password)
|
|
33
|
+
sos login
|
|
34
|
+
|
|
35
|
+
# Login with username specified
|
|
36
|
+
sos login --username user@example.com
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Advanced Usage
|
|
40
|
+
|
|
41
|
+
### Configuration Management
|
|
42
|
+
|
|
43
|
+
#### Run Control File
|
|
44
|
+
|
|
45
|
+
Login credentials are stored in `~/.sosrc` file. For the default profile, it contains:
|
|
46
|
+
|
|
47
|
+
```ini
|
|
48
|
+
identification=xxxxxxxxxxxxxxxxxxxx
|
|
49
|
+
apiSecurityToken=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
#### Multiple Profiles
|
|
53
|
+
|
|
54
|
+
You can manage multiple accounts/configurations using profiles with the `SOS_PROFILE` environment variable or `--profile` argument:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Login with specific profile
|
|
58
|
+
sos login --profile production
|
|
59
|
+
|
|
60
|
+
# Use profile in subsequent commands
|
|
61
|
+
sos --profile production applet upload
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The configuration file uses INI sections for named profiles:
|
|
65
|
+
|
|
66
|
+
```ini
|
|
67
|
+
[profile production]
|
|
68
|
+
identification=xxxxxxxxxxxxxxxxxxxx
|
|
69
|
+
apiSecurityToken=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
70
|
+
|
|
71
|
+
[profile staging]
|
|
72
|
+
identification=yyyyyyyyyyyyyyyyyyyy
|
|
73
|
+
apiSecurityToken=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
#### Environment Variables
|
|
77
|
+
|
|
78
|
+
You can override login credentials using environment variables:
|
|
79
|
+
|
|
80
|
+
- **`SOS_API_IDENTIFICATION`**: Override stored identification
|
|
81
|
+
- **`SOS_API_SECURITY_TOKEN`**: Override stored security token
|
|
82
|
+
- **`SOS_PROFILE`**: Specify which profile to use
|
|
83
|
+
|
|
84
|
+
Generate tokens at: https://box.signageos.io/settings
|
|
85
|
+
|
|
86
|
+
### Requirements
|
|
87
|
+
|
|
88
|
+
- Active account. It can be obtained by manual sign-up in [https://box.signageos.io](https://box.signageos.io)
|
|
89
|
+
- Login account credentials are stored in `~/.sosrc` file
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## Since
|
|
93
|
+
|
|
94
|
+
0.3.0
|
|
95
|
+
|
|
96
|
+
## Global Options
|
|
97
|
+
|
|
98
|
+
All commands support the following global options:
|
|
99
|
+
|
|
100
|
+
| Option | Alias | Description |
|
|
101
|
+
|--------|-------|-------------|
|
|
102
|
+
| `--help` | `-h` | Display help information for any command |
|
|
103
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
104
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
105
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
106
|
+
|
|
107
|
+
### Examples
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# Show version
|
|
111
|
+
sos --version
|
|
112
|
+
|
|
113
|
+
# Get help for any command
|
|
114
|
+
sos applet --help
|
|
115
|
+
sos applet upload --help
|
|
116
|
+
|
|
117
|
+
# Use custom API endpoint
|
|
118
|
+
sos --api-url https://api.example.com applet upload
|
|
119
|
+
|
|
120
|
+
# Use specific profile
|
|
121
|
+
sos --profile production organization list
|
|
122
|
+
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: organization-get-index
|
|
3
|
+
title: get
|
|
4
|
+
sidebar_position: 62
|
|
5
|
+
---
|
|
6
|
+
# get
|
|
7
|
+
|
|
8
|
+
Get detailed information about a specific organization
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Retrieves and displays detailed information about a specific organization
|
|
14
|
+
by its UID. If no organization UID is provided, uses the default organization
|
|
15
|
+
or prompts for selection from available organizations.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos organization get [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Options
|
|
24
|
+
|
|
25
|
+
| Option | Description |
|
|
26
|
+
| --------------------------- | ---------------------------------------------------------------- |
|
|
27
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
|
|
28
|
+
| `--organization-uid` | Organization UID (string) |
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# Get default organization details
|
|
34
|
+
sos organization get
|
|
35
|
+
|
|
36
|
+
# Get specific organization by UID
|
|
37
|
+
sos organization get --organization-uid abc123def456
|
|
38
|
+
|
|
39
|
+
# Force organization selection (skip default)
|
|
40
|
+
sos organization get --no-default-organization
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Since
|
|
44
|
+
|
|
45
|
+
0.3.0
|
|
46
|
+
|
|
47
|
+
## Global Options
|
|
48
|
+
|
|
49
|
+
All commands support the following global options:
|
|
50
|
+
|
|
51
|
+
| Option | Alias | Description |
|
|
52
|
+
|--------|-------|-------------|
|
|
53
|
+
| `--help` | `-h` | Display help information for any command |
|
|
54
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
55
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
56
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
57
|
+
|
|
58
|
+
### Examples
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Show version
|
|
62
|
+
sos --version
|
|
63
|
+
|
|
64
|
+
# Get help for any command
|
|
65
|
+
sos applet --help
|
|
66
|
+
sos applet upload --help
|
|
67
|
+
|
|
68
|
+
# Use custom API endpoint
|
|
69
|
+
sos --api-url https://api.example.com applet upload
|
|
70
|
+
|
|
71
|
+
# Use specific profile
|
|
72
|
+
sos --profile production organization list
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## See Also
|
|
77
|
+
|
|
78
|
+
- [List organizations for selection](../list/)
|
|
79
|
+
- [Organization management commands](../)
|