soluble-cli

command module
v0.4.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL