Skip to content
DocumentationAPI references
API references
Altertable CLI

Altertable CLI reference

v1.4.0

Global options

Pass these options before any command.

-h, --helpboolean
Show this help
-v, --versionboolean· Root only
Show the Altertable CLI version
-d, --debugboolean
Enable debug output
--jsonboolean
Machine-readable JSON output
--agentboolean
Agent-friendly preset: structured JSON output, no pager or terminal styling
--no-colorboolean
Disable terminal colors and styling
--profile <PROFILE>string
Use a named profile for this command only
--connect-timeout <CONNECT-TIMEOUT>string
HTTP connect timeout in seconds (default 5)
--read-timeout <READ-TIMEOUT>string
HTTP read timeout in seconds (default 60; 0 = no limit for streams)

Platform

altertable login

Sign in with your browser (OAuth) and store the session.

Usage

altertable login [options]

Options

--control-plane-url <CONTROL-PLANE-URL>string
Control-plane server root to log in against; saved to the profile only on success (the CLI appends /oauth and /rest/v1). Default: https://app.altertable.ai
--data-plane-url <DATA-PLANE-URL>string
Data-plane base URL saved to the profile only on successful login. Default: https://api.altertable.ai
--allow-insecure-httpboolean
Allow http:// URLs other than localhost for --control-plane-url (for development only)
--replace-profileboolean
Store the login session in the current profile instead of switching profiles

altertable logout

Remove stored credentials and settings for all profiles.

Usage

altertable logout

altertable profile

Manage named profiles and stored credentials.

Usage

altertable profile configure|list|show|status|switch|current|env|delete

altertable profile configure

Create or update a profile's credentials and settings

Usage

altertable profile configure [options] [NAME]

Arguments

<NAME>positional
Profile name (default: selected or active profile)

Options

--user <USER>string
Lakehouse username (global)
--password <PASSWORD>string
Lakehouse password (global)
--basic-token <BASIC-TOKEN>string
Pre-encoded HTTP Basic token
--api-key <API-KEY>string
Management API key for the --env environment
--env <ENV>string
Target environment (management API keys are per-environment)
--password-stdinboolean
Read the lakehouse password from stdin
--api-key-stdinboolean
Read the management API key from stdin
--data-plane-url <DATA-PLANE-URL>string
Data-plane base URL; can be set alone or with a credential (default: https://api.altertable.ai)
--control-plane-url <CONTROL-PLANE-URL>string
Control-plane server root; the CLI appends /rest/v1 (default: https://app.altertable.ai)
--allow-insecure-httpboolean
Allow http:// URLs other than localhost (not recommended)
--scope <SCOPE>enum
Limit the interactive wizard to one plane (default: both)
Supported values
managementlakehouse

altertable profile list

List configured profiles

Usage

altertable profile list

altertable profile show

Show a profile's stored identity, auth, and endpoints

Usage

altertable profile show [NAME]

Arguments

<NAME>positional
Profile name (default: selected or active profile)

altertable profile status

Verify stored credentials and show the profile

Usage

altertable profile status [NAME]

Arguments

<NAME>positional
Profile name (default: selected or active profile)

altertable profile switch

Interactively switch the active profile

Usage

altertable profile switch [NAME]

Arguments

<NAME>positional
Profile name

altertable profile current

Show the active profile name

Usage

altertable profile current

altertable profile env

Print shell exports for a profile

Usage

altertable profile env [NAME]

Arguments

<NAME>positional
Profile name (default: active profile)

altertable profile delete

Delete a profile

Usage

altertable profile delete [options] <NAME>

Arguments

<NAME>positional· Required
Profile name

Options

--yesboolean
Confirm deletion

altertable catalogs

Manage catalogs (databases and connections) in the current environment.

Usage

altertable catalogs
altertable catalogs create

altertable catalogs create

Create an Altertable catalog.

Usage

altertable catalogs create <NAME>

Arguments

<NAME>positional· Required
Catalog name

altertable api

Management REST API — HTTP invoker and OpenAPI spec.

Usage

altertable api [options] <ENDPOINT>
altertable api routes|spec

Arguments

<ENDPOINT>positional· Required
Path under /rest/v1, e.g. /whoami

Options

-X, --method <METHOD>enum
HTTP method override (default GET, or POST when fields/input are provided)
Supported values
GETPOSTPATCHDELETEPUT
-f, --raw-field <RAW-FIELD>string· Repeatable
String request parameter key=value (repeatable; gh api -f semantics)
-F, --field <FIELD>string· Repeatable
Typed request parameter key=value (true, false, null, integers; repeatable)
--input <INPUT>string
File to use as the request body; use - for stdin
--env <ENV>string
Replace {environment_id} in the path
--format <FORMAT>enum
Serialized output format; use global --json for JSON
Supported values
csvmarkdown

altertable api routes

List management API paths and methods from the bundled OpenAPI spec.

Usage

altertable api routes [OPERATION]

Arguments

<OPERATION>positional
Optional operationId to inspect, e.g. createDatabase

altertable api spec

Print the bundled management OpenAPI specification (YAML by default; JSON with --json).

Usage

altertable api spec

altertable doctor

Diagnose local configuration and Altertable connectivity.

Usage

altertable doctor [options]

Options

--offlineboolean
Inspect local configuration without contacting Altertable APIs.

altertable update

Update Altertable CLI to the latest release.

Usage

altertable update [options] [VERSION]

Aliases

upgrade

Arguments

<VERSION>positional
Specific version to install (default: latest).

Options

--checkboolean
Check for an update without installing it.
--forceboolean
Reinstall or downgrade to the selected release.

altertable completion

Generate or install shell completion scripts.

Usage

altertable completion
altertable completion generate|install

altertable completion generate

Generate a shell completion script.

Usage

altertable completion generate <BASH|FISH|ZSH>

Arguments

<SHELL>positional· Required
Shell to generate completion for
Supported values
bashfishzsh

altertable completion install

Install shell completion for the current shell.

Usage

altertable completion install [options] [BASH|FISH|ZSH]

Arguments

<SHELL>positional
Shell to install completion for (default: detected shell)
Supported values
bashfishzsh

Options

--no-rcboolean
Write the completion file without updating shell startup files.

Ingest

altertable append

Append JSON rows to a table.

Usage

altertable append [options] <DATA>
altertable append status

Arguments

<DATA>positional· Required
JSON object, array, or @file

Options

--to <TO>string· Required
Destination as catalog.schema.table
--syncboolean
Wait for the append operation to finish before returning

altertable append status

Fetch status for an append operation.

Usage

altertable append status <APPEND-ID>

Arguments

<APPEND-ID>positional· Required
Append id returned by append

altertable upload

Upload a file to create, append to, or overwrite a table.

Usage

altertable upload [options] <FILE>

Arguments

<FILE>positional· Required
Local file to upload

Options

--to <TO>string· Required
Destination as catalog.schema.table
--format <FORMAT>enum
Input format; inferred from the filename when omitted
Supported values
csvjsonparquet
--mode <MODE>enum
create, append, or overwrite
Supported values
createappendoverwrite
Default
create

altertable upsert

Upload a file and match existing rows by primary key.

Usage

altertable upsert [options] <FILE>

Arguments

<FILE>positional· Required
Local file to upload

Options

--to <TO>string· Required
Destination as catalog.schema.table
--format <FORMAT>enum
Input format; inferred from the filename when omitted
Supported values
csvjsonparquet
--key <KEY>string· Required
Column name used to match existing rows

Query

altertable query

Run SQL queries against the lakehouse.

Usage

altertable query [options] <STATEMENT>
altertable query show|cancel

Arguments

<STATEMENT>positional· Required
SQL statement to run

Options

--format <FORMAT>enum
Result format: csv, jsonl, and parquet stream from the API; markdown is rendered by the CLI. Use global --json for structured JSON
Supported values
csvjsonlparquetmarkdown
--layout <LAYOUT>enum
Human layout: auto, table, or line
Supported values
autotableline
--columns <COLUMNS>string
Comma-separated columns to show
--max-width <MAX-WIDTH>string
Maximum display width for table columns
Default
32
--compute-size <COMPUTE-SIZE>enum
Compute size for the query
Supported values
XSSMLXLAUTO
Default
AUTO
--dialect <DIALECT>string
Source SQL dialect to transpile from (server default: DuckDB)
--catalog <CATALOG>string
Catalog name (optional; can also come from the session)
--schema <SCHEMA>string
Schema name (optional; can also come from the session)
--output <OUTPUT>string
Write result bytes/text to this path instead of stdout
--query-id <QUERY-ID>string
Optional stable query id
--session-id <SESSION-ID>string
Optional session id
--pager <PAGER>enum
Pager mode for human output: auto, always, or never
Supported values
autoalwaysnever
Default
auto

altertable query show

Fetch metadata for a completed or running query.

Usage

altertable query show <QUERY-ID>

Arguments

<QUERY-ID>positional· Required
Query id returned by the API

altertable query cancel

Cancel a running query.

Usage

altertable query cancel [options] <QUERY-ID>

Arguments

<QUERY-ID>positional· Required
Query id to cancel

Options

--session-id <SESSION-ID>string· Required
Session id that owns the query

altertable schema

List schemas, tables, and columns for a catalog.

Usage

altertable schema [options] <CATALOG>

Arguments

<CATALOG>positional· Required
Catalog name

Options

--format <FORMAT>enum
Serialized output format; use global --json for JSON
Supported values
csvmarkdown
--pager <PAGER>enum
Pager mode for human output: auto, always, or never
Supported values
autoalwaysnever
Default
auto

altertable duckdb

Open a DuckDB shell attached to lakehouse catalogs (all of them by default).

Usage

altertable duckdb [CATALOG]

Arguments

<CATALOG>positional
Catalog to attach (defaults to all catalogs)