Authentication

Learn how authenticating with the Vela CLI works.

Overview

Authentication with the Vela CLI is the responsibility of the client initiating the request.

Each request requires a server address. You can provide this variable to the CLI in three ways:

  • Configuration File
  • Environment Variable
  • Flag

Configuration File

Log in:

# Syntax
vela login --api.addr <vela server url>

# Example
vela login --api.addr https://vela.example.com

Confirm authentication via browser prompt:

Open https://vela.example.com in your browser and complete authentication (Press Enter to confirm):

Confirm to generate or update the configuration file prompt:

Authentication complete. Continue to save configuration (existing config will be overwritten):

Environment Variables

Configure the environment with the VELA_ADDR environment variable:

export VELA_ADDR=https://vela.example.com

Log in and confirm the two prompts as stated above:

vela login

Flags

Log in and confirm the two prompts as stated above:

# Syntax
vela login --api.addr <vela server url>

# Example
vela login --api.addr https://vela.example.com