-
Notifications
You must be signed in to change notification settings - Fork 447
feature(command-status): add status:auth sub command #2040
Description
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