Skip to main content

CLI Configuration

The tool uses the next folders by default

Operating SystemConfig folderData folder
Linux / macOS~/.config/vvctl~/.local/share/vvctl
Windows$HOME\AppData\Roaming\vvctl$HOME\AppData\Local\vvctl

The configuration file can be found in the file settings.json in your config folder. You would only need to edit this file in case you have an special requirement, otherwise the default values should just work fine.

This is an example of a configuration file settings.json

{
"session_path": "~/.local/share/vvctl/session",
"api_host": "https://app.ververica.cloud",
"default_flink_engine_version": "vera-1.0.6-flink-1.17",
"agent_version": "1.9.2-1",
"agent_charts": "oci://registry.ververica.cloud/agent-charts-stage/vv-agent",
"agent_name": "vv-agent"
}

where

PropertyDescription
session_pathFile path to store the authentication session. You can leave the default value
api_hostURl of you of the Ververica API. By default https://app.ververica.cloud.
agent_*Parameters for the BYOC agent installation. Leave the default values

Using Environment variables

You can also set some environment variables, which will be used as the default value for some options if they are required.

ENV VariableDescription
VV_API_HOSTURL of the Ververica API to use
VV_API_TOKENAPI token for authentication
VV_EMAIL and VV_PASSWORDCredentials, email and password, for authentication
VV_WORKSPACE_IDDefault Workspace ID to use
VV_NAMESPACE_IDDefault Namespace ID to use
VV_CONFIG_DIRPath to the folder containing the configuration files

Authentication

vvctl supports two authentication methods:

  1. Email and password
  2. Authentication tokens

The authentication tokens will be stored in the file defined in the authentication file. Make sure only your user has access to this file.

If the authentication stored is not valid, the tool will ask for the credentials when executing any command if they are not setup in as environment variables.

You can always authenticate directly using the command vvctl login with your credentials or an API token.