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>]
| Flag | Default | Description |
|---|---|---|
--profile | default | Name 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
| File | Contents | Permissions |
|---|---|---|
~/.lhc/config | Endpoint per profile | 0644 |
~/.lhc/credentials | API key per profile | 0600 |
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