Skip to content

Commit 24c32c4

Browse files
committed
Add multi-profile auth: login --name, logout --name, auth list, auth switch
1 parent 11c649b commit 24c32c4

3 files changed

Lines changed: 448 additions & 47 deletions

File tree

docs/CommandLineHelp.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ This document contains the help content for the `screenly` command-line program.
77
* [`screenly`](#screenly)
88
* [`screenly login`](#screenly-login)
99
* [`screenly logout`](#screenly-logout)
10+
* [`screenly auth`](#screenly-auth)
11+
* [`screenly auth list`](#screenly-auth-list)
12+
* [`screenly auth switch`](#screenly-auth-switch)
1013
* [`screenly screen`](#screenly-screen)
1114
* [`screenly screen list`](#screenly-screen-list)
1215
* [`screenly screen get`](#screenly-screen-get)
@@ -58,6 +61,7 @@ Command line interface is intended for quick interaction with Screenly through t
5861

5962
* `login` — Logs in with the provided token and stores it for further use if valid. You can set the API_TOKEN environment variable to override the stored token
6063
* `logout` — Logs out and removes the stored token
64+
* `auth` — Manage stored authentication profiles
6165
* `screen` — Screen related commands
6266
* `asset` — Asset related commands
6367
* `playlist` — Playlist related commands
@@ -74,15 +78,56 @@ Command line interface is intended for quick interaction with Screenly through t
7478

7579
Logs in with the provided token and stores it for further use if valid. You can set the API_TOKEN environment variable to override the stored token
7680

77-
**Usage:** `screenly login`
81+
**Usage:** `screenly login [OPTIONS]`
82+
83+
###### **Options:**
84+
85+
* `--name <NAME>` — Profile name to store the token under. Required when other profiles already exist
7886

7987

8088

8189
## `screenly logout`
8290

8391
Logs out and removes the stored token
8492

85-
**Usage:** `screenly logout`
93+
**Usage:** `screenly logout [OPTIONS]`
94+
95+
###### **Options:**
96+
97+
* `--name <NAME>` — Profile name to remove. Removes the active profile if not specified
98+
99+
100+
101+
## `screenly auth`
102+
103+
Manage stored authentication profiles
104+
105+
**Usage:** `screenly auth <COMMAND>`
106+
107+
###### **Subcommands:**
108+
109+
* `list` — List stored authentication profiles
110+
* `switch` — Switch the active authentication profile
111+
112+
113+
114+
## `screenly auth list`
115+
116+
List stored authentication profiles
117+
118+
**Usage:** `screenly auth list`
119+
120+
121+
122+
## `screenly auth switch`
123+
124+
Switch the active authentication profile
125+
126+
**Usage:** `screenly auth switch [NAME]`
127+
128+
###### **Arguments:**
129+
130+
* `<NAME>` — Profile name to activate
86131

87132

88133

0 commit comments

Comments
 (0)