Open sujaycarkey opened 4 months ago
Hi @sujaycarkey PK CLI will not add itself to the PATH as that's a user configuration of the operating system and not an application concern. This might be better explained in the docs. Perhaps @CryptoTotalWar can move to the docs.
In the future we may have some "installer" script that can be run.
Nix has a script installer - we could replicate this for different OSes, but users are recommended to read the script for installation of the CLI. However for non-technical users, it would have to be distributed through their app-distribution systems, like Mac App Store, or Windows system or OS package manager.
Creating a custom installer for a CLI tool seems overkill.
I would argue this issue can be solved with more documentation, and later we can scope out installer/scripts in the engineering team.
Procedural Documentation Tasks
Comment: This should be less of an issue now since we are also providing the npm install method which should bypass many of the PATH related configuration complications use can experience. However, even for this method, there's configuration requirements for npm that users must have already setup for the global install method to be seamless.
Describe the bug
While following the guide for installing Polykey on Bash terminal, I was running into an issue with @CryptoTotalWar where the path wasn't being found for the install, leading to the executable not being able to be started just by typing 'polykey' into the terminal.
To Reproduce
Expected behavior
Polykey should be added as a path, then should be able to be used as a command in the terminal.
Screenshots
Platform (please complete the following information)
Additional context
Problem was fixed once I edited the path command to this instead of what was there: echo 'export PATH=\~/downloads/polykey:$PATH' >> \~/.bashrc && source \~/.bashrc
Notify maintainers