Skip to main content
Version: 0.0.42

lhc configure

Manage CLI profiles. Each profile stores an endpoint URL and an API key for a specific Lakehousecat instance.

Commands​

configure​

Create or update a profile interactively:

lhc configure [--profile <name>]
FlagDefaultDescription
--profiledefaultName of the profile to create or update

Example session:

Configuring profile [default]
Endpoint (e.g. https://my.lakehousecat.com): https://acme.lakehousecat.com
API Key: lhc-...
Profile [default] configured.

The endpoint is stored in ~/.lhc/config and the API key in ~/.lhc/credentials (mode 0600).


configure list​

List all configured profiles:

lhc configure list

Example output:

PROFILE              ENDPOINT
default https://acme.lakehousecat.com
staging https://staging.lakehousecat.com

Profile Storage​

FileContentsPermissions
~/.lhc/configEndpoint per profile0644
~/.lhc/credentialsAPI key per profile0600

Both files use INI format. Multiple profiles are stored as INI sections. The default profile is stored in the default (unnamed) INI section.

Environment Variable​

Set LHC_PROFILE to select a profile without using --profile:

export LHC_PROFILE=staging
lhc instance info # uses the staging profile