unifi sites
About 297 words
List the controller's sites and choose the default one.
Aliases: site
Commands
unifi sites get: List the sites of the controller, or show oneunifi sites use: Set the default site of the context
unifi sites get
List the sites of the controller, or show one.
Usage
unifi sites get [site] [flags]Aliases: list, ls
List the sites of the selected context's controller. The site commands act on by default is marked: the context's default site, or the one given with --site.
Examples
unifi sites get
unifi sites get --context lake
unifi sites get "Lake House" --output jsonunifi sites use
Set the default site of the context.
Usage
unifi sites use [site] [flags]Aliases: switch
Make a site the default of the current context, or of the one named with --context. The site is named by its name, its internal reference or its ID and must exist on the controller. Without an argument, on a terminal, pick the site from a list. Shorthand for unifi ctx set --site.
Examples
unifi sites use "Lake House"
unifi sites use default --context lakeFlags
| Flag | Description |
|---|---|
-y, --yes | do not ask for confirmation; accepted by every command that changes something |
Global flags
These flags are accepted by every command.
| Flag | Description |
|---|---|
--color-scheme <string> | color scheme: auto, dark or light |
--context <string> | context to use instead of the current one |
--no-cache | ask the controller for everything instead of using cached answers |
-o, --output <string> | output format: text, wide, json, yaml (table is another name for text) |
-s, --site <string> | site to act on instead of the context's default site |
--theme <string> | theme to render with instead of the configured one |
