[smartthings-cli] Login samsung account without web browser

Hi,
I am a software developer and I am analyzing the smartthings-cli source code.

I have a question about login.
When I use smartthings-cli to login samsung account, My Web browser is poped.

I want to register to my Samsung account using smartthings-cli with myid and password without a web browser.

If it is supported , please explain it.

Additional info here:

You can also use a personal access token (PAT) for authentication

1 Like

Hi, @leevisual. Welcome to the SmartThings Community!

Yes, as @TapioX mentioned, you can get a Personal Access Token from here: Samsung account

Note: This token is static and linked to your account, so if you’ll use more than one, you need to get a token from each account.

Then, add the config.yaml file in the corresponding path. You can have more than one “profile” so you can set one for different accounts. For example:

default:
  token: xxxx-xxxx-....
account2:
  token: xxxx-xxxx-....

And then use the “profile” in your commands, for example:

smartthings devices --profile=account2

More info here: