# Sls deploy ignoring CLI overrides

**URL:** <https://forum.serverless.com/t/sls-deploy-ignoring-cli-overrides/1778>\
**Category:** Serverless Framework\
**Created:** [April 28, 2017, 4:14pm UTC](https://forum.serverless.com/t/sls-deploy-ignoring-cli-overrides/1778 "2017-04-28T16:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeyburgett](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@joeyburgett](https://forum.serverless.com/u/joeyburgett)\
**Post date:** [April 28, 2017, 4:14pm UTC](https://forum.serverless.com/t/sls-deploy-ignoring-cli-overrides/1778/1 "2017-04-28T16:14:33Z")

</div>

Updated to 1.12.1. When doing sls deploy --stage ops --profile ops --verbose, it appears these options are being ignored now. I have these statically set in my serverless.yml and it’s using these regardless of what I override on the CLI. Anyone else experiencing this?

---

<div class="post-metadata">

**Author:** ![sime](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/sime/32/230_2.png) [@sime](https://forum.serverless.com/u/sime)\
**Post date:** [May 2, 2017, 6:54pm UTC](https://forum.serverless.com/t/sls-deploy-ignoring-cli-overrides/1778/2 "2017-05-02T18:54:18Z")

</div>

I was noticing something strange, I believe I got around it by doing this:

```
provider:
  name: aws
  runtime: nodejs6.10
  defaultStage: dev
  stage: ${opt:stage, self:provider.defaultStage}
```

---

<div class="post-metadata">

**Author:** ![brianneisler](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/brianneisler/32/292_2.png) [@brianneisler](https://forum.serverless.com/u/brianneisler)\
**Post date:** [May 2, 2017, 7:14pm UTC](https://forum.serverless.com/t/sls-deploy-ignoring-cli-overrides/1778/3 "2017-05-02T19:14:38Z")

</div>

@joeyburgett sorry to hear that, seems like a potential bug. Please open up an issue in the github serverless repo and we’ll take a look at it immediately. Thanks!

> **[serverless/serverless](https://github.com/serverless/serverless/issues)**
>
> ⚡ Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! – - serverless/serverless
