Skip to content

feature(command-status): add status:auth sub command #2040

@erezrokah

Description

@erezrokah

Describe the bug

This was introduced as a result of #1999.

Prior to #1999 the code to fail if running outside a linked site was being ignored since we used to exit early if we didn’t find a netlify.toml.

To Reproduce

1. npm install -g netlify-cli
2. netlify login
3. netlify status from a directory not linked to a site
4. See that authentication information is printed, but then an error message to run netlify link is printed

Expected behavior

To be honest - not sure if this is a real bug as I could go either way. The confusion is because ntl status handles both authentication status and site information status

Perhaps we should have a status:auth subcommand

Update

Changing this to a feature request to be able to print authentication status outside a linked directory without failing

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: command: statustype: 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