aotuai / brainframe-cli

🧠🖼️👩🏽‍💻 A CLI that makes installing and managing a BrainFrame server easy!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a script for easy installation

velovix opened this issue · comments

This script would automatically detect the operating system being used and use the best installation option for that platform. For supported platforms, this would ideally be through the package manager. This script should be written to be runnable on the widest variety of Linux distributions possible, so it should not have external dependencies.

In order for this script to be widely useful, we should have some kind of fallback installation option for unsupported platforms. This would probably come in the form of a PyInstaller executable, but see #13 for a list of options with pros and cons.

The intended result is to maintain our one-liner installation experience while being able to make more intelligent choices about how that installation happens. The resulting command would look something like this:

curl -fsSL https://get-cli.aotu.ai | sh

Piping a script from the internet directly into a root shell script has its fair share of security considerations. We should make those considerations clear in the documentation and provide manual installation instructions as well.

This script could also be written to not be run with sudo, but it will still need to run individual commands with root permissions.