Using cli outside of projects should produce a helpful error message
- Dominant language
- JavaScript
- Stars
- 95
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
### Expected Behavior
If a dev uses a command that requires a project/auth, outside of a project dir they should see an error message stating that they are not in an App Builder Project dir.
Messaging should be friendly and indicate how to fix the problem (this is an easy fix)
### Actual Behavior
➜ aio-lib-runtime git:(master) aio rt action ls
› Error: failed to list the actions: An AUTH key must be specified
› specify --verbose flag for more information
### Reproduce Scenario (including but not limited to)
#### Steps to Reproduce
navigate away from an app builder project and try something ...
See Actual Behavior above ^^
#### Environment Info
```
System:
OS: macOS 26.4.1
CPU: (16) arm64 Apple M4 Max
Memory: 3.89 GB / 48.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.21.1 - /Users/jessem/.nvm/versions/node/v22.21.1/bin/node
Yarn: Not Found
npm: 11.12.1 - /Users/jessem/.nvm/versions/node/v22.21.1/bin/npm
Virtualization:
Docker: 28.5.1 - /usr/local/bin/docker
npmGlobalPackages:
@adobe/aio-cli: 11.0.2
```
#### Sample Code that illustrates the problem
#### Logs taken while reproducing problem
Contributor guide
Assessment
This issue has not been assessed yet.