Soluble CLI
This is the command line interface for Soluble.
Installation
On MacOS use homebrew:
brew install soluble-ai/soluble/soluble-cli
To upgrade to the latest version:
brew upgrade soluble-ai/soluble/soluble-cli
On linux, run:
wget -O - https://raw.githubusercontent.com/soluble-ai/soluble-cli/master/linux-install.sh | sh
# or
curl https://raw.githubusercontent.com/soluble-ai/soluble-cli/master/linux-install.sh | sh
The install will drop the executable in the current directory. If you run this as root
or can sudo to root,
the install will try to move the binary to /usr/local/bin/soluble
.
If ${HOME}/.soluble/cli-config.json
does not exist and the following environment variables are set, the installation will
set up the configuration. This is useful in CI environments.
SOLUBLE_API_URL
SOLUBLE_API_TOKEN
SOLUBLE_ORG_ID
Windows executables can be found on the releases page.
Build from source
It's possible to build from source. Assuming you have go installed:
git checkout https://github.com/soluble-ai/soluble-cli.git
./hack/build.sh
./soluble version
Usage
You'll need to generate an access token from the UI. Copy the access token and run:
soluble auth set-access-token --access-token <your-access-token>
If successful the CLI will show your user profile.
Some useful commands:
# get help
soluble help
# deploy an agent
soluble agent deploy
# list clusters
soluble cluster list
# list queries
soluble query list
# run a query
soluble query run --query-name deployments