# CLI options definitions were upgraded with "type" property

**URL:** <https://forum.serverless.com/t/cli-options-definitions-were-upgraded-with-type-property/17244>\
**Category:** Serverless Framework\
**Created:** [May 27, 2022, 6:04am UTC](https://forum.serverless.com/t/cli-options-definitions-were-upgraded-with-type-property/17244 "2022-05-27T06:04:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![diegol](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/diegol/32/2036_2.png) [@diegol](https://forum.serverless.com/u/diegol)\
**Post date:** [May 27, 2022, 6:04am UTC](https://forum.serverless.com/t/cli-options-definitions-were-upgraded-with-type-property/17244/1 "2022-05-27T06:04:40Z")

</div>

I deployed using sls 3.18.2 and I’ve gotten this error

```auto
CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:
 - Offline for "prefix", "host", "port", "stage", "region", "skipCacheInvalidation", "cacheInvalidationRegex", "httpsProtocol", "location", "noTimeout", "noEnvironment", "resourceRoutes", "dontPrintOutput", "corsAllowOrigin", "corsAllowHeaders", "corsExposedHeaders", "corsDisallowCredentials", "apiKey", "exec", "noAuth", "useSeparateProcesses", "preserveTrailingSlash", "disableCookieValidation"
Please report this issue in plugin issue tracker.
Starting with next major release, this will be communicated with a thrown error.
More info: https://serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA_V3

```

Can’t find how to solve this.

serverless.yml

```auto
service: backend-${self:custom.customDomain.basePath}

configValidationMode: error

provider:
  name: aws
  runtime: nodejs12.x
  stage: ${opt:stage, 'test'}
  region: us-east-1
  environment:
    BASE_PATH : ${self:custom.customDomain.basePath}
    NODE_PATH: /mnt/deps-lambda/node_modules
  iamManagedPolicies:
    - arn:aws:iam::aws:policy/AmazonS3FullAccess
    - arn:aws:iam::aws:policy/AWSLambda_FullAccess
    - arn:aws:iam::aws:policy/AmazonSSMFullAccess
    - arn:aws:iam::aws:policy/AmazonSESFullAccess
    - arn:aws:iam::aws:policy/AmazonEC2FullAccess
    - arn:aws:iam::aws:policy/AmazonElasticFileSystemFullAccess
  stackTags:
  vpc: ${file(./settings.yml):vpc_settings.${self:provider.stage}}

plugins:
  - serverless-offline
  - serverless-domain-manager

package:
  patterns:
    - '!node_modules/**'

custom:
  domains:
    prod: prod.com
    test: test.com
  customDomain:
    domainName: ${self:custom.domains.${self:provider.stage}} # Change this to your domain.
    basePath: 'micro' # This will be prefixed to all routes
    stage: ${self:provider.stage}
    createRoute53Record: true

functions:
  # 1
  getService:
    handler: index_${self:custom.customDomain.basePath}.handler
    events:
      - http:
          path: /api/getService
          method: post
 

```

---

<div class="post-metadata">

**Author:** ![medikoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/medikoo/32/4462_2.png) [@medikoo](https://forum.serverless.com/u/medikoo)\
**Post date:** [June 7, 2022, 10:39am UTC](https://forum.serverless.com/t/cli-options-definitions-were-upgraded-with-type-property/17244/2 "2022-06-07T10:39:50Z")

</div>

Ensure to upgrade `serverless-offline` plugin to latest version

---

<div class="post-metadata">

**Author:** ![diegol](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/diegol/32/2036_2.png) [@diegol](https://forum.serverless.com/u/diegol)\
**Post date:** [June 8, 2022, 9:53pm UTC](https://forum.serverless.com/t/cli-options-definitions-were-upgraded-with-type-property/17244/3 "2022-06-08T21:53:50Z")

</div>

I solved by deleting the property --dontPrintOutput

> **[Serverless Framework: Plugins](https://www.serverless.com/plugins/serverless-offline)**
>
> The Serverless Framework Plugin Registry. Search thousands of Serverless Framework plugins.

---

<div class="post-metadata">

**Author:** ![pbalajiips](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/pbalajiips/32/6943_2.png) [@pbalajiips](https://forum.serverless.com/u/pbalajiips)\
**Post date:** [July 2, 2022, 12:40am UTC](https://forum.serverless.com/t/cli-options-definitions-were-upgraded-with-type-property/17244/4 "2022-07-02T00:40:08Z")

</div>

upgrade serverless-offline to 8.8.0 and change the offline config fixed the issue.(port to httpPort)

```auto
custom:
  serverless-offline:
    httpPort: 4444

```
