# \[smartthings-cli\] Login samsung account without web browser

**URL:** <https://community.smartthings.com/t/smartthings-cli-login-samsung-account-without-web-browser/285614>\
**Category:** Support\
**Created:** [August 14, 2024, 7:43am UTC](https://community.smartthings.com/t/smartthings-cli-login-samsung-account-without-web-browser/285614 "2024-08-14T07:43:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leevisual](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@leevisual](https://community.smartthings.com/u/leevisual)\
**Post date:** [August 14, 2024, 7:43am UTC](https://community.smartthings.com/t/smartthings-cli-login-samsung-account-without-web-browser/285614/1 "2024-08-14T07:43:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TapioX](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@TapioX](https://community.smartthings.com/u/TapioX)\
**Post date:** [August 14, 2024, 9:55am UTC](https://community.smartthings.com/t/smartthings-cli-login-samsung-account-without-web-browser/285614/2 "2024-08-14T09:55:25Z")

</div>

Additional info here:

> **[GitHub - SmartThingsCommunity/smartthings-cli: Command-line Interface for the SmartThings APIs.](https://github.com/SmartThingsCommunity/smartthings-cli?tab=readme-ov-file#authentication)**
>
> Command-line Interface for the SmartThings APIs.

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

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [August 14, 2024, 6:00pm UTC](https://community.smartthings.com/t/smartthings-cli-login-samsung-account-without-web-browser/285614/3 "2024-08-14T18:00:41Z")

</div>

Hi, @leevisual. Welcome to the SmartThings Community!

Yes, as @TapioX mentioned, you can get a Personal Access Token from here: [Samsung account](https://account.smartthings.com/tokens)

> 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:

```auto
default:
  token: xxxx-xxxx-....
account2:
  token: xxxx-xxxx-....

```

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

```auto
smartthings devices --profile=account2

```

More info here:

> <https://github.com/SmartThingsCommunity/smartthings-cli/blob/main/packages/cli/doc/configuration.md>
