LakeQL
Overview
  • Installation
Commands
  • init
  • pull
  • create-registry
  • list-schemas
  • list-tables
  • list-views
  • list-columns
  • create-endpoint
  • generate-import-config
Configuration
  • Environment Variables
  • Config File
GitHub
LakeQL
  1. CLI
  2. Configuration
  3. Environment Variables

On this page

  1. Required variables
  2. Optional variables
  3. Example .env file

Environment Variables

All environment variables used by the LakeQL CLI for Trino connectivity.

The LakeQL CLI reads connection details from environment variables. These are required for any command that communicates with Trino.

Required variables #

VariableTypeDescription
HIVE_HOSTstringTrino host URL including protocol (e.g. https://trino.example.com)
HIVE_PORTnumberTrino port (e.g. 443)
HIVE_USERNAMEstringAuthentication username
HIVE_PASSWORDstringAuthentication password
HIVE_CATALOGstringDefault catalog name used when --catalog is not provided

Optional variables #

VariableTypeDefaultDescription
HIVE_SOURCEstring—Optional source identifier sent to Trino
LOG_LEVELstringwarnLog verbosity: debug, info, warn, or error

Example .env file #

1
2
3
4
5
6
7
8
# .env
HIVE_HOST=https://trino.example.com
HIVE_PORT=443
HIVE_USERNAME=service-account
HIVE_PASSWORD=s3cur3-p4ssw0rd
HIVE_CATALOG=hive
LOG_LEVEL=info

The CLI does not load .env automatically. Make sure variables are present in the process environment before running commands.

You can do this in different ways:

  • export variables in your shell session
  • use a wrapper like dotenv-cli
  • run commands through your process manager or CI environment

Example with dotenv-cli:

1
2
dotenv -e ./.env -- lakeql-cli pull

Previous page

Configuration

Next page

Config File