# Serverless CLI deploy

**URL:** https://discourse.sst.dev/t/serverless-cli-deploy/1651
**Category:** General
**Created:** [March 5, 2020, 3:52am UTC](https://discourse.sst.dev/t/serverless-cli-deploy/1651 "2020-03-05T03:52:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cranni](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@cranni](https://discourse.sst.dev/u/cranni)
#### Post date: [March 5, 2020, 3:52am UTC](https://discourse.sst.dev/t/serverless-cli-deploy/1651/1 "2020-03-05T03:52:48Z")

</div>

I am curious about the serverless.yml and how the serverless cli knows where to find the routes. In other words I am asking if I had a structure like routes/notes/create.js would changing the handler from  
handler: create.main  
to  
handler: routes/notes/create.main in serverless.yml work?

---

<div class="post-metadata">

### Author: ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)
#### Post date: [March 8, 2020, 8:50pm UTC](https://discourse.sst.dev/t/serverless-cli-deploy/1651/2 "2020-03-08T20:50:45Z")

</div>

Yeah it takes paths as well.

---

<div class="post-metadata">

### Author: ![cranni](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@cranni](https://discourse.sst.dev/u/cranni)
#### Post date: [March 26, 2020, 2:49pm UTC](https://discourse.sst.dev/t/serverless-cli-deploy/1651/3 "2020-03-26T14:49:56Z")

</div>

Didn’t realize there was a repo that will help me understand.

> **[AnomalyInnovations/serverless-stack-demo-ext-api](https://github.com/AnomalyInnovations/serverless-stack-demo-ext-api)**
>
> Source for the extended version of the demo app API in Serverless Stack. - AnomalyInnovations/serverless-stack-demo-ext-api
