Closed erezrokah closed 1 year ago
Hm, yeah, that behavior feels pretty normal to me. I suppose there could be some value in having the status:auth
command that only checks auth, but I'm not sure there's enough demand to justify the effort.
Perhaps we wait and see if we get any other requests for this?
Thanks @verythorough I updated the title and description
Closing as stale. Please re-open if needed
Describe the bugThis was introduced as a result of https://github.com/netlify/cli/pull/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 anetlify.toml
.To Reproduce1.npm install -g netlify-cli
2.netlify login
3.netlify status
from a directory not linked to a site4. See that authentication information is printed, but then an error message to runnetlify link
is printedExpected behaviorTo be honest - not sure if this is a real bug as I could go either way. The confusion is becausentl status
handles both authentication status and site information statusPerhaps we should have astatus:auth
subcommandUpdate
Changing this to a feature request to be able to print authentication status outside a linked directory without failing