Update CLI installation path and improve related messages #426
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Fix macOS CLI installation permission error by using user-writable directory
Description
This PR fixes the "Permission denied (OS error 13)" error that occurs when installing the CLI command on macOS. The issue was caused by attempting to write to
/usr/local/bin, which requires administrator privileges./usr/local/binto~/.local/binfor Unix systems (macOS/Linux)get_cli_script_path()function~/.local/binto their PATH if neededScreenshots/Videos
Before (Error):
The installation would fail with a permission denied error requiring sudo access.
After (Success):
The CLI installs successfully to
~/.local/bin/athaswithout requiring elevated privileges. Users receive clear instructions about adding the directory to their PATH if needed.Related Issues
Closes #373
Note: This change follows modern best practices for user-installed CLI tools. Users may need to add
~/.local/binto their PATH by addingexport PATH="$HOME/.local/bin:$PATH"to their~/.zshrcor~/.bashrcfile.