Seam Online CLI
Use the interactive Seam Online CLI as a user-friendly and efficient way to explore and test the Seam API from within the Seam Console.
Last updated
Use the interactive Seam Online CLI as a user-friendly and efficient way to explore and test the Seam API from within the Seam Console.
Last updated
© Seam Labs, Inc. All rights reserved.
The Seam Online Command Line Interface (CLI) is a fully interactive CLI version of the Seam API. You access the Seam Online CLI from within the Seam Console. Quick, intuitive, and easy to use, the Seam Online CLI enables you to perform a variety of useful tasks, including the following:
Explore and test all the available methods in the Seam API interactively.
View resources or test API functions easily and quickly.
Inspect the results of your API commands.
Access Seam API functionality that is not currently available in the Seam Console.
In addition to using the Seam Online CLI within the Seam Console, you can also install and use the Seam CLI locally.
In the upper-right corner of the Seam Console, click the down arrow to display the workspace list.
Click the workspace for which you want to use the Seam Online CLI.
In the left navigation pane, click Online CLI.
The Seam Online CLI opens in a new browser tab or window.
Each instance of the Seam Online CLI begins within the workspace from which you opened the CLI. However, you can use seam select workspace
to switch to a different workspace or seam login
to use a Personal Access Token for multi-workspace access.
Interact with the Seam CLI using any combination of interactive and typed commands. You "construct" the full command, including any desired parameters, and then run the command.
Click within the Seam CLI pane to activate this pane.
Enter a command stub, such as seam
, seam devices
, or seam devices list
.
Some commonly-used command stubs include the following:
seam
seam access-codes
seam acs
seam action-attempts
seam client-sessions
seam connect-webviews
seam devices
seam locks
seam login
seam noise-sensors
seam select
seam thermostats
seam user-identities
For a full list of command stubs, see Seam CLI Command Stubs.
Use the up and down arrows and press Enter to select the desired command and parameters.
You can also type the beginning of a command or parameter name to filter the list of interactive options.
Enter or select any desired parameter values. You can specify values for multiple parameters and edit any parameter values that you have already specified. You can also copy and paste values.
For example, if you have chosen to use seam devices get
, and have selected the device_id
parameter, the Seam CLI displays a list of the names and IDs of all devices to which you have access. Use the arrow keys to select the desired device and then press Enter.
Once you have constructed the full command to run, use the up and down arrows to select Make API Call
and then press Enter.
The Seam CLI runs the specified command and displays the output.
If you have chosen to run a command that returns an action attempt, use the left and right arrows to select yes
or no
and then press Enter to indicate whether to poll the action attempt until it completes.
The Seam CLI supports the following command stubs:
Command Stub | Description |
---|---|
| Access all Seam CLI commands in an interactive manner. |
| Manage access codes. |
| Manage Access Control Systems (ACSs), including associated objects, such as systems, users, access groups, and credentials. |
| List and get action attempts to poll the status of attempted actions, such as unlock and create access code. |
| Manage client sessions that enable you to restrict users' interactions to include only the devices that they own. |
| Manage Connect Webviews that enable users to connect their devices to Seam. |
| Manage connected accounts that represent external, third-party accounts to which users have authorized Seam to access. |
| Manage devices, including both "managed" and "unmanaged" devices. |
| Retrieve events. |
| Retrieve, lock, and unlock smart locks. |
| Log back in to the Seam CLI or change your authorization to use a different API key or Personal Access Token. |
| Log out of the Seam CLI. |
| Manage noise thresholds for noise sensors and simulate triggering noise threshold alerts. |
| Select the desired workspace or server. |
| Manage thermostats, including current climate settings. |
| Manage user identities that enable you to issue and manage mobile credentials and access permissions for users. |
| Manage webhook endpoints that enable you to receive notifications of Seam-related events. |
| Manage your workspaces, including creating new workspaces, retrieving existing workspaces, and resetting your sandbox workspaces. |
To copy and paste values in the Seam CLI, right-click and select the desired option or use the following keyboard shortcuts:
Operation | Windows/Linux | Mac |
---|---|---|
Copy | Ctrl-Insert | Command-C |
Paste | Shift-Insert or Ctrl-Shift-V | Command-V |