# Deploy a single function lists files in directory

**URL:** <https://forum.serverless.com/t/deploy-a-single-function-lists-files-in-directory/16343>\
**Category:** Serverless Framework\
**Tags:** lambda\
**Created:** [December 3, 2021, 2:17pm UTC](https://forum.serverless.com/t/deploy-a-single-function-lists-files-in-directory/16343 "2021-12-03T14:17:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jwan](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/jwan/32/6409_2.png) [@Jwan](https://forum.serverless.com/u/Jwan)\
**Post date:** [December 3, 2021, 2:17pm UTC](https://forum.serverless.com/t/deploy-a-single-function-lists-files-in-directory/16343/1 "2021-12-03T14:17:42Z")

</div>

Hello

I am trying to deploy a single lambda function that I’ve updated. The command I run is:

```auto
sls deploy function -f NocRetriever -s test

```

But that doesn’t seem to do anything! It only lists the files in the directory.

What am I missing? I am running the command above from the directory where my `serverless.yml` file sits.

---

<div class="post-metadata">

**Author:** ![Jwan](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/jwan/32/6409_2.png) [@Jwan](https://forum.serverless.com/u/Jwan)\
**Post date:** [December 3, 2021, 2:30pm UTC](https://forum.serverless.com/t/deploy-a-single-function-lists-files-in-directory/16343/2 "2021-12-03T14:30:24Z")

</div>

This is embarrassing! `sls` was something else on my Linux box, it was not `serverless`!

```auto
~ ❯ which sls
/home/j/.nvm/versions/node/v14.17.1/bin/sls
~ ❯

```

I confirmed by running the command `serverless` and I got:

```auto
~ ❯ serverless
zsh: command not found: serverless
~ ❯

```

Sorry guys.
