# Sls login : how to login without browser?

**URL:** <https://forum.serverless.com/t/sls-login-how-to-login-without-browser/8978>\
**Category:** Serverless Framework\
**Created:** [August 2, 2019, 9:51am UTC](https://forum.serverless.com/t/sls-login-how-to-login-without-browser/8978 "2019-08-02T09:51:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Patchoulin](https://avatars.discourse-cdn.com/v4/letter/p/bb73d2/32.png) [@Patchoulin](https://forum.serverless.com/u/Patchoulin)\
**Post date:** [August 20, 2019, 9:22am UTC](https://forum.serverless.com/t/sls-login-how-to-login-without-browser/8978/5 "2019-08-20T09:22:58Z")

</div>

I tried what you suggest, and what alexdebrie suggests in this post : [Log into Serverless Platform on a headless system](http://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215)  
But I still get the message “Serverless: Logging you in via your default browser…”

What I tried :

1. create an app on my serverless account : “mysuperapp” ;
2. create a personal access key : xxxxxxxxxxxxxxx ;
3. add the following to my serverless.yml :

> ```
> tenant: mytenantname
> app: mysuperapp
> [...]
> environment:
> SERVERLESS_ACCESS_KEY: xxxxxxxxxxxxxxx 
> 
> ```

1. then I run ‘sls login’ at the same level of my serverless.yml, and get the message “Serverless: Logging you in via your default browser…”.

Is there something wrong ?

---

_[View the full topic](https://forum.serverless.com/t/sls-login-how-to-login-without-browser/8978)._
