Server for our assistant: Server - CLI Assistant
CLI Assistant is a command-line tool that lets you ask questions and get answers directly in the terminal. It's perfect for situations where you don’t have access to a web browser, but still need quick answers or help solving problems. Whether you need a quick reminder, a bit of troubleshooting, or just some general knowledge, CLI Assistant has you covered—all from the comfort of your command line.
This assumes you already have a working Go environment, if not please see this page first.
To build, and install the cli-assistant-client
command into your Go toolchain's bin
directory. Go ahead and run:
go install github.com/SumDeusVitae/cli-assistant-client@latest
After this, rename the binary:
mv $(go env GOPATH)/bin/cli-assistant-client $(go env GOPATH)/bin/qs
Now, you run your app using qs instead of cli-assistant-client. Run this command to check:
qs version
If it didn't work try:
cli-assistant-client version
If it works Perhaps rm didn't work due to permission issues. Try using cp to copy the file first, and then remove the original:
cp $(go env GOPATH)/bin/cli-assistant-client $(go env GOPATH)/bin/qs
rm $(go env GOPATH)/bin/cli-assistant-client
To run CLI ASSISTANT, use following commands.
Please register first. Note: Email is optional. It may be helpful for password recovery if you forget your password.
qs register
If you already have an account, simply log in:
qs login
After registering or logging in, you can ask a question using the following command:
qs q <your question here>
This will return the response to your query. This is the core functionality of the tool.
To see a list of available commands, use:
qs help
Alternatively, you can find the available commands in the "Commands" section below.
help
: Displays a help messageregister
: Registers new userlogin
: Login as existent userq <question>
: Asks AI questionwhoami
: Checks if you logged inhelth
: Checking server statusversion
: Checks current versionenv
: Shows saved environmental variablesupdate
: Updates CLI to the latest version
To uninstall CLI Assistant, follow the steps :
Locate the binary: Find the binary in your GOBIN or GOPATH/bin directory. Remove the binary: Delete it from the terminal:
rm $(go env GOPATH)/bin/qs
Remove the source code (optional):
rm -rf $(go env GOPATH)/src/github.com/SumDeusVitae/cli-assistant-client
git clone https://github.com/sumdeusvitae/cli-assistant-client@latest
cd cli-assistant-client
go build -o qs
./qs register
./qs q <your question>
go test ./...
If you'd like to contribute, please fork the repository and open a pull request to the main
branch.