Skip to content

[DX] Improve command and argument suggestions #3344

Closed as not planned
Closed as not planned
@bramus

Description

@bramus

It's been a while since I did a manual deploy, so I forgot the command (of course) to do so. I tried guessing it from memory, and while I was happy to see that netlify-cli tried to help me out, the suggestions felt really weird:

$ netlify publish
  > warning publish is not a netlify command.
Did you mean unlink [y/n]

I expected netlify-cli to suggest deploy (the correct command) here, instead of the dangerous unlink

$ netlify push
  > warning push is not a netlify command.
Did you mean api [y/n]

I also expected netlify-cli to suggest deploy (the correct command) here, instead of the unrelated api

$ netlify deploy --production
  > Error: unexpected argument: --production
  > See more help with --help

I expected netlify-cli to suggest using --prod (the correct argument) here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: command: deployarea: dxtype: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions