Skip to content

Common Environment Variables in ybtools

The following environment variables may be set for Yellowbrick client tools to expedite and simplify database connections. See also ybsql Environment Variables.

Note that the following examples are for Linux platforms. On Windows platforms, omit the export keyword.

Environment VariableEquivalent OptionsDescriptionExample
YBDATABASE-d or --dbnameDestination database name. Default: yellowbrick See also SQL Identifiers.


--dbname premdb



export YBDATABASE=premdb


YBHOST-h or --hostDestination server host name. Default: localhost
-h test.mysandbox.dev.yellowbrickcloud.com



export YBHOST=test.mysandbox.dev.yellowbrickcloud.com


YBCLUSTER--clusterVirtual compute cluster to use.
--cluster "small-default-cluster"



export YBCLUSTER=small-default-cluster


YBPORT-p or --portDestination server port number. Default: 5432
--port 5433



export YBPORT=5433


YBUSER-U or --usernameDatabase login username. The default user is the current OS user on the client system.
-U bobr@yellowbrickcloud.com



export YBUSER=bobr@yellowbrickcloud.com


YBPASSWORD-W or --passwordInteractive prompt for the database user's password. No default.
--password



export YBPASSWORD=********


YBAUTHISSUER--auth-issuerURL of the OAuth/OIDC issuer.
--auth-issuer https://cn.beta.yellowbrickcloud.com/auth/realms/mycompany.com



export YBAUTHISSUER=https://cn.beta.yellowbrickcloud.com/auth/realms/mycompany.com


YBAUTHTOKEN--auth-tokenJWT string
--auth-token ************



export YBAUTHTOKEN=************


YBCLIENTID--client-idYellowbrick client ID (ybauth)
--client-id ybauth



export YBCLIENTID=ybauth