jonbride / smartthings-cli

Command Line Interface for the SmartThings APIs.

Home Page:https://developer-preview.smartthings.com/docs/sdks/cli/introduction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

oclif npm version npm License

SmartThings Unified CLI

⚠️ 🚧 This CLI is currently in beta release. Please open an issue to report a bug or ask a question.

Usage

  1. Download the appropriate binary from the releases tab of the github page.
  2. Install it on your path and rename it to "smartthings". It does not need administrator privileges but will need to be executable.
  3. Run smartthings --help to make sure it's working.
  4. Run a specific command with smartthings <command>

Input and Output Considerations

Many commands in the CLI handle complex input and/or output, mostly for use with the SmartThings REST API.

Complex input can always be passed as JSON or YAML and in a couple cases a "question and answer" mode is provided.

The output format will match the input format unless otherwise specified. When there is no input specified the default will be a user-friendly (often table) formatted style if the output is going to the console or JSON otherwise.

Name Shortcut Description
json j Write output in JSON format.
yaml y Write output in YAML format.
indent Specify the number of spaces for YAML or JSON output
input i Specify a filename for input.
output o Specify a filename for output. The extension of this file will control its type unless overridden with --json or --yaml.

Authentication

The CLI supports an automatic login flow that pops up a browser window asking you to log in and give the CLI permission to access your account. The CLI will automatically request login as needed.

You can also use a personal access token (PAT) for authentication by passing a --token <uuid> flag to commands or by creating a configuration file and including the token in a token key for your profile. We generally don't recommend this approach since it less secure, given that PATs don't expire unless revoked by the user, but it can be useful when working with headless servers or for users who frequently switch between accounts.

Helpful Hints

  1. You can get more specific information about any command or sub-hierarchy of commands by using --help with a specific command or branch. For example, you can run any of the following commands for varying level of detail:
    • smartthings capabilities --help,
    • smartthings capabilities:presentation --help
    • smartthings capabilities:presentation:create --help
  2. The CLI accepts data in YAML or JSON format and can output data in either format as well as the default table format.
  3. Commands that take input accept stdin or a file specified by the --input (shortcut -i) flag.
  4. Commands that output data will output the data to stdout unless a file is specified the using --output (shortcut -o`) flag.
  5. When a command takes input and results in output, the format of the output will match the input format unless an output filename is specified using --output with a different extension.
  6. Command line flags must go after the command. Use smartthings command -f flag instead of smartthings -f flag command.

Commands

Commands that use the SmartThings REST API are organized in topics that map to the API spec.

smartthings apps [ID]

get a specific app or a list of apps

USAGE
  $ smartthings apps [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]
    [--type <value>] [--classification <value>] [-v]

ARGUMENTS
  ID  the app id or number from list

FLAGS
  -h, --help                   Show CLI help.
  -j, --json                   use JSON format of input and/or output
  -o, --output=<value>         specify output file
  -p, --profile=<value>        [default: default] configuration profile
  -t, --token=<value>          the auth token to use
  -v, --verbose                include URLs and ARNs in table output
  -y, --yaml                   use YAML format of input and/or output
  --classification=<value>...  filter results by one or more classifications, AUTOMATION, SERVICE, DEVICE,
                               CONNECTED_SERVICE
  --language=<value>           ISO language code or "NONE" to not specify a language. Defaults to the OS locale
  --type=<value>               filter results by appType, WEBHOOK_SMART_APP, LAMBDA_SMART_APP, API_ONLY

DESCRIPTION
  get a specific app or a list of apps

See code: src/commands/apps.ts

smartthings apps:authorize ARN

authorize calls to your AWS Lambda function from SmartThings

USAGE
  $ smartthings apps:authorize [ARN] [-h] [-p <value>] [--principal <value>] [--statement-id <value>]

ARGUMENTS
  ARN  the ARN of the AWS Lambda function

FLAGS
  -h, --help              Show CLI help.
  -p, --profile=<value>   [default: default] configuration profile
  --principal=<value>     use this principal instead of the default when authorizing lambda functions
  --statement-id=<value>  use this statement id instead of the default when authorizing lambda functions

DESCRIPTION
  authorize calls to your AWS Lambda function from SmartThings

EXAMPLES
  $ smartthings apps:authorize arn:aws:lambda:us-east-1:1234567890:function:your-test-app



  Note that this command is the same as running the following with the AWS CLI:



  $ aws lambda add-permission --region us-east-1 \

      --function-name arn:aws:lambda:us-east-1:1234567890:function:your-test-app \

      --statement-id smartthings --principal 906037444270 --action lambda:InvokeFunction



  It requires your machine to be configured to run the AWS CLI

See code: src/commands/apps/authorize.ts

smartthings apps:create

create an app

USAGE
  $ smartthings apps:create [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d] [--authorize] [--principal <value>] [--statement-id <value>]

FLAGS
  -d, --dry-run           produce JSON but don't actually submit
  -h, --help              Show CLI help.
  -i, --input=<value>     specify input file
  -j, --json              use JSON format of input and/or output
  -o, --output=<value>    specify output file
  -p, --profile=<value>   [default: default] configuration profile
  -t, --token=<value>     the auth token to use
  -y, --yaml              use YAML format of input and/or output
  --authorize             authorize Lambda functions to be called by SmartThings
  --language=<value>      ISO language code or "NONE" to not specify a language. Defaults to the OS locale
  --principal=<value>     use this principal instead of the default when authorizing lambda functions
  --statement-id=<value>  use this statement id instead of the default when authorizing lambda functions

DESCRIPTION
  create an app

See code: src/commands/apps/create.ts

smartthings apps:delete [ID]

delete the app

USAGE
  $ smartthings apps:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>]

ARGUMENTS
  ID  App profile UUID or number in the list

FLAGS
  -h, --help             Show CLI help.
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete the app

See code: src/commands/apps/delete.ts

smartthings apps:oauth [ID]

get OAuth information for the app

USAGE
  $ smartthings apps:oauth [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  ID  the app id or number in the list

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get OAuth information for the app

See code: src/commands/apps/oauth.ts

smartthings apps:oauth:generate [ID]

regenerate the OAuth clientId and clientSecret of an app

USAGE
  $ smartthings apps:oauth:generate [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d]

ARGUMENTS
  ID  the app id

FLAGS
  -d, --dry-run          produce JSON but don't actually submit
  -h, --help             Show CLI help.
  -i, --input=<value>    specify input file
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  regenerate the OAuth clientId and clientSecret of an app

See code: src/commands/apps/oauth/generate.ts

smartthings apps:oauth:update [ID]

update the OAuth settings of the app

USAGE
  $ smartthings apps:oauth:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d]

ARGUMENTS
  ID  the app id

FLAGS
  -d, --dry-run          produce JSON but don't actually submit
  -h, --help             Show CLI help.
  -i, --input=<value>    specify input file
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update the OAuth settings of the app

See code: src/commands/apps/oauth/update.ts

smartthings apps:register [ID]

send request to app target URL to confirm existence and authorize lifecycle events

USAGE
  $ smartthings apps:register [ID] [-h] [-p <value>] [-t <value>] [--language <value>]

ARGUMENTS
  ID  the app id

FLAGS
  -h, --help             Show CLI help.
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  send request to app target URL to confirm existence and authorize lifecycle events

See code: src/commands/apps/register.ts

smartthings apps:settings [ID]

get the settings of the app

USAGE
  $ smartthings apps:settings [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  ID  the app id

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the settings of the app

See code: src/commands/apps/settings.ts

smartthings apps:settings:update [ID]

update the settings of the app

USAGE
  $ smartthings apps:settings:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d]

ARGUMENTS
  ID  the app id

FLAGS
  -d, --dry-run          produce JSON but don't actually submit
  -h, --help             Show CLI help.
  -i, --input=<value>    specify input file
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update the settings of the app

See code: src/commands/apps/settings/update.ts

smartthings apps:update [ID]

update the settings of the app

USAGE
  $ smartthings apps:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d] [--authorize] [--principal <value>] [--statement-id <value>]

ARGUMENTS
  ID  the app id

FLAGS
  -d, --dry-run           produce JSON but don't actually submit
  -h, --help              Show CLI help.
  -i, --input=<value>     specify input file
  -j, --json              use JSON format of input and/or output
  -o, --output=<value>    specify output file
  -p, --profile=<value>   [default: default] configuration profile
  -t, --token=<value>     the auth token to use
  -y, --yaml              use YAML format of input and/or output
  --authorize             authorize Lambda functions to be called by SmartThings
  --language=<value>      ISO language code or "NONE" to not specify a language. Defaults to the OS locale
  --principal=<value>     use this principal instead of the default when authorizing lambda functions
  --statement-id=<value>  use this statement id instead of the default when authorizing lambda functions

DESCRIPTION
  update the settings of the app

See code: src/commands/apps/update.ts

smartthings autocomplete [SHELL]

display autocomplete installation instructions

USAGE
  $ smartthings autocomplete [SHELL] [-r]

ARGUMENTS
  SHELL  shell type

FLAGS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

DESCRIPTION
  display autocomplete installation instructions

EXAMPLES
  $ smartthings autocomplete

  $ smartthings autocomplete bash

  $ smartthings autocomplete zsh

  $ smartthings autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

smartthings capabilities [ID] [VERSION]

get a specific capability

USAGE
  $ smartthings capabilities [ID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-A] [-n <value>] [-s]

ARGUMENTS
  ID       the capability id or number in list
  VERSION  the capability version

FLAGS
  -A, --all-organizations     include entities from all organizations the user belongs to
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -n, --namespace=<value>     a specific namespace to query; will use all by default
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -s, --standard              show standard SmartThings capabilities
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get a specific capability

See code: src/commands/capabilities.ts

smartthings capabilities:create

create a capability for a user

USAGE
  $ smartthings capabilities:create [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d] [-n <value>]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -n, --namespace=<value>     the namespace to create the capability under
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a capability for a user

See code: src/commands/capabilities/create.ts

smartthings capabilities:delete [ID] [VERSION]

delete a capability

USAGE
  $ smartthings capabilities:delete [ID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]

ARGUMENTS
  ID       the capability id
  VERSION  the capability version

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a capability

See code: src/commands/capabilities/delete.ts

smartthings capabilities:namespaces

list all capability namespaces currently available in a user account

USAGE
  $ smartthings capabilities:namespaces [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all capability namespaces currently available in a user account

See code: src/commands/capabilities/namespaces.ts

smartthings capabilities:presentation [ID] [VERSION]

get presentation information for a specific capability

USAGE
  $ smartthings capabilities:presentation [ID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-n <value>]

ARGUMENTS
  ID       the capability id or number in list
  VERSION  the capability version

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -n, --namespace=<value>     a specific namespace to query; will use all by default
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get presentation information for a specific capability

See code: src/commands/capabilities/presentation.ts

smartthings capabilities:presentation:create [ID] [VERSION]

create presentation model for a capability

USAGE
  $ smartthings capabilities:presentation:create [ID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-i <value>] [-o <value>] [-d]

ARGUMENTS
  ID       the capability id
  VERSION  the capability version

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create presentation model for a capability

See code: src/commands/capabilities/presentation/create.ts

smartthings capabilities:presentation:update [ID] [VERSION]

update presentation information of a capability

USAGE
  $ smartthings capabilities:presentation:update [ID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-i <value>] [-o <value>] [-d]

ARGUMENTS
  ID       the capability id
  VERSION  the capability version

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update presentation information of a capability

See code: src/commands/capabilities/presentation/update.ts

smartthings capabilities:translations [ID] [VERSION] [TAG]

get list of locales supported by the capability

USAGE
  $ smartthings capabilities:translations [ID] [VERSION] [TAG] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]
    [-j] [-y] [-o <value>] [-n <value>] [-v]

ARGUMENTS
  ID       the capability id or number in list
  VERSION  the capability version
  TAG      the locale tag

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -n, --namespace=<value>     a specific namespace to query; will use all by default
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -v, --verbose               include list of supported locales in table output
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get list of locales supported by the capability

EXAMPLES
  $ smartthings capabilities:translations

  ┌───┬─────────────────────────────┬─────────┬──────────┐

  │ # │ Id                          │ Version │ Status   │

  ├───┼─────────────────────────────┼─────────┼──────────┤

  │ 1 │ custom1.outputModulation    │ 1       │ proposed │

  │ 2 │ custom1.outputVoltage       │ 1       │ proposed │

  └───┴─────────────────────────────┴─────────┴──────────┘

  ? Select a capability. 1

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ ko  │

  └───┴─────┘



  outputModulation (master)$ st capabilities:translations -v

  ┌───┬─────────────────────────────┬─────────┬──────────┬────────────┐

  │ # │ Id                          │ Version │ Status   │ Locales    │

  ├───┼─────────────────────────────┼─────────┼──────────┼────────────┤

  │ 1 │ custom1.outputModulation    │ 1       │ proposed │ ko, en, es │

  │ 2 │ custom1.outputVoltage       │ 1       │ proposed │ en         │

  └───┴─────────────────────────────┴─────────┴──────────┴────────────┘

  ? Select a capability. 1

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 1 │ es  │

  │ 2 │ ko  │

  └───┴─────┘



  $ smartthings capabilities:translations 1

  $ smartthings capabilities:translations custom1.outputModulation

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ ko  │

  └───┴─────┘



  $ smartthings capabilities:translations 1 1

  $ smartthings capabilities:translations 1 en

  $ smartthings capabilities:translations custom1.outputModulation 1 1

  $ smartthings capabilities:translations custom1.outputModulation 1 en

  $ smartthings capabilities:translations custom1.outputModulation en

  Tag: en



  Attributes:

  ┌────────────────────────┬───────────────────┬────────────────────────────────┬────────────────────────────────────────────────────┐

  │ Name                   │ Label             │ Description                    │ Template                                           │

  ├────────────────────────┼───────────────────┼────────────────────────────────┼────────────────────────────────────────────────────┤

  │ outputModulation       │ Output Modulation │ Power supply output modulation │ The {{attribute}} of {{device.label}} is {{value}} │

  │ outputModulation.50hz  │ 50 Hz             │                                │                                                    │

  │ outputModulation.60hz  │ 60 Hz             │                                │                                                    │

  └────────────────────────┴───────────────────┴────────────────────────────────┴────────────────────────────────────────────────────┘



  Commands:

  ┌──────────────────────────────────────┬───────────────────────┬──────────────────────────────────────────────────┐

  │ Name                                 │ Label                 │ Description                                      │

  ├──────────────────────────────────────┼───────────────────────┼──────────────────────────────────────────────────┤

  │ setOutputModulation                  │ Set Output Modulation │ Set the output modulation to the specified value │

  │ setOutputModulation.outputModulation │ Output Modulation     │ The desired output modulation                    │

  └──────────────────────────────────────┴───────────────────────┴──────────────────────────────────────────────────┘

See code: src/commands/capabilities/translations.ts

smartthings capabilities:translations:create [ID] [VERSION]

create a capability translation

USAGE
  $ smartthings capabilities:translations:create [ID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-i <value>] [-o <value>] [-d]

ARGUMENTS
  ID       the capability id
  VERSION  the capability version

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a capability translation

EXAMPLES
  $ smartthings capabilities:translations:create custom1.outputModulation 1 -i en.yaml 

  tag: en

  label: Output Modulation

  attributes:

    outputModulation:

      label: Output Modulation

      displayTemplate: 'The {{attribute}} of {{device.label}} is {{value}}'

      i18n:

        value:

          50hz:

            label: 50 Hz

          60hz:

            label: 60 Hz

  commands:

    setOutputModulation:

      label: Set Output Modulation

      arguments:

        outputModulation:

          label: Output Modulation



  $ smartthings capabilities:translations:create -i en.yaml

  ┌───┬─────────────────────────────┬─────────┬──────────┐

  │ # │ Id                          │ Version │ Status   │

  ├───┼─────────────────────────────┼─────────┼──────────┤

  │ 1 │ custom1.outputModulation    │ 1       │ proposed │

  │ 2 │ custom1.outputVoltage       │ 1       │ proposed │

  └───┴─────────────────────────────┴─────────┴──────────┘

  ? Enter id or index 1

  tag: en

  label: Output Modulation

  attributes:

    outputModulation:

      label: Output Modulation

      displayTemplate: 'The {{attribute}} of {{device.label}} is {{value}}'

      i18n:

        value:

          50hz:

            label: 50 Hz

          60hz:

            label: 60 Hz

  commands:

    setOutputModulation:

      label: Set Output Modulation

      arguments:

        outputModulation:

          label: Output Modulation

See code: src/commands/capabilities/translations/create.ts

smartthings capabilities:translations:update [ID] [VERSION]

update a capability translation

USAGE
  $ smartthings capabilities:translations:update [ID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-i <value>] [-o <value>] [-d]

ARGUMENTS
  ID       the capability id
  VERSION  the capability version

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a capability translation

EXAMPLES
  $ smartthings capabilities:translations:update custom1.outputModulation 1 -i en.yaml 

  tag: en

  label: Output Modulation

  attributes:

    outputModulation:

      label: Output Modulation

      displayTemplate: 'The {{attribute}} of {{device.label}} is {{value}}'

      i18n:

        value:

          50hz:

            label: 50 Hz

          60hz:

            label: 60 Hz

  commands:

    setOutputModulation:

      label: Set Output Modulation

      arguments:

        outputModulation:

          label: Output Modulation



  $ smartthings capabilities:translations:update -i en.yaml

  ┌───┬─────────────────────────────┬─────────┬──────────┐

  │ # │ Id                          │ Version │ Status   │

  ├───┼─────────────────────────────┼─────────┼──────────┤

  │ 1 │ custom1.outputModulation    │ 1       │ proposed │

  │ 2 │ custom1.outputVoltage       │ 1       │ proposed │

  └───┴─────────────────────────────┴─────────┴──────────┘

  ? Enter id or index 1

  tag: en

  label: Output Modulation

  attributes:

    outputModulation:

      label: Output Modulation

      displayTemplate: 'The {{attribute}} of {{device.label}} is {{value}}'

      i18n:

        value:

          50hz:

            label: 50 Hz

          60hz:

            label: 60 Hz

  commands:

    setOutputModulation:

      label: Set Output Modulation

      arguments:

        outputModulation:

          label: Output Modulation

See code: src/commands/capabilities/translations/update.ts

smartthings capabilities:translations:upsert [ID] [VERSION]

create or update a capability translation

USAGE
  $ smartthings capabilities:translations:upsert [ID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-i <value>] [-o <value>] [-d]

ARGUMENTS
  ID       the capability id
  VERSION  the capability version

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create or update a capability translation

EXAMPLES
  $ smartthings capabilities:translations:upsert custom1.outputModulation 1 -i en.yaml 

  tag: en

  label: Output Modulation

  attributes:

    outputModulation:

      label: Output Modulation

      displayTemplate: 'The {{attribute}} of {{device.label}} is {{value}}'

      i18n:

        value:

          50hz:

            label: 50 Hz

          60hz:

            label: 60 Hz

  commands:

    setOutputModulation:

      label: Set Output Modulation

      arguments:

        outputModulation:

          label: Output Modulation



  $ smartthings capabilities:translations:upsert -i en.yaml

  ┌───┬─────────────────────────────┬─────────┬──────────┐

  │ # │ Id                          │ Version │ Status   │

  ├───┼─────────────────────────────┼─────────┼──────────┤

  │ 1 │ custom1.outputModulation    │ 1       │ proposed │

  │ 2 │ custom1.outputVoltage       │ 1       │ proposed │

  └───┴─────────────────────────────┴─────────┴──────────┘

  ? Enter id or index 1

  tag: en

  label: Output Modulation

  attributes:

    outputModulation:

      label: Output Modulation

      displayTemplate: 'The {{attribute}} of {{device.label}} is {{value}}'

      i18n:

        value:

          50hz:

            label: 50 Hz

          60hz:

            label: 60 Hz

  commands:

    setOutputModulation:

      label: Set Output Modulation

      arguments:

        outputModulation:

          label: Output Modulation

See code: src/commands/capabilities/translations/upsert.ts

smartthings capabilities:update [ID] [VERSION]

update a capability

USAGE
  $ smartthings capabilities:update [ID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-i <value>] [-o <value>] [-d]

ARGUMENTS
  ID       the capability id
  VERSION  the capability version

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a capability

See code: src/commands/capabilities/update.ts

smartthings config [NAME]

list config file entries

USAGE
  $ smartthings config [NAME] [-h] [-p <value>] [-j] [-y] [-o <value>] [-v]

ARGUMENTS
  NAME  the config name

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -v, --verbose          Include additional data in table output
  -y, --yaml             use YAML format of input and/or output

DESCRIPTION
  list config file entries

See code: src/commands/config.ts

smartthings config:reset

clear saved answers to questions

USAGE
  $ smartthings config:reset [-h] [-p <value>]

FLAGS
  -h, --help             Show CLI help.
  -p, --profile=<value>  [default: default] configuration profile

DESCRIPTION
  clear saved answers to questions

  The CLI will occasionally ask you if you want it to remember the answer to a question, such as "Which hub do you want
  to use?" You can use this command to clear those answers.

See code: src/commands/config/reset.ts

smartthings device-preferences [IDORINDEX]

list device preferences or get information for a specific device preference

USAGE
  $ smartthings device-preferences [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-A] [-n <value>] [-s]

ARGUMENTS
  IDORINDEX  device preference id or index

FLAGS
  -A, --all-organizations     include entities from all organizations the user belongs to
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -n, --namespace=<value>     a specific namespace to query; will use all by default
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -s, --standard              show standard SmartThings device preferences
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list device preferences or get information for a specific device preference

ALIASES
  $ smartthings device-preferences

EXAMPLES
  $ smartthings devicepreferences                       # list all device preferences, sorted by title

  $ smartthings devicepreferences device-preference-id  # display details for preference with specified id

  $ smartthings devicepreferences 2                     # display details for second preference when sorted by title

  $ smartthings devicepreferences 3 -y                  # display details for third preference as YAML

  $ smartthings devicepreferences 3 -o dp.json          # write details as JSON for third preference to dp.json

smartthings device-preferences:create

create a device preference

USAGE
  $ smartthings device-preferences:create [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a device preference

ALIASES
  $ smartthings device-preferences:create

EXAMPLES
  # create a new device preference by answering questions

    $ smartthings devicepreferences:create

  # generate a device preference by answering questions but do not actually create it

    $ smartthings devicepreferences:create -d

  # create a new device preference defined by the file dp.json

    $ smartthings devicepreferences:create -i dp.json

  # create a new device preference defined by the file dp.json and write the results to dp - saved.json

    $ smartthings devicepreferences: create - i dp.json - o dp - saved.json

smartthings device-preferences:update [ID]

update a device preference

USAGE
  $ smartthings device-preferences:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

ARGUMENTS
  ID  the device preference id

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a device preference

ALIASES
  $ smartthings device-preferences:update

EXAMPLES
  $ smartthings devicepreferences:update -i dp.json                   # update a device preference with data from dp.json, select which preference from a list

  $ smartthings devicepreferences:update -i dp.yaml my-preference-id  # update device preference my-preference-id with data from dp.yaml

smartthings device-profiles [ID]

list all device profiles available in a user account or retrieve a single profile

USAGE
  $ smartthings device-profiles [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>] [-A] [-v]

ARGUMENTS
  ID  device profile to retrieve; UUID or the number of the profile from list

FLAGS
  -A, --all-organizations     include entities from all organizations the user belongs to
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -v, --verbose               include presentationId and manufacturerName in list output
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all device profiles available in a user account or retrieve a single profile

ALIASES
  $ smartthings device-profiles

EXAMPLES
  $ smartthings deviceprofiles                      # list all device profiles

  $ smartthings deviceprofiles bb0fdc5-...-a8bd2ea  # show device profile with the specified UUID

  $ smartthings deviceprofiles 2                    # show the second device profile in the list

  $ smartthings deviceprofiles 3 -j                 # show the profile in JSON format

  $ smartthings deviceprofiles 5 -y                 # show the profile in YAML format

  $ smartthings deviceprofiles 4 -j -o profile.json # write the profile to the file "profile.json"

smartthings device-profiles:create

Create a new device profile

USAGE
  $ smartthings device-profiles:create [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  Create a new device profile

  Creates a new device profile. If a vid field is not present in the meta

  then a default device presentation will be created for this profile and the

  vid set to reference it.

ALIASES
  $ smartthings device-profiles:create

EXAMPLES
  $ smartthings deviceprofiles:create -i myprofile.json    # create a device profile from the JSON file definition

  $ smartthings deviceprofiles:create -i myprofile.yaml    # create a device profile from the YAML file definition

  $ smartthings deviceprofiles:create                      # create a device profile with interactive dialog

smartthings device-profiles:delete [ID]

delete a device profile

USAGE
  $ smartthings device-profiles:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]

ARGUMENTS
  ID  Device profile UUID or number in the list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a device profile

ALIASES
  $ smartthings device-profiles:delete

EXAMPLES
  $ smartthings deviceprofiles:delete 63b8c91e-9686-4c43-9afb-fbd9f77e3bb0  # delete profile with this UUID

  $ smartthings deviceprofiles:delete 5                                     # delete the 5th profile in the list

smartthings device-profiles:device-config [ID]

get the device configuration associated with a device profile

USAGE
  $ smartthings device-profiles:device-config [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID  device profile id or the number in list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the device configuration associated with a device profile

ALIASES
  $ smartthings device-profiles:device-config

smartthings device-profiles:presentation [ID]

get the presentation associated with a device profile

USAGE
  $ smartthings device-profiles:presentation [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID  device profile UUID or the number of the profile from list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the presentation associated with a device profile

ALIASES
  $ smartthings device-profiles:presentation

EXAMPLES
  $ smartthings deviceprofiles:presentation fd4adb7f-4a23-4134-9b39-05ed889a03cf

  $ smartthings deviceprofiles:presentation fd4adb7f-4a23-4134-9b39-05ed889a03cf --language=ko

  $ smartthings deviceprofiles:presentation fd4adb7f-4a23-4134-9b39-05ed889a03cf --language=NONE



  Specifying only the presentationId defaults to the "SmartThingsCommunity" manufacturer

  name and the language set for the computer's operating system. The language can be

  overridden by specifying an ISO language code. If "NONE" is specified for the language

  flag then no language header is specified in the API request

smartthings device-profiles:publish [ID]

publish a device profile (published profiles cannot be modified)

USAGE
  $ smartthings device-profiles:publish [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID  device profile id

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  publish a device profile (published profiles cannot be modified)

ALIASES
  $ smartthings device-profiles:publish

smartthings device-profiles:translations [ID] [TAG]

Get list of locales supported by the device profiles

USAGE
  $ smartthings device-profiles:translations [ID] [TAG] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y]
    [-o <value>] [-v]

ARGUMENTS
  ID   UUID or the number of the profile from list
  TAG  the locale tag or number of the tag from list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -v, --verbose               include list of locales in table output
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  Get list of locales supported by the device profiles

ALIASES
  $ smartthings device-profiles:translations

EXAMPLES
  $ smartthings deviceprofiles:translations

  ┌────┬─────────────────────┬─────────────┬──────────────────────────────────────┐

  │ #  │ Name                │ Status      │ Id                                   │

  ├────┼─────────────────────┼─────────────┼──────────────────────────────────────┤

  │  1 │ Test Switch         │ DEVELOPMENT │ 58e73d0c-b5a5-4814-b344-c10f4ff357bb │

  │  2 │ Two Channel Outlet  │ DEVELOPMENT │ 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 │

  └────┴─────────────────────┴─────────────┴──────────────────────────────────────┘

  ? Select a Device Profile. 2

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ es  │

  └───┴─────┘



  $ smartthings deviceprofiles:translations -v

  ┌────┬─────────────────────┬─────────────┬──────────────────────────────────────┬─────────┐

  │ #  │ Name                │ Status      │ Id                                   │ Locales │

  ├────┼─────────────────────┼─────────────┼──────────────────────────────────────┼─────────┤

  │  1 │ Test Switch         │ DEVELOPMENT │ 58e73d0c-b5a5-4814-b344-c10f4ff357bb │         │

  │  2 │ Two Channel Outlet  │ DEVELOPMENT │ 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 │ en, es  │

  └────┴─────────────────────┴─────────────┴──────────────────────────────────────┴─────────┘

  ? Select a Device Profile. 2

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ es  │

  └───┴─────┘



  $ smartthings deviceprofiles:translations 2

  $ smartthings deviceprofiles:translations 3acbf2fc-6be2-4be0-aeb5-c10f4ff357bb

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ es  │

  └───┴─────┘



  $ smartthings deviceprofiles:translations 2 2

  $ smartthings deviceprofiles:translations 2 en

  $ smartthings deviceprofiles:translations 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 en

  Tag: en

  ┌───────────┬────────────┬───────────────────────────────┐

  │ Component │ Label      │ Description                   │

  ├───────────┼────────────┼───────────────────────────────┤

  │ main      │ Main Power │ Controls power to all outlets │

  │ outlet1   │ Outlet One │ Switchable outlet 1 power     │

  │ outlet2   │ Outlet two │ Switchable outlet 1 power     │

  └───────────┴────────────┴───────────────────────────────┘

smartthings device-profiles:translations:delete [ID] [TAG]

delete a device profile translation

USAGE
  $ smartthings device-profiles:translations:delete [ID] [TAG] [-h] [-p <value>] [-t <value>] [--language <value>] [-O
  <value>]

ARGUMENTS
  ID   device profile UUID or number in the list
  TAG  the locale tag

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a device profile translation

ALIASES
  $ smartthings device-profiles:translations:delete

EXAMPLES
  $ smartthings deviceprofiles:translations:delete 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 en

  Device profile "3acbf2fc-6be2-4be0-aeb5-44759cbd66c2" translation "en" deleted



  $ smartthings deviceprofiles:translations:delete

  ┌────┬─────────────────────┬─────────────┬──────────────────────────────────────┐

  │ #  │ Name                │ Status      │ Id                                   │

  ├────┼─────────────────────┼─────────────┼──────────────────────────────────────┤

  │  1 │ Test Switch         │ DEVELOPMENT │ 58e73d0c-b5a5-4814-b344-c10f4ff357bb │

  │  2 │ Two Channel Outlet  │ DEVELOPMENT │ 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 │

  └────┴─────────────────────┴─────────────┴──────────────────────────────────────┘

  ? Enter id or index 2

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ es  │

  └───┴─────┘

  ? Enter id or index 1

  Device profile "3acbf2fc-6be2-4be0-aeb5-44759cbd66c2" translation "en" deleted

smartthings device-profiles:translations:upsert [ID]

create or update a device profile translation

USAGE
  $ smartthings device-profiles:translations:upsert [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

ARGUMENTS
  ID  UUID or the number of the profile from list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create or update a device profile translation

ALIASES
  $ smartthings device-profiles:translations:upsert

EXAMPLES
  $ smartthings deviceprofiles:translations:upsert 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 -i en.yaml

  tag: en

  components:

    main:

      label: Main Power

      description: Controls power to all outlets

    outlet1:

      label: Outlet One

      description: Switchable outlet 1 power

    outlet2:

      label: Outlet two

      description: Switchable outlet 1 power



  $ smartthings deviceprofiles:translations:upsert -i en.yaml

  ┌────┬─────────────────────┬─────────────┬──────────────────────────────────────┐

  │ #  │ Name                │ Status      │ Id                                   │

  ├────┼─────────────────────┼─────────────┼──────────────────────────────────────┤

  │  1 │ Test Switch         │ DEVELOPMENT │ 58e73d0c-b5a5-4814-b344-c10f4ff357bb │

  │  2 │ Two Channel Outlet  │ DEVELOPMENT │ 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 │

  └────┴─────────────────────┴─────────────┴──────────────────────────────────────┘

  ? Enter id or index 2

  tag: en

  components:

    main:

      label: Main Power

      description: Controls power to all outlets

    outlet1:

      label: Outlet One

      description: Switchable outlet 1 power

    outlet2:

      label: Outlet two

      description: Switchable outlet 1 power

smartthings device-profiles:update [ID]

update a device profile

USAGE
  $ smartthings device-profiles:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

ARGUMENTS
  ID  device profile UUID or number in the list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a device profile

ALIASES
  $ smartthings device-profiles:update

smartthings device-profiles:view [ID]

show device profile and device configuration in a single, consolidated view

USAGE
  $ smartthings device-profiles:view [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID  device profile UUID or the number from list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  show device profile and device configuration in a single, consolidated view

ALIASES
  $ smartthings device-profiles:view

smartthings device-profiles:view:create

create a new device profile and device configuration

USAGE
  $ smartthings device-profiles:view:create [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a new device profile and device configuration

  Creates a new device profile and device configuration. Unlike deviceprofiles:create,

  this command accepts a consolidated object that can include a device configuration

  in a property named "view".

ALIASES
  $ smartthings device-profiles:view:create

EXAMPLES
  $ smartthings deviceprofiles:view:create -i test.json



  This test.json file defines a switch that cannot be controlled by the automations builder:



  name: Test Switch

  components:

    - id: main

      capabilities:

        - id: switch

  view:

    dashboard:

      states:

        - capability: switch

      actions:

        - capability: switch

    detailView:

      - capability: switch

    automation:

      conditions:

        - capability: switch

smartthings device-profiles:view:update [ID]

update a device profile and configuration

USAGE
  $ smartthings device-profiles:view:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

ARGUMENTS
  ID  device profile id

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a device profile and configuration

  Updates a device profile and device configuration and sets the vid of the profile

  to the vid of the updated configuration. Unlike deviceprofiles:update this

  command accepts a consolidated object that can include a device configuration

  in a property named "view".

ALIASES
  $ smartthings device-profiles:view:update

EXAMPLES
  $ smartthings deviceprofiles:view:update 84042863-0d34-4c5c-b497-808daf230787 -i test.json



  This test.json file adds the powerMeter capability to the device and makes it available in

  the device detail view but not the rule builder:



  components:

    - id: main

      capabilities:

        - id: switch

        - id: powerMeter

  view:

    dashboard:

      states:

        - capability: switch

      actions:

        - capability: switch

    detailView:

      - capability: switch

      - capability: powerMeter

    automation:

      conditions:

        - capability: switch

smartthings devicepreferences [IDORINDEX]

list device preferences or get information for a specific device preference

USAGE
  $ smartthings devicepreferences [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-A] [-n <value>] [-s]

ARGUMENTS
  IDORINDEX  device preference id or index

FLAGS
  -A, --all-organizations     include entities from all organizations the user belongs to
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -n, --namespace=<value>     a specific namespace to query; will use all by default
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -s, --standard              show standard SmartThings device preferences
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list device preferences or get information for a specific device preference

ALIASES
  $ smartthings device-preferences

EXAMPLES
  $ smartthings devicepreferences                       # list all device preferences, sorted by title

  $ smartthings devicepreferences device-preference-id  # display details for preference with specified id

  $ smartthings devicepreferences 2                     # display details for second preference when sorted by title

  $ smartthings devicepreferences 3 -y                  # display details for third preference as YAML

  $ smartthings devicepreferences 3 -o dp.json          # write details as JSON for third preference to dp.json

See code: src/commands/devicepreferences.ts

smartthings devicepreferences:create

create a device preference

USAGE
  $ smartthings devicepreferences:create [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a device preference

ALIASES
  $ smartthings device-preferences:create

EXAMPLES
  # create a new device preference by answering questions

    $ smartthings devicepreferences:create

  # generate a device preference by answering questions but do not actually create it

    $ smartthings devicepreferences:create -d

  # create a new device preference defined by the file dp.json

    $ smartthings devicepreferences:create -i dp.json

  # create a new device preference defined by the file dp.json and write the results to dp - saved.json

    $ smartthings devicepreferences: create - i dp.json - o dp - saved.json

See code: src/commands/devicepreferences/create.ts

smartthings devicepreferences:translations [PREFERENCEID] [TAG]

get translated device preference values in a desired locale

USAGE
  $ smartthings devicepreferences:translations [PREFERENCEID] [TAG] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]
    [-j] [-y] [-o <value>]

ARGUMENTS
  PREFERENCEID  device preference id or index
  TAG           the locale tag

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get translated device preference values in a desired locale

EXAMPLES
  # let command prompt to choose device preference and list locales

    $ smartthings devicepreferences:translations

  # specify device preference ID and list locales

    $ smartthings devicepreferences:translations motionSensitivity

  # specify device preference ID and locale to get translated device preference values

    $ smartthings devicepreferences:translations motionSensitivity ko

See code: src/commands/devicepreferences/translations.ts

smartthings devicepreferences:translations:create [PREFERENCEID]

create a device preference translation

USAGE
  $ smartthings devicepreferences:translations:create [PREFERENCEID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-i <value>] [-o <value>] [-d]

ARGUMENTS
  PREFERENCEID  device preference id or index

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a device preference translation

EXAMPLES
  $ smartthings devicepreferences:translations:create -i preferenceTranslation.json

See code: src/commands/devicepreferences/translations/create.ts

smartthings devicepreferences:translations:update [PREFERENCEID]

update a device preference translation

USAGE
  $ smartthings devicepreferences:translations:update [PREFERENCEID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-i <value>] [-o <value>] [-d]

ARGUMENTS
  PREFERENCEID  device preference id or index

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a device preference translation

EXAMPLES
  $ smartthings devicepreferences:translations:update -i preferenceTranslation.json

See code: src/commands/devicepreferences/translations/update.ts

smartthings devicepreferences:update [ID]

update a device preference

USAGE
  $ smartthings devicepreferences:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

ARGUMENTS
  ID  the device preference id

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a device preference

ALIASES
  $ smartthings device-preferences:update

EXAMPLES
  $ smartthings devicepreferences:update -i dp.json                   # update a device preference with data from dp.json, select which preference from a list

  $ smartthings devicepreferences:update -i dp.yaml my-preference-id  # update device preference my-preference-id with data from dp.yaml

See code: src/commands/devicepreferences/update.ts

smartthings deviceprofiles [ID]

list all device profiles available in a user account or retrieve a single profile

USAGE
  $ smartthings deviceprofiles [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>] [-A] [-v]

ARGUMENTS
  ID  device profile to retrieve; UUID or the number of the profile from list

FLAGS
  -A, --all-organizations     include entities from all organizations the user belongs to
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -v, --verbose               include presentationId and manufacturerName in list output
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all device profiles available in a user account or retrieve a single profile

ALIASES
  $ smartthings device-profiles

EXAMPLES
  $ smartthings deviceprofiles                      # list all device profiles

  $ smartthings deviceprofiles bb0fdc5-...-a8bd2ea  # show device profile with the specified UUID

  $ smartthings deviceprofiles 2                    # show the second device profile in the list

  $ smartthings deviceprofiles 3 -j                 # show the profile in JSON format

  $ smartthings deviceprofiles 5 -y                 # show the profile in YAML format

  $ smartthings deviceprofiles 4 -j -o profile.json # write the profile to the file "profile.json"

See code: src/commands/deviceprofiles.ts

smartthings deviceprofiles:create

Create a new device profile

USAGE
  $ smartthings deviceprofiles:create [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  Create a new device profile

  Creates a new device profile. If a vid field is not present in the meta

  then a default device presentation will be created for this profile and the

  vid set to reference it.

ALIASES
  $ smartthings device-profiles:create

EXAMPLES
  $ smartthings deviceprofiles:create -i myprofile.json    # create a device profile from the JSON file definition

  $ smartthings deviceprofiles:create -i myprofile.yaml    # create a device profile from the YAML file definition

  $ smartthings deviceprofiles:create                      # create a device profile with interactive dialog

See code: src/commands/deviceprofiles/create.ts

smartthings deviceprofiles:delete [ID]

delete a device profile

USAGE
  $ smartthings deviceprofiles:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]

ARGUMENTS
  ID  Device profile UUID or number in the list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a device profile

ALIASES
  $ smartthings device-profiles:delete

EXAMPLES
  $ smartthings deviceprofiles:delete 63b8c91e-9686-4c43-9afb-fbd9f77e3bb0  # delete profile with this UUID

  $ smartthings deviceprofiles:delete 5                                     # delete the 5th profile in the list

See code: src/commands/deviceprofiles/delete.ts

smartthings deviceprofiles:device-config [ID]

get the device configuration associated with a device profile

USAGE
  $ smartthings deviceprofiles:device-config [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID  device profile id or the number in list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the device configuration associated with a device profile

ALIASES
  $ smartthings device-profiles:device-config

See code: src/commands/deviceprofiles/device-config.ts

smartthings deviceprofiles:presentation [ID]

get the presentation associated with a device profile

USAGE
  $ smartthings deviceprofiles:presentation [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID  device profile UUID or the number of the profile from list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the presentation associated with a device profile

ALIASES
  $ smartthings device-profiles:presentation

EXAMPLES
  $ smartthings deviceprofiles:presentation fd4adb7f-4a23-4134-9b39-05ed889a03cf

  $ smartthings deviceprofiles:presentation fd4adb7f-4a23-4134-9b39-05ed889a03cf --language=ko

  $ smartthings deviceprofiles:presentation fd4adb7f-4a23-4134-9b39-05ed889a03cf --language=NONE



  Specifying only the presentationId defaults to the "SmartThingsCommunity" manufacturer

  name and the language set for the computer's operating system. The language can be

  overridden by specifying an ISO language code. If "NONE" is specified for the language

  flag then no language header is specified in the API request

See code: src/commands/deviceprofiles/presentation.ts

smartthings deviceprofiles:publish [ID]

publish a device profile (published profiles cannot be modified)

USAGE
  $ smartthings deviceprofiles:publish [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID  device profile id

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  publish a device profile (published profiles cannot be modified)

ALIASES
  $ smartthings device-profiles:publish

See code: src/commands/deviceprofiles/publish.ts

smartthings deviceprofiles:translations [ID] [TAG]

Get list of locales supported by the device profiles

USAGE
  $ smartthings deviceprofiles:translations [ID] [TAG] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y]
    [-o <value>] [-v]

ARGUMENTS
  ID   UUID or the number of the profile from list
  TAG  the locale tag or number of the tag from list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -v, --verbose               include list of locales in table output
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  Get list of locales supported by the device profiles

ALIASES
  $ smartthings device-profiles:translations

EXAMPLES
  $ smartthings deviceprofiles:translations

  ┌────┬─────────────────────┬─────────────┬──────────────────────────────────────┐

  │ #  │ Name                │ Status      │ Id                                   │

  ├────┼─────────────────────┼─────────────┼──────────────────────────────────────┤

  │  1 │ Test Switch         │ DEVELOPMENT │ 58e73d0c-b5a5-4814-b344-c10f4ff357bb │

  │  2 │ Two Channel Outlet  │ DEVELOPMENT │ 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 │

  └────┴─────────────────────┴─────────────┴──────────────────────────────────────┘

  ? Select a Device Profile. 2

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ es  │

  └───┴─────┘



  $ smartthings deviceprofiles:translations -v

  ┌────┬─────────────────────┬─────────────┬──────────────────────────────────────┬─────────┐

  │ #  │ Name                │ Status      │ Id                                   │ Locales │

  ├────┼─────────────────────┼─────────────┼──────────────────────────────────────┼─────────┤

  │  1 │ Test Switch         │ DEVELOPMENT │ 58e73d0c-b5a5-4814-b344-c10f4ff357bb │         │

  │  2 │ Two Channel Outlet  │ DEVELOPMENT │ 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 │ en, es  │

  └────┴─────────────────────┴─────────────┴──────────────────────────────────────┴─────────┘

  ? Select a Device Profile. 2

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ es  │

  └───┴─────┘



  $ smartthings deviceprofiles:translations 2

  $ smartthings deviceprofiles:translations 3acbf2fc-6be2-4be0-aeb5-c10f4ff357bb

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ es  │

  └───┴─────┘



  $ smartthings deviceprofiles:translations 2 2

  $ smartthings deviceprofiles:translations 2 en

  $ smartthings deviceprofiles:translations 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 en

  Tag: en

  ┌───────────┬────────────┬───────────────────────────────┐

  │ Component │ Label      │ Description                   │

  ├───────────┼────────────┼───────────────────────────────┤

  │ main      │ Main Power │ Controls power to all outlets │

  │ outlet1   │ Outlet One │ Switchable outlet 1 power     │

  │ outlet2   │ Outlet two │ Switchable outlet 1 power     │

  └───────────┴────────────┴───────────────────────────────┘

See code: src/commands/deviceprofiles/translations.ts

smartthings deviceprofiles:translations:delete [ID] [TAG]

delete a device profile translation

USAGE
  $ smartthings deviceprofiles:translations:delete [ID] [TAG] [-h] [-p <value>] [-t <value>] [--language <value>] [-O
  <value>]

ARGUMENTS
  ID   device profile UUID or number in the list
  TAG  the locale tag

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a device profile translation

ALIASES
  $ smartthings device-profiles:translations:delete

EXAMPLES
  $ smartthings deviceprofiles:translations:delete 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 en

  Device profile "3acbf2fc-6be2-4be0-aeb5-44759cbd66c2" translation "en" deleted



  $ smartthings deviceprofiles:translations:delete

  ┌────┬─────────────────────┬─────────────┬──────────────────────────────────────┐

  │ #  │ Name                │ Status      │ Id                                   │

  ├────┼─────────────────────┼─────────────┼──────────────────────────────────────┤

  │  1 │ Test Switch         │ DEVELOPMENT │ 58e73d0c-b5a5-4814-b344-c10f4ff357bb │

  │  2 │ Two Channel Outlet  │ DEVELOPMENT │ 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 │

  └────┴─────────────────────┴─────────────┴──────────────────────────────────────┘

  ? Enter id or index 2

  ┌───┬─────┐

  │ # │ Tag │

  ├───┼─────┤

  │ 1 │ en  │

  │ 2 │ es  │

  └───┴─────┘

  ? Enter id or index 1

  Device profile "3acbf2fc-6be2-4be0-aeb5-44759cbd66c2" translation "en" deleted

See code: src/commands/deviceprofiles/translations/delete.ts

smartthings deviceprofiles:translations:upsert [ID]

create or update a device profile translation

USAGE
  $ smartthings deviceprofiles:translations:upsert [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

ARGUMENTS
  ID  UUID or the number of the profile from list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create or update a device profile translation

ALIASES
  $ smartthings device-profiles:translations:upsert

EXAMPLES
  $ smartthings deviceprofiles:translations:upsert 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 -i en.yaml

  tag: en

  components:

    main:

      label: Main Power

      description: Controls power to all outlets

    outlet1:

      label: Outlet One

      description: Switchable outlet 1 power

    outlet2:

      label: Outlet two

      description: Switchable outlet 1 power



  $ smartthings deviceprofiles:translations:upsert -i en.yaml

  ┌────┬─────────────────────┬─────────────┬──────────────────────────────────────┐

  │ #  │ Name                │ Status      │ Id                                   │

  ├────┼─────────────────────┼─────────────┼──────────────────────────────────────┤

  │  1 │ Test Switch         │ DEVELOPMENT │ 58e73d0c-b5a5-4814-b344-c10f4ff357bb │

  │  2 │ Two Channel Outlet  │ DEVELOPMENT │ 3acbf2fc-6be2-4be0-aeb5-44759cbd66c2 │

  └────┴─────────────────────┴─────────────┴──────────────────────────────────────┘

  ? Enter id or index 2

  tag: en

  components:

    main:

      label: Main Power

      description: Controls power to all outlets

    outlet1:

      label: Outlet One

      description: Switchable outlet 1 power

    outlet2:

      label: Outlet two

      description: Switchable outlet 1 power

See code: src/commands/deviceprofiles/translations/upsert.ts

smartthings deviceprofiles:update [ID]

update a device profile

USAGE
  $ smartthings deviceprofiles:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

ARGUMENTS
  ID  device profile UUID or number in the list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a device profile

ALIASES
  $ smartthings device-profiles:update

See code: src/commands/deviceprofiles/update.ts

smartthings deviceprofiles:view [ID]

show device profile and device configuration in a single, consolidated view

USAGE
  $ smartthings deviceprofiles:view [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID  device profile UUID or the number from list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  show device profile and device configuration in a single, consolidated view

ALIASES
  $ smartthings device-profiles:view

See code: src/commands/deviceprofiles/view.ts

smartthings deviceprofiles:view:create

create a new device profile and device configuration

USAGE
  $ smartthings deviceprofiles:view:create [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a new device profile and device configuration

  Creates a new device profile and device configuration. Unlike deviceprofiles:create,

  this command accepts a consolidated object that can include a device configuration

  in a property named "view".

ALIASES
  $ smartthings device-profiles:view:create

EXAMPLES
  $ smartthings deviceprofiles:view:create -i test.json



  This test.json file defines a switch that cannot be controlled by the automations builder:



  name: Test Switch

  components:

    - id: main

      capabilities:

        - id: switch

  view:

    dashboard:

      states:

        - capability: switch

      actions:

        - capability: switch

    detailView:

      - capability: switch

    automation:

      conditions:

        - capability: switch

See code: src/commands/deviceprofiles/view/create.ts

smartthings deviceprofiles:view:update [ID]

update a device profile and configuration

USAGE
  $ smartthings deviceprofiles:view:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

ARGUMENTS
  ID  device profile id

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a device profile and configuration

  Updates a device profile and device configuration and sets the vid of the profile

  to the vid of the updated configuration. Unlike deviceprofiles:update this

  command accepts a consolidated object that can include a device configuration

  in a property named "view".

ALIASES
  $ smartthings device-profiles:view:update

EXAMPLES
  $ smartthings deviceprofiles:view:update 84042863-0d34-4c5c-b497-808daf230787 -i test.json



  This test.json file adds the powerMeter capability to the device and makes it available in

  the device detail view but not the rule builder:



  components:

    - id: main

      capabilities:

        - id: switch

        - id: powerMeter

  view:

    dashboard:

      states:

        - capability: switch

      actions:

        - capability: switch

    detailView:

      - capability: switch

      - capability: powerMeter

    automation:

      conditions:

        - capability: switch

See code: src/commands/deviceprofiles/view/update.ts

smartthings devices [ID]

list all devices available in a user account or retrieve a single device

USAGE
  $ smartthings devices [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>] [-l
    <value>] [-C and|or -c <value>] [-d <value>] [-a <value>] [--type
    BLE|BLE_D2D|DTH|ENDPOINT_APP|HUB|IR|IR_OCF|MQTT|OCF|PENGYOU|VIDEO|VIPER|WATCH|GROUP|LAN|ZIGBEE|ZWAVE] [-v]

ARGUMENTS
  ID  device to retrieve; UUID or the number of the device from list

FLAGS
  -C, --capabilities-mode=<option>  Treat capability filter query params as a logical "or" or "and" with a default of
                                    "and".
                                    <options: and|or>
  -a, --installed-app-id=<value>    filter results by installed app that created the device
  -c, --capability=<value>...       filter results by capability
  -d, --device-id=<value>...        filter results by device
  -h, --help                        Show CLI help.
  -j, --json                        use JSON format of input and/or output
  -l, --location-id=<value>...      filter results by location
  -o, --output=<value>              specify output file
  -p, --profile=<value>             [default: default] configuration profile
  -t, --token=<value>               the auth token to use
  -v, --verbose                     include location name in output
  -y, --yaml                        use YAML format of input and/or output
  --language=<value>                ISO language code or "NONE" to not specify a language. Defaults to the OS locale
  --type=<option>                   filter results by device type
                                    <options: BLE|BLE_D2D|DTH|ENDPOINT_APP|HUB|IR|IR_OCF|MQTT|OCF|PENGYOU|VIDEO|VIPER|WA
                                    TCH|GROUP|LAN|ZIGBEE|ZWAVE>

DESCRIPTION
  list all devices available in a user account or retrieve a single device

See code: src/commands/devices.ts

smartthings devices:capability-status [ID] [COMPONENT] [CAPABILITY]

get the current status of all of a device capability's attributes

USAGE
  $ smartthings devices:capability-status [ID] [COMPONENT] [CAPABILITY] [-h] [-p <value>] [-t <value>] [--language <value>]
    [-j] [-y] [-o <value>]

ARGUMENTS
  ID          the device id
  COMPONENT   the component id
  CAPABILITY  the capability id

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the current status of all of a device capability's attributes

See code: src/commands/devices/capability-status.ts

smartthings devices:commands [ID] [COMMAND]

execute a device command

USAGE
  $ smartthings devices:commands [ID] [COMMAND] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i
    <value>]

ARGUMENTS
  ID       the device id
  COMMAND  the command [<component>]:<capability>:<command>([<arguments>])

FLAGS
  -h, --help             Show CLI help.
  -i, --input=<value>    specify input file
  -j, --json             use JSON format of input and/or output
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  execute a device command

See code: src/commands/devices/commands.ts

smartthings devices:component-status [ID] [COMPONENT]

get the current status of a device component's attributes

USAGE
  $ smartthings devices:component-status [ID] [COMPONENT] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID         the device id
  COMPONENT  the component id

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the current status of a device component's attributes

See code: src/commands/devices/component-status.ts

smartthings devices:delete [ID]

delete a device

USAGE
  $ smartthings devices:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>]

ARGUMENTS
  ID  device UUID

FLAGS
  -h, --help             Show CLI help.
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a device

See code: src/commands/devices/delete.ts

smartthings devices:health [ID]

get the current health status of a device

USAGE
  $ smartthings devices:health [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  ID  the device id

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the current health status of a device

See code: src/commands/devices/health.ts

smartthings devices:preferences [ID]

get the current preferences of a device

USAGE
  $ smartthings devices:preferences [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  ID  the device id

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the current preferences of a device

See code: src/commands/devices/preferences.ts

smartthings devices:presentation [ID]

get a device presentation

USAGE
  $ smartthings devices:presentation [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  ID  the device id or number in the list

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get a device presentation

See code: src/commands/devices/presentation.ts

smartthings devices:rename [ID] [LABEL]

rename a device

USAGE
  $ smartthings devices:rename [ID] [LABEL] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o
    <value>]

ARGUMENTS
  ID     the device id
  LABEL  the new device label

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  rename a device

See code: src/commands/devices/rename.ts

smartthings devices:status [ID]

get the current status of all of a device's component's attributes

USAGE
  $ smartthings devices:status [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  ID  the device id

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the current status of all of a device's component's attributes

See code: src/commands/devices/status.ts

smartthings devices:update [ID]

get the current status of all of a device's component's attributes

USAGE
  $ smartthings devices:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d]

ARGUMENTS
  ID  the device id

FLAGS
  -d, --dry-run          produce JSON but don't actually submit
  -h, --help             Show CLI help.
  -i, --input=<value>    specify input file
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get the current status of all of a device's component's attributes

See code: src/commands/devices/update.ts

smartthings edge:channels [IDORINDEX]

list all channels owned by you or retrieve a single channel

USAGE
  $ smartthings edge:channels [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-I | -A] [--subscriber-id <value> --subscriber-type HUB]

ARGUMENTS
  IDORINDEX  the channel id or number in list

FLAGS
  -A, --all-organizations     include entities from all organizations the user belongs to
  -I, --include-read-only     include subscribed-to channels as well as owned channels
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale
  --subscriber-id=<value>     filter results based on subscriber id (e.g. hub id)
  --subscriber-type=<option>  filter results based on subscriber type
                              <options: HUB>

DESCRIPTION
  list all channels owned by you or retrieve a single channel

EXAMPLES
  # list all user-owned channels
  $ smartthings edge:channels
  # list user-owned and subscribed channels
  $ smartthings edge:channels --include-read-only

  # display details about the second channel listed when running "smartthings edge:channels"
  $ smartthings edge:channels 2
  # display channels subscribed to by the specified hub
  $ smartthings edge:channels --subscriber-type HUB --subscriber-id <hub-id>

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:assign [DRIVERID] [VERSION]

assign a driver to a channel

USAGE
  $ smartthings edge:channels:assign [DRIVERID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]
    [-C <value>]

ARGUMENTS
  DRIVERID  driver id
  VERSION   driver version

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  assign a driver to a channel

ALIASES
  $ smartthings edge:drivers:publish

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:assignments [IDORINDEX]

list all drivers assigned to a given channel

USAGE
  $ smartthings edge:channels:assignments [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>]

ARGUMENTS
  IDORINDEX  the channel id or number in list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all drivers assigned to a given channel

ALIASES
  $ smartthings edge:channels:assignments

smartthings edge:channels:create

create a channel

USAGE
  $ smartthings edge:channels:create [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a channel

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:delete [ID]

delete a channel

USAGE
  $ smartthings edge:channels:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]

ARGUMENTS
  ID  channel id

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a channel

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:drivers [IDORINDEX]

list all drivers assigned to a given channel

USAGE
  $ smartthings edge:channels:drivers [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>]

ARGUMENTS
  IDORINDEX  the channel id or number in list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all drivers assigned to a given channel

ALIASES
  $ smartthings edge:channels:assignments

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:enroll [HUBID]

enroll a hub in a channel

USAGE
  $ smartthings edge:channels:enroll [HUBID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-C
  <value>]

ARGUMENTS
  HUBID  hub id

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  enroll a hub in a channel

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:enrollments [IDORINDEX]

list all channels a given hub is enrolled in

USAGE
  $ smartthings edge:channels:enrollments [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>]

ARGUMENTS
  IDORINDEX  the hub id or number in list

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all channels a given hub is enrolled in

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:invitations [IDORINDEX]

list invitations or retrieve a single invitation by id or index

USAGE
  $ smartthings edge:channels:invitations [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-C <value>]

ARGUMENTS
  IDORINDEX  the invitation id or number in list

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list invitations or retrieve a single invitation by id or index

ALIASES
  $ smartthings edge:channels:invitations

EXAMPLES
  $ smartthings edge:channels:invites                  # list all invites on all channels you own

  $ smartthings edge:channels:invites 2                # list details about the second invite show when listed as in the example above

  $ smartthings edge:channels:invites -C <channel id>  # list all invites on channel with id <channel id>

  $ smartthings edge:channels:invites <invite id>      # list details about the invite with id <invite id>

smartthings edge:channels:invitations:accept ID

accept a channel invitation

USAGE
  $ smartthings edge:channels:invitations:accept [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]

ARGUMENTS
  ID  invite UUID

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  accept a channel invitation

ALIASES
  $ smartthings edge:channels:invitations:accept

smartthings edge:channels:invitations:create

create an invitation

USAGE
  $ smartthings edge:channels:invitations:create [-C <value> | -i <value>] [-h] [-p <value>] [-t <value>] [--language <value>] [-O
    <value>] [-j] [-y] [-o <value>] [-d]

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create an invitation

ALIASES
  $ smartthings edge:channels:invitations:create

smartthings edge:channels:invitations:delete [ID]

delete a channel invitation

USAGE
  $ smartthings edge:channels:invitations:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]
  [-C <value>]

ARGUMENTS
  ID  invitation UUID

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a channel invitation

ALIASES
  $ smartthings edge:channels:invitations:revoke
  $ smartthings edge:channels:invitations:delete
  $ smartthings edge:channels:invites:revoke

smartthings edge:channels:invitations:revoke [ID]

delete a channel invitation

USAGE
  $ smartthings edge:channels:invitations:revoke [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]
  [-C <value>]

ARGUMENTS
  ID  invitation UUID

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a channel invitation

ALIASES
  $ smartthings edge:channels:invitations:revoke
  $ smartthings edge:channels:invitations:delete
  $ smartthings edge:channels:invites:revoke

smartthings edge:channels:invites [IDORINDEX]

list invitations or retrieve a single invitation by id or index

USAGE
  $ smartthings edge:channels:invites [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-C <value>]

ARGUMENTS
  IDORINDEX  the invitation id or number in list

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list invitations or retrieve a single invitation by id or index

ALIASES
  $ smartthings edge:channels:invitations

EXAMPLES
  $ smartthings edge:channels:invites                  # list all invites on all channels you own

  $ smartthings edge:channels:invites 2                # list details about the second invite show when listed as in the example above

  $ smartthings edge:channels:invites -C <channel id>  # list all invites on channel with id <channel id>

  $ smartthings edge:channels:invites <invite id>      # list details about the invite with id <invite id>

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:invites:accept ID

accept a channel invitation

USAGE
  $ smartthings edge:channels:invites:accept [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]

ARGUMENTS
  ID  invite UUID

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  accept a channel invitation

ALIASES
  $ smartthings edge:channels:invitations:accept

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:invites:create

create an invitation

USAGE
  $ smartthings edge:channels:invites:create [-C <value> | -i <value>] [-h] [-p <value>] [-t <value>] [--language <value>] [-O
    <value>] [-j] [-y] [-o <value>] [-d]

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create an invitation

ALIASES
  $ smartthings edge:channels:invitations:create

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:invites:delete [ID]

delete a channel invitation

USAGE
  $ smartthings edge:channels:invites:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-C
  <value>]

ARGUMENTS
  ID  invitation UUID

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a channel invitation

ALIASES
  $ smartthings edge:channels:invitations:revoke
  $ smartthings edge:channels:invitations:delete
  $ smartthings edge:channels:invites:revoke

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:invites:revoke [ID]

delete a channel invitation

USAGE
  $ smartthings edge:channels:invites:revoke [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-C
  <value>]

ARGUMENTS
  ID  invitation UUID

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a channel invitation

ALIASES
  $ smartthings edge:channels:invitations:revoke
  $ smartthings edge:channels:invitations:delete
  $ smartthings edge:channels:invites:revoke

smartthings edge:channels:metainfo [IDORINDEX]

list all channels owned by you or retrieve a single channel

USAGE
  $ smartthings edge:channels:metainfo [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-C <value> | ]

ARGUMENTS
  IDORINDEX  the channel id or number in list

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all channels owned by you or retrieve a single channel

EXAMPLES
  # summarize metainfo for all drivers in a channel
  $ smartthings edge:channels:metainfo
  # summarize metainfo for all drivers in the specified channel
  $ smartthings edge:channels:metainfo -C b50c0aa1-d9ea-4005-8db8-0cf9c2d9d7b2
  # display metainfo about the third driver listed in the above command
  $ smartthings edge:channels:metainfo -C b50c0aa1-d9ea-4005-8db8-0cf9c2d9d7b2 3

  # display metainfo about a driver by using its id

    $ smartthings edge:channels:metainfo -C b50c0aa1-d9ea-4005-8db8-0cf9c2d9d7b2 \
      699c7308-8c72-4363-9571-880d0f5cc725

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:unassign [DRIVERID]

remove a driver from a channel

USAGE
  $ smartthings edge:channels:unassign [DRIVERID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-C
    <value>]

ARGUMENTS
  DRIVERID  driver id

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  remove a driver from a channel

ALIASES
  $ smartthings edge:drivers:unpublish

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:unenroll [HUBID]

unenroll a hub from a channel

USAGE
  $ smartthings edge:channels:unenroll [HUBID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-C
  <value>]

ARGUMENTS
  HUBID  hub id

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  unenroll a hub from a channel

See code: @smartthings/plugin-cli-edge

smartthings edge:channels:update [ID]

update a channel

USAGE
  $ smartthings edge:channels:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-i
    <value>] [-o <value>] [-d]

ARGUMENTS
  ID  the channel id

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -d, --dry-run               produce JSON but don't actually submit
  -h, --help                  Show CLI help.
  -i, --input=<value>         specify input file
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a channel

See code: @smartthings/plugin-cli-edge

smartthings edge:drivers [IDORINDEX]

list all drivers owned by you or retrieve a single driver

USAGE
  $ smartthings edge:drivers [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-A] [-V <value>]

ARGUMENTS
  IDORINDEX  the driver id or number in list

FLAGS
  -A, --all-organizations     include entities from all organizations the user belongs to
  -O, --organization=<value>  The organization ID to use for this command
  -V, --version=<value>       driver version
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all drivers owned by you or retrieve a single driver

  Use this command to list all drivers you own, even if they are not yet assigned to a channel.

  See also:

  edge:drivers:installed to list installed drivers

  edge:channels:drivers to list drivers that are part of a channel you own or have subscribed to

EXAMPLES
  # list all user-owned drivers
  $ smartthings edge:drivers
  # display details about the third driver listed in the above command
  $ smartthings edge:drivers 3

  # display details about a driver by using its id
  $ smartthings edge:drivers 699c7308-8c72-4363-9571-880d0f5cc725
  # get information on a specific version of a driver
  $ smartthings edge:drivers 699c7308-8c72-4363-9571-880d0f5cc725 --version 2021-10-25T00:48:23.295969

See code: @smartthings/plugin-cli-edge

smartthings edge:drivers:delete [ID]

delete an edge driver

USAGE
  $ smartthings edge:drivers:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]

ARGUMENTS
  ID  driver UUID

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete an edge driver

See code: @smartthings/plugin-cli-edge

smartthings edge:drivers:install [DRIVERID]

install an edge driver onto a hub

USAGE
  $ smartthings edge:drivers:install [DRIVERID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-H
    <value>] [-C <value>]

ARGUMENTS
  DRIVERID  id of driver to install

FLAGS
  -C, --channel=<value>       channel id
  -H, --hub=<value>           hub id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  install an edge driver onto a hub

EXAMPLES
  $ smartthings edge:drivers:install                                         # use Q&A format to enter required values

  $ smartthings edge:drivers:install -H <hub-id>                             # specify the hub on the command line, other fields will be asked for

  $ smartthings edge:drivers:install -H <hub-id> -C <channel-id> <driver-id> # install a driver from a channel on an enrolled hub

See code: @smartthings/plugin-cli-edge

smartthings edge:drivers:installed [IDORINDEX]

list all drivers installed on a given hub

USAGE
  $ smartthings edge:drivers:installed [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j]
    [-y] [-o <value>] [-H <value>]

ARGUMENTS
  IDORINDEX  the driver id or number in list

FLAGS
  -H, --hub=<value>           hub id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all drivers installed on a given hub

See code: @smartthings/plugin-cli-edge

smartthings edge:drivers:logcat [DRIVERID]

stream logs from installed drivers

USAGE
  $ smartthings edge:drivers:logcat [DRIVERID] [-h] [-p <value>] [-t <value>] [--language <value>] [-a] [--hub-address
    <value>] [--connect-timeout <value>]

ARGUMENTS
  DRIVERID  a specific driver to stream logs from

FLAGS
  -a, --all                         stream from all installed drivers
  -h, --help                        Show CLI help.
  -p, --profile=<value>             [default: default] configuration profile
  -t, --token=<value>               the auth token to use
  --connect-timeout=<milliseconds>  [default: 30000] max time allowed when connecting to hub
  --hub-address=<value>             IPv4 address of hub with optionally appended port number
  --language=<value>                ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  stream logs from installed drivers

See code: @smartthings/plugin-cli-edge

smartthings edge:drivers:package [PROJECTDIRECTORY]

build and upload an edge package

USAGE
  $ smartthings edge:drivers:package [PROJECTDIRECTORY] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]
    [-j] [-y] [-o <value>] [-a | --channel <value> | [-b <value> | -u <value>]] [-I | --hub <value> | ]

ARGUMENTS
  PROJECTDIRECTORY  [default: .] directory containing project to upload

FLAGS
  -I, --install               prompt for hub to install to after assigning it to the channel, implies --assign if
                              --assign or --channel not included
  -O, --organization=<value>  The organization ID to use for this command
  -a, --assign                prompt for a channel to assign the driver to after upload
  -b, --build-only=<value>    save package to specified zip file but skip upload
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -u, --upload=<value>        upload zip file previously built with --build flag
  -y, --yaml                  use YAML format of input and/or output
  --channel=<value>           automatically assign driver to specified channel after upload
  --hub=<value>               automatically install driver to specified hub, implies --assign if --assign or --channel
                              not included
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  build and upload an edge package

EXAMPLES
  # build and upload driver found in current directory:
  $ smartthings edge:drivers:package
  # build and upload driver found in current directory, assign it to a channel, and install it;
  # user will be prompted for channel and hub
  $ smartthings edge:drivers:package -I
  # build and upload driver found in current directory then assign it to the specified channel
  # and install it to the specified hub
  $ smartthings edge:drivers:package --channel <channel-id> --hub <hubId>
  # build and upload driver found in the my-driver directory
  $ smartthings edge:drivers:package my-driver
  # build the driver in the my-package directory and save it as driver.zip
  $ smartthings edge:drivers:package -b driver.zip my-package

  # upload the previously built driver found in driver.zip

    $ smartthings edge:drivers:package -u driver.zip

See code: @smartthings/plugin-cli-edge

smartthings edge:drivers:publish [DRIVERID] [VERSION]

assign a driver to a channel

USAGE
  $ smartthings edge:drivers:publish [DRIVERID] [VERSION] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>]
    [-C <value>]

ARGUMENTS
  DRIVERID  driver id
  VERSION   driver version

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  assign a driver to a channel

ALIASES
  $ smartthings edge:drivers:publish

smartthings edge:drivers:uninstall [DRIVERID]

uninstall an edge driver from a hub

USAGE
  $ smartthings edge:drivers:uninstall [DRIVERID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-H
    <value>]

ARGUMENTS
  DRIVERID  id of driver to uninstall

FLAGS
  -H, --hub=<value>           hub id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  uninstall an edge driver from a hub

See code: @smartthings/plugin-cli-edge

smartthings edge:drivers:unpublish [DRIVERID]

remove a driver from a channel

USAGE
  $ smartthings edge:drivers:unpublish [DRIVERID] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-C
    <value>]

ARGUMENTS
  DRIVERID  driver id

FLAGS
  -C, --channel=<value>       channel id
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  remove a driver from a channel

ALIASES
  $ smartthings edge:drivers:unpublish

smartthings installedapps [ID]

get a specific app or a list of apps

USAGE
  $ smartthings installedapps [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>] [-l
    <value>] [-v]

ARGUMENTS
  ID  the app id

FLAGS
  -h, --help                    Show CLI help.
  -j, --json                    use JSON format of input and/or output
  -l, --location-id=<value>...  filter results by location
  -o, --output=<value>          specify output file
  -p, --profile=<value>         [default: default] configuration profile
  -t, --token=<value>           the auth token to use
  -v, --verbose                 include location name in output
  -y, --yaml                    use YAML format of input and/or output
  --language=<value>            ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get a specific app or a list of apps

See code: src/commands/installedapps.ts

smartthings installedapps:delete [ID]

delete the installed app instance

USAGE
  $ smartthings installedapps:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-l <value>] [-v]

ARGUMENTS
  ID  installed app UUID

FLAGS
  -h, --help                    Show CLI help.
  -l, --location-id=<value>...  filter results by location
  -p, --profile=<value>         [default: default] configuration profile
  -t, --token=<value>           the auth token to use
  -v, --verbose                 include location name in output
  --language=<value>            ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete the installed app instance

See code: src/commands/installedapps/delete.ts

smartthings installedapps:rename [ID] [NAME]

renamed an installed app instance

USAGE
  $ smartthings installedapps:rename [ID] [NAME] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o
    <value>] [-l <value>] [-v]

ARGUMENTS
  ID    the installed app id
  NAME  the new installed app name

FLAGS
  -h, --help                    Show CLI help.
  -j, --json                    use JSON format of input and/or output
  -l, --location-id=<value>...  filter results by location
  -o, --output=<value>          specify output file
  -p, --profile=<value>         [default: default] configuration profile
  -t, --token=<value>           the auth token to use
  -v, --verbose                 include location name in output
  -y, --yaml                    use YAML format of input and/or output
  --language=<value>            ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  renamed an installed app instance

See code: src/commands/installedapps/rename.ts

smartthings installedschema [ID]

get a specific schema connector instance or a list of instances

USAGE
  $ smartthings installedschema [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>] [-l
    <value>] [-v]

ARGUMENTS
  ID  the isa id

FLAGS
  -h, --help                    Show CLI help.
  -j, --json                    use JSON format of input and/or output
  -l, --location-id=<value>...  filter results by location
  -o, --output=<value>          specify output file
  -p, --profile=<value>         [default: default] configuration profile
  -t, --token=<value>           the auth token to use
  -v, --verbose                 include location name in output
  -y, --yaml                    use YAML format of input and/or output
  --language=<value>            ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get a specific schema connector instance or a list of instances

See code: src/commands/installedschema.ts

smartthings installedschema:delete [ID]

delete the installed schema connector instance

USAGE
  $ smartthings installedschema:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-l <value>] [-v]

ARGUMENTS
  ID  installed schema connector UUID

FLAGS
  -h, --help                    Show CLI help.
  -l, --location-id=<value>...  filter results by location
  -p, --profile=<value>         [default: default] configuration profile
  -t, --token=<value>           the auth token to use
  -v, --verbose                 include location name in output
  --language=<value>            ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete the installed schema connector instance

See code: src/commands/installedschema/delete.ts

smartthings locations [IDORINDEX]

list locations or get information for a specific Location

USAGE
  $ smartthings locations [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  IDORINDEX  the location id or number in list

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list locations or get information for a specific Location

See code: src/commands/locations.ts

smartthings locations:create

create a Location for a user

USAGE
  $ smartthings locations:create [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d]

FLAGS
  -d, --dry-run          produce JSON but don't actually submit
  -h, --help             Show CLI help.
  -i, --input=<value>    specify input file
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a Location for a user

See code: src/commands/locations/create.ts

smartthings locations:delete [ID]

delete a location

USAGE
  $ smartthings locations:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>]

ARGUMENTS
  ID  location id

FLAGS
  -h, --help             Show CLI help.
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a location

EXAMPLES
  $ smartthings locations:delete                 # choose the location to delete from a list

  $ smartthings locations:delete my-location-id  # delete the location with the specified id

See code: src/commands/locations/delete.ts

smartthings locations:rooms [IDORINDEX]

list rooms or get information for a specific room

USAGE
  $ smartthings locations:rooms [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-l <value>] [-j]
    [-y] [-o <value>]

ARGUMENTS
  IDORINDEX  room UUID or index

FLAGS
  -h, --help                 Show CLI help.
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list rooms or get information for a specific room

ALIASES
  $ smartthings rooms

See code: src/commands/locations/rooms.ts

smartthings locations:rooms:create

create a room

USAGE
  $ smartthings locations:rooms:create [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d] [-l <value>]

FLAGS
  -d, --dry-run              produce JSON but don't actually submit
  -h, --help                 Show CLI help.
  -i, --input=<value>        specify input file
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a room

ALIASES
  $ smartthings rooms:create

See code: src/commands/locations/rooms/create.ts

smartthings locations:rooms:delete [ID]

delete a room

USAGE
  $ smartthings locations:rooms:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-l <value>]

ARGUMENTS
  ID  room UUID

FLAGS
  -h, --help                 Show CLI help.
  -l, --location-id=<value>  a specific location to query
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a room

ALIASES
  $ smartthings rooms:delete

See code: src/commands/locations/rooms/delete.ts

smartthings locations:rooms:update [ID]

update a room

USAGE
  $ smartthings locations:rooms:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d] [-l <value>]

ARGUMENTS
  ID  room UUID

FLAGS
  -d, --dry-run              produce JSON but don't actually submit
  -h, --help                 Show CLI help.
  -i, --input=<value>        specify input file
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a room

ALIASES
  $ smartthings rooms:update

See code: src/commands/locations/rooms/update.ts

smartthings locations:update [ID]

update a location

USAGE
  $ smartthings locations:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d]

ARGUMENTS
  ID  the location id

FLAGS
  -d, --dry-run          produce JSON but don't actually submit
  -h, --help             Show CLI help.
  -i, --input=<value>    specify input file
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a location

See code: src/commands/locations/update.ts

smartthings logout

USAGE
  $ smartthings logout [-h] [-p <value>] [-t <value>] [--language <value>]

FLAGS
  -h, --help             Show CLI help.
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

See code: src/commands/logout.ts

smartthings organizations [ID]

list all organizations the user belongs to

USAGE
  $ smartthings organizations [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  ID  the organization name, id or index

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all organizations the user belongs to

See code: src/commands/organizations.ts

smartthings organizations:current

return the currently active organization

USAGE
  $ smartthings organizations:current [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o
    <value>]

FLAGS
  -O, --organization=<value>  The organization ID to use for this command
  -h, --help                  Show CLI help.
  -j, --json                  use JSON format of input and/or output
  -o, --output=<value>        specify output file
  -p, --profile=<value>       [default: default] configuration profile
  -t, --token=<value>         the auth token to use
  -y, --yaml                  use YAML format of input and/or output
  --language=<value>          ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  return the currently active organization

See code: src/commands/organizations/current.ts

smartthings plugins

List installed plugins.

USAGE
  $ smartthings plugins [--core]

FLAGS
  --core  Show core plugins.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ smartthings plugins

See code: @oclif/plugin-plugins

smartthings plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ smartthings plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.

  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.

ALIASES
  $ smartthings plugins:add

EXAMPLES
  $ smartthings plugins:install myplugin 

  $ smartthings plugins:install https://github.com/someuser/someplugin

  $ smartthings plugins:install someuser/someplugin

smartthings plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ smartthings plugins:inspect PLUGIN...

ARGUMENTS
  PLUGIN  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ smartthings plugins:inspect myplugin

See code: @oclif/plugin-plugins

smartthings plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ smartthings plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.

  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.

ALIASES
  $ smartthings plugins:add

EXAMPLES
  $ smartthings plugins:install myplugin 

  $ smartthings plugins:install https://github.com/someuser/someplugin

  $ smartthings plugins:install someuser/someplugin

See code: @oclif/plugin-plugins

smartthings plugins:link PLUGIN

Links a plugin into the CLI for development.

USAGE
  $ smartthings plugins:link PLUGIN

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Links a plugin into the CLI for development.

  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.

EXAMPLES
  $ smartthings plugins:link myplugin

See code: @oclif/plugin-plugins

smartthings plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ smartthings plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ smartthings plugins:unlink
  $ smartthings plugins:remove

smartthings plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ smartthings plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ smartthings plugins:unlink
  $ smartthings plugins:remove

See code: @oclif/plugin-plugins

smartthings plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ smartthings plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ smartthings plugins:unlink
  $ smartthings plugins:remove

smartthings plugins:update

Update installed plugins.

USAGE
  $ smartthings plugins:update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

See code: @oclif/plugin-plugins

smartthings presentation PRESENTATIONID [MANUFACTURERNAME]

query device presentation by vid

USAGE
  $ smartthings presentation [PRESENTATIONID] [MANUFACTURERNAME] [-h] [-p <value>] [-t <value>] [--language
    <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  PRESENTATIONID    system generated identifier that corresponds to a device presentation
  MANUFACTURERNAME  manufacturer name. Defaults to SmartThingsCommunity

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  query device presentation by vid

EXAMPLES
  $ smartthings presentation fd4adb7f-4a23-4134-9b39-05ed889a03cf

  $ smartthings presentation 4ea31e30-2aba-41c7-a3ec-8f97423d565a SmartThings

  $ smartthings presentation fd4adb7f-4a23-4134-9b39-05ed889a03cf --language=ko

  $ smartthings presentation fd4adb7f-4a23-4134-9b39-05ed889a03cf --language=NONE



  Specifying only the presentationId defaults to the "SmartThingsCommunity" manufacturer

  name and the language set for the computer's operating system. The language can be

  overridden by specifying an ISO language code. If "NONE" is specified for the language

  flag then no language header is specified in the API request

See code: src/commands/presentation.ts

smartthings presentation:device-config PRESENTATIONID [MANUFACTURERNAME]

query device config by presentationId

USAGE
  $ smartthings presentation:device-config [PRESENTATIONID] [MANUFACTURERNAME] [-h] [-p <value>] [-t <value>] [--language
    <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  PRESENTATIONID    system generated identifier that corresponds to a device presentation
  MANUFACTURERNAME  manufacturer name. Defaults to SmartThingsCommunity

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  query device config by presentationId

See code: src/commands/presentation/device-config.ts

smartthings presentation:device-config:create

create a device config

USAGE
  $ smartthings presentation:device-config:create [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d]

FLAGS
  -d, --dry-run          produce JSON but don't actually submit
  -h, --help             Show CLI help.
  -i, --input=<value>    specify input file
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a device config

See code: src/commands/presentation/device-config/create.ts

smartthings presentation:device-config:generate ID

generate the default device configuration

USAGE
  $ smartthings presentation:device-config:generate [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]
    [--dth] [--type-shard-id <value>]

ARGUMENTS
  ID  the profile id (or legacy DTH id))

FLAGS
  -h, --help               Show CLI help.
  -j, --json               use JSON format of input and/or output
  -o, --output=<value>     specify output file
  -p, --profile=<value>    [default: default] configuration profile
  -t, --token=<value>      the auth token to use
  -y, --yaml               use YAML format of input and/or output
  --dth                    generate from legacy DTH id instead of a profile id
  --language=<value>       ISO language code or "NONE" to not specify a language. Defaults to the OS locale
  --type-shard-id=<value>  data management shard Id where the device type resides, only useful for legacy DTH type
                           integrations

DESCRIPTION
  generate the default device configuration

See code: src/commands/presentation/device-config/generate.ts

smartthings rooms [IDORINDEX]

list rooms or get information for a specific room

USAGE
  $ smartthings rooms [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-l <value>] [-j]
    [-y] [-o <value>]

ARGUMENTS
  IDORINDEX  room UUID or index

FLAGS
  -h, --help                 Show CLI help.
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list rooms or get information for a specific room

ALIASES
  $ smartthings rooms

smartthings rooms:create

create a room

USAGE
  $ smartthings rooms:create [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d] [-l <value>]

FLAGS
  -d, --dry-run              produce JSON but don't actually submit
  -h, --help                 Show CLI help.
  -i, --input=<value>        specify input file
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a room

ALIASES
  $ smartthings rooms:create

smartthings rooms:delete [ID]

delete a room

USAGE
  $ smartthings rooms:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-l <value>]

ARGUMENTS
  ID  room UUID

FLAGS
  -h, --help                 Show CLI help.
  -l, --location-id=<value>  a specific location to query
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a room

ALIASES
  $ smartthings rooms:delete

smartthings rooms:update [ID]

update a room

USAGE
  $ smartthings rooms:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d] [-l <value>]

ARGUMENTS
  ID  room UUID

FLAGS
  -d, --dry-run              produce JSON but don't actually submit
  -h, --help                 Show CLI help.
  -i, --input=<value>        specify input file
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a room

ALIASES
  $ smartthings rooms:update

smartthings rules [IDORINDEX]

get a specific rule

USAGE
  $ smartthings rules [IDORINDEX] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o
    <value>] [-l <value>]

ARGUMENTS
  IDORINDEX  rule UUID or index

FLAGS
  -h, --help                 Show CLI help.
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  get a specific rule

See code: src/commands/rules.ts

smartthings rules:create

create a rule

USAGE
  $ smartthings rules:create [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d] [-l <value>]

FLAGS
  -d, --dry-run              produce JSON but don't actually submit
  -h, --help                 Show CLI help.
  -i, --input=<value>        specify input file
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  create a rule

See code: src/commands/rules/create.ts

smartthings rules:delete [ID]

delete a rule

USAGE
  $ smartthings rules:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-l <value>]

ARGUMENTS
  ID  rule UUID

FLAGS
  -h, --help                 Show CLI help.
  -l, --location-id=<value>  a specific location to query
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete a rule

See code: src/commands/rules/delete.ts

smartthings rules:execute [ID]

execute a rule

USAGE
  $ smartthings rules:execute [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>] [-l
    <value>]

ARGUMENTS
  ID  rule UUID

FLAGS
  -h, --help                 Show CLI help.
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  execute a rule

EXAMPLES
  # prompt for a rule to execute and then execute it

  $ smartthings rules:execute



  # execute the rule with the specified id

  $ smartthings rules:execute 699c7308-8c72-4363-9571-880d0f5cc725

See code: src/commands/rules/execute.ts

smartthings rules:update [ID]

update a rule

USAGE
  $ smartthings rules:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d] [-l <value>]

ARGUMENTS
  ID  rule UUID

FLAGS
  -d, --dry-run              produce JSON but don't actually submit
  -h, --help                 Show CLI help.
  -i, --input=<value>        specify input file
  -j, --json                 use JSON format of input and/or output
  -l, --location-id=<value>  a specific location to query
  -o, --output=<value>       specify output file
  -p, --profile=<value>      [default: default] configuration profile
  -t, --token=<value>        the auth token to use
  -y, --yaml                 use YAML format of input and/or output
  --language=<value>         ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  update a rule

See code: src/commands/rules/update.ts

smartthings schema [ID]

list all ST Schema Apps currently available in a user account

USAGE
  $ smartthings schema [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>] [-v]

ARGUMENTS
  ID  the schema connector id

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -v, --verbose          include ARN in output
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  list all ST Schema Apps currently available in a user account

See code: src/commands/schema.ts

smartthings schema:authorize ARN

authorize calls to your ST Schema Lambda function from SmartThings

USAGE
  $ smartthings schema:authorize [ARN] [-h] [-p <value>] [--principal <value>] [--statement-id <value>]

ARGUMENTS
  ARN  the ARN of the AWS Lambda function

FLAGS
  -h, --help              Show CLI help.
  -p, --profile=<value>   [default: default] configuration profile
  --principal=<value>     use this principal instead of the default when authorizing lambda functions
  --statement-id=<value>  use this statement id instead of the default when authorizing lambda functions

DESCRIPTION
  authorize calls to your ST Schema Lambda function from SmartThings

EXAMPLES
  $ smartthings schema:authorize arn:aws:lambda:us-east-1:1234567890:function:your-test-app



  Note that this command is the same as running the following with the AWS CLI:



  $ aws lambda add-permission --region us-east-1 \

      --function-name arn:aws:lambda:us-east-1:1234567890:function:your-test-app \

      --statement-id smartthings --principal 148790070172 --action lambda:InvokeFunction



  It requires your machine to be configured to run the AWS CLI

See code: src/commands/schema/authorize.ts

smartthings schema:create

create an ST Schema connector

USAGE
  $ smartthings schema:create [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>] [-o
    <value>] [-d] [--authorize] [--principal <value>] [--statement-id <value>]

FLAGS
  -d, --dry-run           produce JSON but don't actually submit
  -h, --help              Show CLI help.
  -i, --input=<value>     specify input file
  -j, --json              use JSON format of input and/or output
  -o, --output=<value>    specify output file
  -p, --profile=<value>   [default: default] configuration profile
  -t, --token=<value>     the auth token to use
  -y, --yaml              use YAML format of input and/or output
  --authorize             authorize connector's Lambda functions to be called by SmartThings
  --language=<value>      ISO language code or "NONE" to not specify a language. Defaults to the OS locale
  --principal=<value>     use this principal instead of the default when authorizing lambda functions
  --statement-id=<value>  use this statement id instead of the default when authorizing lambda functions

DESCRIPTION
  create an ST Schema connector

See code: src/commands/schema/create.ts

smartthings schema:delete [ID]

delete the ST Schema connector

USAGE
  $ smartthings schema:delete [ID] [-h] [-p <value>] [-t <value>] [--language <value>]

ARGUMENTS
  ID  schema app id

FLAGS
  -h, --help             Show CLI help.
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  delete the ST Schema connector

See code: src/commands/schema/delete.ts

smartthings schema:regenerate [ID]

Regenerate the clientId and clientSecret of the ST Schema connector. The previous values will be invalidated, which may affect existing installations.

USAGE
  $ smartthings schema:regenerate [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-o <value>]

ARGUMENTS
  ID  schema app id

FLAGS
  -h, --help             Show CLI help.
  -j, --json             use JSON format of input and/or output
  -o, --output=<value>   specify output file
  -p, --profile=<value>  [default: default] configuration profile
  -t, --token=<value>    the auth token to use
  -y, --yaml             use YAML format of input and/or output
  --language=<value>     ISO language code or "NONE" to not specify a language. Defaults to the OS locale

DESCRIPTION
  Regenerate the clientId and clientSecret of the ST Schema connector. The previous values will be invalidated, which
  may affect existing installations.

See code: src/commands/schema/regenerate.ts

smartthings schema:update [ID]

update an ST Schema connector

USAGE
  $ smartthings schema:update [ID] [-h] [-p <value>] [-t <value>] [--language <value>] [-j] [-y] [-i <value>]
    [--authorize] [--principal <value>] [--statement-id <value>]

ARGUMENTS
  ID  the app id

FLAGS
  -h, --help              Show CLI help.
  -i, --input=<value>     specify input file
  -j, --json              use JSON format of input and/or output
  -p, --profile=<value>   [default: default] configuration profile
  -t, --token=<value>     the auth token to use
  -y, --yaml              use YAML format of input and/or output
  --authorize             authorize Lambda functions to be called by SmartThings
  --language=<value>      ISO language code or "NONE" to not specify a language. Defaults to the OS locale
  --principal=<value>     use this principal instead of the default when authorizing lambda functions
  --statement-id=<value>  use this statement id instead of the default when authorizing lambda functions

DESCRIPTION
  update an ST Schema connector

See code: src/commands/schema/update.ts

Configuration and Logging

Enable Debug Logging

Debug logging can be enabled via the SMARTTHINGS_DEBUG environment variable. This will log at debug level to the console as well as the default log file.

$ SMARTTHINGS_DEBUG=true smartthings <command>

More details about advanced configuration and logging in the CLI can be found on the configuration documentation page.

About

Command Line Interface for the SmartThings APIs.

https://developer-preview.smartthings.com/docs/sdks/cli/introduction

License:Apache License 2.0


Languages

Language:TypeScript 99.0%Language:JavaScript 0.9%Language:Shell 0.1%Language:Batchfile 0.0%