Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Serverless CLI prints non-JSON output with "--json" if not already installed #13073

Copy link
Copy link
Open
@iiroj

Description

@iiroj
Issue body actions

Issue description

When running a command outputting JSON like:

serverless info --json --stage=my-arbitrary-stage

The serverless CLI will output non-JSON if not already installed, because the first line logged will be:

✔ Installed Serverless Framework v4.14.1

The full output will be something like:

✔ Installed Serverless Framework v4.14.1
{
  "inputs": {
    "compose": {}
  },
  "info": {
    "functions": [
      {
...

Would it be possible to suppress all other output than the primary JSON, when using --json?

Context

Serverless Framework Version: 4.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.