CLI commands

valiqai login, logout, whoami, switch

Sign in and out, see who you are, and change workspace.

valiqai login

Sign in from your browser (in CI, set VALIQAI_API_KEY instead)

Terminal
valiqai login [options]
OptionWhat it does
-k, --key <apiKey>Use an API key you created in ValiqAI instead of the browser
--no-browserDon't open a browser; print the page to open (for SSH)
--api-url <url>ValiqAI address
Terminal
$ valiqai login$ valiqai login --no-browser                    # over SSH$ valiqai login --key valiqai_…

valiqai logout

Sign out of the active workspace (--all for every one); browser sign-ins also revoke their key

Terminal
valiqai logout [options]
OptionWhat it does
--allSign out of every workspace
--workspace <name>Sign out of this workspace instead of the active one
Terminal
$ valiqai logout$ valiqai logout --all

valiqai whoami

Show who you are signed in as, the workspace, and the key commands will use

Terminal
valiqai whoami [options]
OptionWhat it does
--workspace <name>Show this workspace instead of the active one
--jsonPrint it as JSON
Terminal
$ valiqai whoami$ valiqai whoami --json

valiqai switch

Change the active workspace, or sign in to another one

Terminal
valiqai switch [options] [workspace]
ArgumentWhat it is
workspaceWorkspace slug or name
Terminal
$ valiqai switch$ valiqai switch acme

Every command also takes the options for every command: --quiet, --debug and --no-color.