---
title: CLI reference
sidebar_label: Command Line Interface
description: Command line interface (CLI) full reference of dlt
keywords: [command line interface, cli, dlt init]
---


# Command Line Interface Reference

<!-- this page is fully generated from the argparse object of dlt, do not edit -->

This page contains all commands available in the dlt CLI and is generated
automatically from the fully populated python argparse object of dlt.
:::note
Flags and positional commands are inherited from the parent command. Position within the command string
is important. For example if you want to enable debug mode on the pipeline command, you need to add the
debug flag to the base dlt command:

```cli
dlt --debug pipeline
```

Adding the flag after the pipeline keyword will not work.
:::

This page is generated from `dlthub` 0.33.0 and `dlthub-client` 0.33.1.

## `dlthub`

Creates, adds, inspects and deploys dlt pipelines. Further help is available at https://dlthub.com/docs/reference/command-line-interface.

**Usage**
```cli
dlthub [-h] [-v] [--non-interactive] [-y] [--debug] [--version]
    [--disable-telemetry] [--enable-telemetry] [--no-pwd]
    {ai,dashboard,dbt,deploy,init,job,local,login,logout,pipeline,profile,run,serve,show,variable,workspace}
    ...
```

<details>

<summary>Show Arguments and Options</summary>

**Options**
* `-h, --help` - Show this help message and exit
* `-v, --verbose` - Increase verbosity. repeat for more (-v, -vv, -vvv).
* `--non-interactive` - Use prompt defaults; fail if a prompt has none. implied when stdin is not a tty.
* `-y, --yes` - Auto-accept confirmations. free-form prompts still need defaults.
* `--debug` - Show full stack traces on exceptions.
* `--version` - Show program's version number and exit
* `--disable-telemetry` - Disables telemetry before command is executed
* `--enable-telemetry` - Enables telemetry before command is executed
* `--no-pwd` - Do not add current working directory to sys.path. by default $pwd is added to reproduce python behavior when running scripts.

**Available subcommands**
* [`ai`](#dlthub-ai) - Use ai-powered development tools and utilities
* [`dashboard`](#dlthub-dashboard) - Open the workspace dashboard in the dlthub web app (deploys a default one if missing)
* [`dbt`](#dlthub-dbt) - Dlthub dbt transformation generator
* [`deploy`](#dlthub-deploy) - Upload code and configuration, then deploy jobs
* [`init`](#dlthub-init) - Initialize a new dlthub workspace
* [`job`](#dlthub-job) - Job operations: list, info, run, serve, trigger, publish, unpublish, pause, resume, logs, cancel, runs
* [`local`](#dlthub-local) - Operations on the local workspace (run, serve, info, show, clean, schema, telemetry, pipeline)
* [`login`](#dlthub-login) - Log in to dlthub (identity only)
* [`logout`](#dlthub-logout) - Log out from dlthub
* [`pipeline`](#dlthub-pipeline) - Interact with pipelines running in dlthub
* [`profile`](#dlthub-profile) - Manage workspace profiles and environments
* [`run`](#dlthub-run) - Deploy code and configuration, then run a batch job (alias for `dlthub job run`)
* [`serve`](#dlthub-serve) - Deploy and serve an interactive data app (alias for `dlthub job serve`)
* [`show`](#dlthub-show) - Open the current workspace in the dlthub web app (alias for `dlthub workspace show`)
* [`variable`](#dlthub-variable) - Workspace variable operations: list, set, delete
* [`workspace`](#dlthub-workspace) - Workspace operations: connect, list, info, show, deploy, deployment, configuration

</details>

## `dlthub ai`

Use AI-powered development tools and utilities.

**Usage**
```cli
dlthub ai [-h] {init,mcp,rules,secrets,status,toolkit} ...
```

**Description**

Configure your LLM-enabled IDE and MCP server.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit

**Available subcommands**
* [`init`](#dlthub-ai-init) - Install initial ai rules and skills for your ai coding agent
* [`mcp`](#dlthub-ai-mcp) - Run or install the dlt mcp server
* [`rules`](#dlthub-ai-rules) - Print the rules your ai coding agent gets when a session starts
* [`secrets`](#dlthub-ai-secrets) - Manage secrets files used by dlt
* [`status`](#dlthub-ai-status) - Show ai setup status: dlt version, agent, active profile, toolkits, readiness checks
* [`toolkit`](#dlthub-ai-toolkit) - Manage ai toolkit plugins (list, info, install)

</details>

### `dlthub ai init`

Install initial AI rules and skills for your AI coding agent.

**Usage**
```cli
dlthub ai init [-h] [--agent {claude,codex,cortex,cursor}] [--location LOCATION]
    [--branch BRANCH] [--overwrite]
```

**Description**

Install initial AI rules and skills for your AI coding agent.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai`](#dlthub-ai).

**Options**
* `-h, --help` - Show this help message and exit
* `--agent {claude,cursor,codex,cortex}` - Ai coding agent to install for. auto-detected if omitted.
* `--location LOCATION` - Advanced. git url or local path of the dlthub ai harness repository. defaults to the last location given to a command, else https://github.com/dlt-hub/dlthub-ai-harness.git. an empty value resets it to the default.
* `--branch BRANCH` - Advanced. branch, tag or commit to fetch from. defaults to the last branch given with the same location, else the default branch. a tag or a commit is used once and is not recorded. an empty value resets it to the default.
* `--overwrite` - Overwrite existing files instead of skipping them. remove files that the installed version shipped and the new version does not.

</details>

### `dlthub ai mcp`

Run or install the dlt MCP server.

**Usage**
```cli
dlthub ai mcp [-h] [--stdio] [--sse] [--port PORT] [--features [FEATURES ...]]
    [--no-default-features] [--access ACCESS] [--profile NAME] {install,run} ...
```

**Description**

Run or install the dlt MCP server.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai`](#dlthub-ai).

**Positional arguments**
* `run` - Start the mcp server (default)
* `install` - Install mcp server config into the current project

**Options**
* `-h, --help` - Show this help message and exit
* `--stdio` - Use stdio transport mode
* `--sse` - Use legacy sse transport instead of streamable-http
* `--port PORT` - Port for the mcp server (default: 8000)
* `--features [FEATURES ...]` - Mcp features to enable/disable. default: context, pipeline, secrets, toolkit, workspace. use +name to add, -name to remove (e.g. --features=-secrets,+context)
* `--no-default-features` - Serve only the features named by --features, without the defaults above
* `--access ACCESS` - Access the caller was granted, as `axis:verb,verb` pairs (e.g. data:read,local:read). tools requiring more are not served. `axis:` alone grants nothing on that axis. everything is served when omitted.
* `--profile NAME` - Profile to run with.

</details>

### `dlthub ai mcp install`

Install MCP server config into the current project.

**Usage**
```cli
dlthub ai mcp install [-h] [--agent {claude,codex,cortex,cursor}] [--features
    [FEATURES ...]] [--name NAME] [--overwrite]
```

**Description**

Install MCP server config into the current project.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai mcp`](#dlthub-ai-mcp).

**Options**
* `-h, --help` - Show this help message and exit
* `--agent {claude,cursor,codex,cortex}` - Ai coding agent to install for. auto-detected if omitted.
* `--features [FEATURES ...]` - Mcp feature sets to include in the server config
* `--name NAME` - Server name in the mcp config (default: dlt-workspace)
* `--overwrite` - Overwrite existing server config instead of skipping.

</details>

### `dlthub ai mcp run`

Start the MCP server (default).

**Usage**
```cli
dlthub ai mcp run [-h] [--stdio] [--sse] [--port PORT] [--features [FEATURES
    ...]] [--no-default-features] [--access ACCESS] [--profile NAME]
```

**Description**

Start the MCP server (default).

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai mcp`](#dlthub-ai-mcp).

**Options**
* `-h, --help` - Show this help message and exit
* `--stdio` - Use stdio transport mode
* `--sse` - Use legacy sse transport instead of streamable-http
* `--port PORT` - Port for the mcp server (default: 8000)
* `--features [FEATURES ...]` - Mcp features to enable/disable. default: context, pipeline, secrets, toolkit, workspace. use +name to add, -name to remove (e.g. --features=-secrets,+context)
* `--no-default-features` - Serve only the features named by --features, without the defaults above
* `--access ACCESS` - Access the caller was granted, as `axis:verb,verb` pairs (e.g. data:read,local:read). tools requiring more are not served. `axis:` alone grants nothing on that axis. everything is served when omitted.
* `--profile NAME` - Profile to run with.

</details>

### `dlthub ai rules`

Print the rules your AI coding agent gets when a session starts.

**Usage**
```cli
dlthub ai rules [-h] [--agent {claude,codex,cortex,cursor}]
```

**Description**

Prints links to the installed rule skills for agents without rule files. Codex runs it from the session start hook that toolkit install adds.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai`](#dlthub-ai).

**Options**
* `-h, --help` - Show this help message and exit
* `--agent {claude,cursor,codex,cortex}` - Ai coding agent to print the rules for. defaults to the agent that `dlthub ai init` configured.

</details>

### `dlthub ai secrets`

Manage secrets files used by dlt.

**Usage**
```cli
dlthub ai secrets [-h] [--profile NAME] {list,update-fragment,view-redacted} ...
```

**Description**

List, view (redacted), or update secret files used by dlt providers.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai`](#dlthub-ai).

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

**Available subcommands**
* [`list`](#dlthub-ai-secrets-list) - List secret file locations from providers
* [`update-fragment`](#dlthub-ai-secrets-update-fragment) - Merge a toml fragment into the secrets file
* [`view-redacted`](#dlthub-ai-secrets-view-redacted) - Print secrets toml with all values replaced by '***'

</details>

### `dlthub ai secrets list`

List secret file locations from providers.

**Usage**
```cli
dlthub ai secrets list [-h] [--profile NAME]
```

**Description**

List secret file locations from providers.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai secrets`](#dlthub-ai-secrets).

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

</details>

### `dlthub ai secrets update-fragment`

Merge a TOML fragment into the secrets file.

**Usage**
```cli
dlthub ai secrets update-fragment [-h] --path PATH [--profile NAME] [fragment]
```

**Description**

Merge a TOML fragment into the secrets file.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai secrets`](#dlthub-ai-secrets).

**Positional arguments**
* `fragment` - Toml fragment string to merge; reads from stdin if omitted

**Options**
* `-h, --help` - Show this help message and exit
* `--path PATH` - Path to the secrets toml file to write to
* `--profile NAME` - Profile to run with.

</details>

### `dlthub ai secrets view-redacted`

Print secrets TOML with all values replaced by '***'.

**Usage**
```cli
dlthub ai secrets view-redacted [-h] [--path PATH] [--profile NAME]
```

**Description**

Without --path, shows the unified view merged from all project secret files. With --path, shows that exact file.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai secrets`](#dlthub-ai-secrets).

**Options**
* `-h, --help` - Show this help message and exit
* `--path PATH` - Show this exact file instead of the unified provider view
* `--profile NAME` - Profile to run with.

</details>

### `dlthub ai status`

Show AI setup status: dlt version, agent, active profile, toolkits, readiness checks.

**Usage**
```cli
dlthub ai status [-h]
```

**Description**

Show AI setup status: dlt version, agent, active profile, toolkits, readiness checks.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai`](#dlthub-ai).

**Options**
* `-h, --help` - Show this help message and exit

</details>

### `dlthub ai toolkit`

Manage AI toolkit plugins (list, info, install).

**Usage**
```cli
dlthub ai toolkit [-h] {info,install,list} ...
```

**Description**

Manage AI toolkit plugins (list, info, install).

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai`](#dlthub-ai).

**Positional arguments**
* `list` - List available toolkits
* `info` - Show toolkit contents and components
* `install` - Install toolkit components into project

**Options**
* `-h, --help` - Show this help message and exit

</details>

### `dlthub ai toolkit info`

Show toolkit contents and components.

**Usage**
```cli
dlthub ai toolkit info [-h] [--location LOCATION] [--branch BRANCH] [--see-all]
    [--agent {claude,codex,cortex,cursor}] name
```

**Description**

Show toolkit contents and components.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai toolkit`](#dlthub-ai-toolkit).

**Positional arguments**
* `name` - Toolkit name

**Options**
* `-h, --help` - Show this help message and exit
* `--location LOCATION` - Advanced. git url or local path of the dlthub ai harness repository. defaults to the last location given to a command, else https://github.com/dlt-hub/dlthub-ai-harness.git. an empty value resets it to the default.
* `--branch BRANCH` - Advanced. branch, tag or commit to fetch from. defaults to the last branch given with the same location, else the default branch. a tag or a commit is used once and is not recorded. an empty value resets it to the default.
* `--see-all` - Include toolkits and components that are hidden from the ai coding agent.
* `--agent {claude,cursor,codex,cortex}` - Ai coding agent whose toolkits to show. auto-detected if omitted.

</details>

### `dlthub ai toolkit install`

Install toolkit components into project.

**Usage**
```cli
dlthub ai toolkit install [-h] [--location LOCATION] [--branch BRANCH]
    [--see-all] [--agent {claude,codex,cortex,cursor}] [--overwrite] [--strict]
    name
```

**Description**

Install toolkit components into project.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai toolkit`](#dlthub-ai-toolkit).

**Positional arguments**
* `name` - Toolkit name

**Options**
* `-h, --help` - Show this help message and exit
* `--location LOCATION` - Advanced. git url or local path of the dlthub ai harness repository. defaults to the last location given to a command, else https://github.com/dlt-hub/dlthub-ai-harness.git. an empty value resets it to the default.
* `--branch BRANCH` - Advanced. branch, tag or commit to fetch from. defaults to the last branch given with the same location, else the default branch. a tag or a commit is used once and is not recorded. an empty value resets it to the default.
* `--see-all` - Include toolkits and components that are hidden from the ai coding agent.
* `--agent {claude,cursor,codex,cortex}` - Ai coding agent to install for. auto-detected if omitted.
* `--overwrite` - Overwrite existing files instead of skipping them. remove files that the installed version shipped and the new version does not.
* `--strict` - Fail on validation warnings (invalid frontmatter, etc.).

</details>

### `dlthub ai toolkit list`

List available toolkits.

**Usage**
```cli
dlthub ai toolkit list [-h] [--location LOCATION] [--branch BRANCH] [--see-all]
    [--agent {claude,codex,cortex,cursor}]
```

**Description**

List available toolkits.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub ai toolkit`](#dlthub-ai-toolkit).

**Options**
* `-h, --help` - Show this help message and exit
* `--location LOCATION` - Advanced. git url or local path of the dlthub ai harness repository. defaults to the last location given to a command, else https://github.com/dlt-hub/dlthub-ai-harness.git. an empty value resets it to the default.
* `--branch BRANCH` - Advanced. branch, tag or commit to fetch from. defaults to the last branch given with the same location, else the default branch. a tag or a commit is used once and is not recorded. an empty value resets it to the default.
* `--see-all` - Include toolkits and components that are hidden from the ai coding agent.
* `--agent {claude,cursor,codex,cortex}` - Ai coding agent whose toolkits to show. auto-detected if omitted.

</details>

## `dlthub dashboard`

Open the workspace dashboard in the dltHub web app (deploys a default one if missing).

**Usage**
```cli
dlthub dashboard [-h] [--environment NAME]
```

**Description**

Open the workspace dashboard of the current remote workspace, and deploy a default dashboard if none exists.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

## `dlthub dbt`

dlthub dbt transformation generator.

**Usage**
```cli
dlthub dbt [-h] [--profile NAME] {generate} ...
```

**Description**

dlthub dbt transformation generator.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

**Available subcommands**
* [`generate`](#dlthub-dbt-generate) - Generate dbt project

</details>

### `dlthub dbt generate`

Generate dbt project.

**Usage**
```cli
dlthub dbt generate [-h] [--include_dlt_tables] [--fact [FACT]] [--force]
    [--mart_table_prefix [MART_TABLE_PREFIX]] [--profile NAME] pipeline_name
```

**Description**

Generate dbt project.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub dbt`](#dlthub-dbt).

**Positional arguments**
* `pipeline_name` - The pipeline to create a dbt project for

**Options**
* `-h, --help` - Show this help message and exit
* `--include_dlt_tables` - Do not render _dlt tables
* `--fact [FACT]` - Create a fact table for a given table
* `--force` - Force overwrite of existing files
* `--mart_table_prefix [MART_TABLE_PREFIX]` - Prefix for mart tables
* `--profile NAME` - Profile to run with.

</details>

## `dlthub deploy`

Upload code and configuration, then deploy jobs.

**Usage**
```cli
dlthub deploy [-h] [--timestamps] [--deployment DEPLOYMENT] [--dry-run]
    [--show-manifest] [--show-requirements] [--environment NAME]
```

**Description**

Upload the workspace files and the configuration. Then generate the deployment manifest from the deployment module, and reconcile the jobs with the runtime. Use --dry-run to preview the changes.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit
* `--timestamps` - Show exact iso timestamps and precise durations (for example 1.291 s) instead of humanized relative times.
* `--deployment DEPLOYMENT` - Python file to generate the deployment manifest from, instead of the default deployment module
* `--dry-run` - Preview changes without applying them
* `--show-manifest` - Dump the expanded deployment manifest as yaml and exit
* `--show-requirements` - Dump the requirements, which the deployment uploads with the code, as json and exit. this option needs no login.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

## `dlthub init`

Initialize a new dlthub workspace.

**Usage**
```cli
dlthub init [-h] [--name NAME] [--overwrite | --skip] [--dependencies
    {auto,pyproject,requirements}] [--dry-run] [--agent
    [{auto,claude,codex,cortex,cursor}]]
```

**Description**

Creates local workspace files: config, secrets, gitignore and Python pyproject/requirements. In an existing Python project, adds the missing .gitignore entries and the missing or outdated dependencies. Shows these changes and asks for confirmation first. `-y` accepts the changes without asking. Refuses to run in an existing workspace.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit
* `--name NAME` - Workspace name (defaults to current directory basename).
* `--overwrite` - Overwrite existing pyproject.toml/requirements.txt and .gitignore instead of merging into them. shows what it overwrites and asks for confirmation first. dlt never overwrites config.toml and secrets.toml.
* `--skip` - Keep existing files as they are and create only the missing ones, without asking.
* `--dependencies {auto,pyproject,requirements}` - Dependency file to scaffold. `auto` (default) uses pyproject.toml when uv is on path and requirements.txt otherwise. `pyproject` / `requirements` force the choice.
* `--dry-run` - Print the full file plan without writing anything.
* `--agent [{auto,claude,cursor,codex,cortex}]` - Configure an ai coding agent after dlt creates the workspace. dlt installs its rules and skills and selects the workspace dependencies that it needs. without a name, dlt detects the coding agent. without this option, dlt configures no coding agent.

</details>

## `dlthub job`

Job operations: list, info, run, serve, trigger, publish, unpublish, pause, resume, logs, cancel, runs.

**Usage**
```cli
dlthub job [-h] [--timestamps] [--environment NAME]
    {cancel,info,list,logs,pause,publish,resume,run,runs,serve,show,trigger,unpublish}
    ...
```

**Description**

List and operate on jobs registered in the connected workspace, plus their runs.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit
* `--timestamps` - Show exact iso timestamps and precise durations (for example 1.291 s) instead of humanized relative times.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

**Available subcommands**
* [`cancel`](#dlthub-job-cancel) - Cancel active runs for matching jobs
* [`info`](#dlthub-job-info) - Show job info
* [`list`](#dlthub-job-list) - List jobs (filter with selectors: batch, schedule:*, tag:ops, ...)
* [`logs`](#dlthub-job-logs) - Show the logs of the latest or selected job run
* [`pause`](#dlthub-job-pause) - Pause the schedule of one or more jobs
* [`publish`](#dlthub-job-publish) - Create or delete the public link of an interactive data app
* [`resume`](#dlthub-job-resume) - Resume the schedule of one or more jobs
* [`run`](#dlthub-job-run) - Deploy code and configuration, then run a batch job
* [`runs`](#dlthub-job-runs) - Manage job runs: list, info, logs, cancel
* [`serve`](#dlthub-job-serve) - Deploy and serve an interactive data app
* [`show`](#dlthub-job-show) - Open the job page in the dlthub web app
* [`trigger`](#dlthub-job-trigger) - Start job runs for the jobs that match the selectors, without an upload or a deployment
* [`unpublish`](#dlthub-job-unpublish) - Delete the public link of an interactive data app

</details>

### `dlthub job cancel`

Cancel active runs for matching jobs.

**Usage**
```cli
dlthub job cancel [-h] [--dry-run] [--environment NAME] selector_or_job_name
    [selector_or_job_name ...]
```

**Description**

Cancel active (non-terminal) runs for jobs matching selectors or names. Multiple values cancel active runs for all matching jobs. Use --dry-run to preview.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selector_or_job_name` - Job name, job file path or selector (for example batch, schedule:*).

**Options**
* `-h, --help` - Show this help message and exit
* `--dry-run` - Show the job runs to cancel, but do not cancel them
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job info`

Show job info.

**Usage**
```cli
dlthub job info [-h] [--environment NAME] [selector_or_job_name]
```

**Description**

Show detailed information about the job.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selector_or_job_name` - Job name, job file path or selector of the job

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job list`

List jobs (filter with selectors: batch, schedule:*, tag:ops, ...).

**Usage**
```cli
dlthub job list [-h] [--archived] [--environment NAME] [selector_or_job_name
    ...]
```

**Description**

List jobs registered in the workspace. Pass selectors to filter: batch, interactive, schedule:*, tag:&lt;name&gt;, manual:* and more.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selector_or_job_name` - Selector(s) or job name(s) used to filter the listing

**Options**
* `-h, --help` - Show this help message and exit
* `--archived` - Include archived jobs in the listing (hidden by default)
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job logs`

Show the logs of the latest or selected job run.

**Usage**
```cli
dlthub job logs [-h] [-f] [--environment NAME] selector_or_job_name [run_number]
```

**Description**

Show the logs of the latest run of a job, or of a specific run number. Use -f/--follow to stream the logs in real time.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selector_or_job_name` - Run id, or a job name, job file path or selector (for example batch, schedule:*).
* `run_number` - Run number (optional, not allowed with a run id)

**Options**
* `-h, --help` - Show this help message and exit
* `-f, --follow` - Follow the logs in real time until the run ends
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job pause`

Pause the schedule of one or more jobs.

**Usage**
```cli
dlthub job pause [-h] [--environment NAME] selector_or_job_name
    [selector_or_job_name ...]
```

**Description**

Pause the schedule of every job matching the given names, refs or selectors (batch, schedule:*, tag:ops, ...). Only jobs with a schedule can be paused.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selector_or_job_name` - Job names, job file paths, job refs, or selectors.

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job publish`

Create or delete the public link of an interactive data app.

**Usage**
```cli
dlthub job publish [-h] [--cancel] [--environment NAME] job_path
```

**Description**

Create the public link of a data app, or delete it with --cancel.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `job_path` - Job file path of the data app

**Options**
* `-h, --help` - Show this help message and exit
* `--cancel` - Delete the public link of the data app
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job resume`

Resume the schedule of one or more jobs.

**Usage**
```cli
dlthub job resume [-h] [--environment NAME] selector_or_job_name
    [selector_or_job_name ...]
```

**Description**

Resume the schedule of every job matching the given names, refs or selectors (batch, schedule:*, tag:ops, ...). The first run covers the whole period the job was paused for.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selector_or_job_name` - Job names, job file paths, job refs, or selectors.

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job run`

Deploy code and configuration, then run a batch job.

**Usage**
```cli
dlthub job run [-h] [--deployment DEPLOYMENT] [--timestamps] [-f] [--refresh]
    [--job-ref REF] [--environment NAME] [selector_or_job_ref]
```

**Description**

Deploy the current workspace and run a batch job remotely. Use -f/--follow to stream the logs until the job run ends. You can also pass a plain `.py` file. If the file exposes no jobs, dlt deploys it and runs it remotely as a job.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selector_or_job_ref` - Selector or job ref that picks a job from the deployment manifest, or the path of a `.py` file to deploy and run as a job

**Options**
* `-h, --help` - Show this help message and exit
* `--deployment DEPLOYMENT` - Python file to generate the deployment manifest from, instead of the default deployment module
* `--timestamps` - Show exact iso timestamps and precise durations (for example 1.291 s) instead of humanized relative times.
* `-f, --follow` - Follow the status changes and stream the logs until the run ends
* `--refresh` - Re-run from scratch (full reload). cascades to freshness-graph downstream jobs.
* `--job-ref REF` - Pick this job from the matched candidate set when the selector matches multiple jobs. if ref is not in the matched set, the command fails.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job runs`

Manage job runs: list, info, logs, cancel.

**Usage**
```cli
dlthub job runs [-h] [--environment NAME] {cancel,info,list,logs,result,show}
    ...
```

**Description**

Operate on runs of a job: list runs, show info, stream logs, cancel.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

**Available subcommands**
* [`cancel`](#dlthub-job-runs-cancel) - Cancel the latest or selected job run
* [`info`](#dlthub-job-runs-info) - Show job run info
* [`list`](#dlthub-job-runs-list) - List job runs (filter with a selector: batch, schedule:*, ...)
* [`logs`](#dlthub-job-runs-logs) - Show the logs of the latest or selected job run
* [`result`](#dlthub-job-runs-result) - Show the job result a run declared (from telemetry)
* [`show`](#dlthub-job-runs-show) - Open the job run page in the dlthub web app

</details>

### `dlthub job runs cancel`

Cancel the latest or selected job run.

**Usage**
```cli
dlthub job runs cancel [-h] [--environment NAME] selector_or_job_name
    [run_number]
```

**Description**

Cancel the latest or selected job run.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job runs`](#dlthub-job-runs).

**Positional arguments**
* `selector_or_job_name` - Run id, or a job name, job file path or selector
* `run_number` - Run number (default: latest, not allowed with a run id)

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job runs info`

Show job run info.

**Usage**
```cli
dlthub job runs info [-h] [--environment NAME] selector_or_job_name [run_number]
```

**Description**

Show detailed information about the job run.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job runs`](#dlthub-job-runs).

**Positional arguments**
* `selector_or_job_name` - Run id, or a job name, job file path or selector
* `run_number` - Run number (default: latest, not allowed with a run id)

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job runs list`

List job runs (filter with a selector: batch, schedule:*, ...).

**Usage**
```cli
dlthub job runs list [-h] [--running] [--environment NAME]
    [selector_or_job_name]
```

**Description**

List job runs registered in the workspace. Pass a selector to filter by matching jobs.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job runs`](#dlthub-job-runs).

**Positional arguments**
* `selector_or_job_name` - Selector or job name to filter runs by

**Options**
* `-h, --help` - Show this help message and exit
* `--running` - Show only runs that are not in a terminal state
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job runs logs`

Show the logs of the latest or selected job run.

**Usage**
```cli
dlthub job runs logs [-h] [-f] [--environment NAME] selector_or_job_name
    [run_number]
```

**Description**

Show the logs of the latest or selected job run. Use -f/--follow to stream the logs in real time until the run ends.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job runs`](#dlthub-job-runs).

**Positional arguments**
* `selector_or_job_name` - Run id, or a job name, job file path or selector
* `run_number` - Run number (default: latest, not allowed with a run id)

**Options**
* `-h, --help` - Show this help message and exit
* `-f, --follow` - Follow the logs in real time until the run ends
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job runs result`

Show the job result a run declared (from telemetry).

**Usage**
```cli
dlthub job runs result [-h] [--json] [--only-payload] [--environment NAME]
    selector_or_job_name [run_number]
```

**Description**

Show the structured job result that the run delivered: its type, job, engine version, objects and payload.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job runs`](#dlthub-job-runs).

**Positional arguments**
* `selector_or_job_name` - Run id, or a job name, job file path or selector
* `run_number` - Run number (default: latest, not allowed with a run id)

**Options**
* `-h, --help` - Show this help message and exit
* `--json` - Print the job result as json
* `--only-payload` - Print only the result payload, as json
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job runs show`

Open the job run page in the dltHub web app.

**Usage**
```cli
dlthub job runs show [-h] [--environment NAME] selector_or_job_name [run_number]
```

**Description**

Print the URL of the job run page in the dltHub web app and open it in a browser when interactive.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job runs`](#dlthub-job-runs).

**Positional arguments**
* `selector_or_job_name` - Run id, or a job name, job file path or selector
* `run_number` - Run number (default: latest, not allowed with a run id)

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job serve`

Deploy and serve an interactive data app.

**Usage**
```cli
dlthub job serve [-h] [--deployment DEPLOYMENT] [--timestamps] [-f] [--job-ref
    REF] [--environment NAME] [selector_or_job_ref]
```

**Description**

Deploy the current workspace and serve an interactive job as a read-only data app. You can also pass a plain `.py` file, for example a marimo notebook, a Streamlit app or a FastMCP server. dlt deploys it and serves it remotely as a job.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selector_or_job_ref` - Selector or job ref that picks an interactive job from the deployment manifest, or the path of a `.py` file to deploy and serve as a job

**Options**
* `-h, --help` - Show this help message and exit
* `--deployment DEPLOYMENT` - Python file to generate the deployment manifest from, instead of the default deployment module
* `--timestamps` - Show exact iso timestamps and precise durations (for example 1.291 s) instead of humanized relative times.
* `-f, --follow` - Stream the logs until the data app stops
* `--job-ref REF` - Pick this job from the matched candidate set when the selector matches multiple jobs. if ref is not in the matched set, the command fails.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job show`

Open the job page in the dltHub web app.

**Usage**
```cli
dlthub job show [-h] [--environment NAME] [selector_or_job_name]
```

**Description**

Print the URL of the job page in the dltHub web app and open it in a browser when interactive.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selector_or_job_name` - Job name, job file path or selector of the job

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job trigger`

Start job runs for the jobs that match the selectors, without an upload or a deployment.

**Usage**
```cli
dlthub job trigger [-h] [--dry-run] [--refresh] [--environment NAME] selectors
    [selectors ...]
```

**Description**

Start job runs for the jobs that match the given selectors. Only deployed jobs match. The command does not upload code or deploy jobs. Examples: 'tag:backfill', 'manual:jobs.etl.*', 'schedule:*'.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `selectors` - Trigger selectors (fnmatch patterns), for example 'tag:backfill', 'manual:jobs.etl.*'

**Options**
* `-h, --help` - Show this help message and exit
* `--dry-run` - Preview matched jobs without creating runs
* `--refresh` - Refresh every job that starts. a job that a freshness check skips gets no refresh.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub job unpublish`

Delete the public link of an interactive data app.

**Usage**
```cli
dlthub job unpublish [-h] [--environment NAME] job_path
```

**Description**

Delete the public link of an interactive data app.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub job`](#dlthub-job).

**Positional arguments**
* `job_path` - Job file path of the data app

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

## `dlthub local`

Operations on the local Workspace (run, serve, info, show, clean, schema, telemetry, pipeline).

**Usage**
```cli
dlthub local [-h] {clean,info,pipeline,profile,run,schema,serve,show,telemetry}
    ...
```

**Description**

Local-only operations on the current workspace.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit

**Available subcommands**
* [`clean`](#dlthub-local-clean) - Remove the state and data folders of the active profile: locally loaded data and pipeline working directories. remote destinations are not affected.
* [`info`](#dlthub-local-info) - Display detailed local workspace info
* [`pipeline`](#dlthub-local-pipeline) - Local pipeline operations (info, drop, sync, load-package, etc.)
* [`profile`](#dlthub-local-profile) - Profile operations that affect only the local workspace
* [`run`](#dlthub-local-run) - Run a single batch workspace job locally
* [`schema`](#dlthub-local-schema) - Shows, converts and upgrades schemas
* [`serve`](#dlthub-local-serve) - Serve an interactive workspace job locally (notebook, dashboard, app)
* [`show`](#dlthub-local-show) - Show workspace dashboard
* [`telemetry`](#dlthub-local-telemetry) - Shows telemetry status

</details>

### `dlthub local clean`

Remove the state and data folders of the active profile: locally loaded data and pipeline working directories. Remote destinations are not affected.

**Usage**
```cli
dlthub local clean [-h] [--skip-local-data-dir] [--profile NAME]
```

**Description**

Remove the state and data folders of the active profile: locally loaded data and pipeline working directories. Remote destinations are not affected.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local`](#dlthub-local).

**Options**
* `-h, --help` - Show this help message and exit
* `--skip-local-data-dir` - Does not delete locally loaded data but removes pipeline working dirs.
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local info`

Display detailed local workspace info.

**Usage**
```cli
dlthub local info [-h] [--show-manifest] [--show-requirements] [--profile NAME]
```

**Description**

Display detailed local workspace info.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local`](#dlthub-local).

**Options**
* `-h, --help` - Show this help message and exit
* `--show-manifest` - Print only the expanded deployment manifest, as yaml
* `--show-requirements` - Print only the requirements manifest that a deployment uploads, as json
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline`

Local pipeline operations (info, drop, sync, load-package, etc.).

**Usage**
```cli
dlthub local pipeline [-h] [--pipelines-dir PIPELINES_DIR] [--profile NAME]
    {abort-packages,drop,drop-pending-packages,failed-jobs,info,list,load-package,run,schema,show,sync,trace}
    ...
```

**Description**

Local pipeline operations (info, drop, sync, load-package, etc.).

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local`](#dlthub-local).

**Options**
* `-h, --help` - Show this help message and exit
* `--pipelines-dir PIPELINES_DIR` - Pipelines working directory
* `--profile NAME` - Profile to run with.

**Available subcommands**
* [`abort-packages`](#dlthub-local-pipeline-abort-packages) - Safely cancels pending loads: marks packages as aborted, records failed jobs, then resyncs pipeline state from the destination.
* [`drop`](#dlthub-local-pipeline-drop) - Selectively drop tables and reset state
* [`drop-pending-packages`](#dlthub-local-pipeline-drop-pending-packages) - [deprecated: use abort-packages] deletes all extracted and normalized packages including those that are partially loaded.
* [`failed-jobs`](#dlthub-local-pipeline-failed-jobs) - Displays information on all the failed loads in all completed packages, failed jobs and associated error messages
* [`info`](#dlthub-local-pipeline-info) - Displays state of the pipeline, use -v or -vv for more info
* [`list`](#dlthub-local-pipeline-list) - List local pipelines
* [`load-package`](#dlthub-local-pipeline-load-package) - Displays information on a load package or acts on it (abort, fail-job, ...).
* [`run`](#dlthub-local-pipeline-run) - Run a job by pipeline name
* [`schema`](#dlthub-local-pipeline-schema) - Displays default schema
* [`show`](#dlthub-local-pipeline-show) - Generates and launches workspace dashboard with the loading status and dataset explorer
* [`sync`](#dlthub-local-pipeline-sync) - Drops the local state of the pipeline and resets all the schemas and restores it from destination. the destination state, data and schemas are left intact.
* [`trace`](#dlthub-local-pipeline-trace) - Displays last run trace, use -v or -vv for more info

</details>

### `dlthub local pipeline abort-packages`

Safely cancels pending loads: marks packages as aborted, records failed jobs, then resyncs pipeline state from the destination.

**Usage**
```cli
dlthub local pipeline abort-packages [-h] [--profile NAME] [pipeline_name]
```

**Description**

Use this when a load is stuck or you want to discard pending work without losing track of what
happened. The oldest normalized package (the one being loaded) is aborted: its retry/pending
jobs move to failed_jobs so they stay visible in `failed-jobs` output and the package completes
as aborted. All other pending packages, extracted ones included, are deleted. It then
restores local pipeline state and schemas from the snapshot
taken when the oldest pending package started and you can safely re-extract and re-run.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline drop`

Selectively drop tables and reset state.

**Usage**
```cli
dlthub local pipeline drop [-h] [--destination DESTINATION] [--dataset-name
    DATASET_NAME] [--drop-all] [--state-paths [STATE_PATHS ...]] [--schema
    SCHEMA_NAME] [--state-only] [--profile NAME] [pipeline_name] [resources ...]
```

**Description**

Selectively drop tables and reset state.

```cli
dlt pipeline <pipeline_name> drop [resource_1] [resource_2]
```

Drops tables generated by selected resources and resets the state associated with them. Mainly used
to force a full refresh on selected tables. In the example below, we drop all tables generated by
the `repo_events` resource in the GitHub pipeline:

```cli
dlt pipeline github_events drop repo_events
```

`dlt` will inform you of the names of dropped tables and the resource state slots that will be
reset:

```text
About to drop the following data in dataset airflow_events_1 in destination dlt.destinations.duckdb:
Selected schema:: github_repo_events
Selected resource(s):: ['repo_events']
Table(s) to drop:: ['issues_event', 'fork_event', 'pull_request_event', 'pull_request_review_event', 'pull_request_review_comment_event', 'watch_event', 'issue_comment_event', 'push_event__payload__commits', 'push_event']
Resource(s) state to reset:: ['repo_events']
Source state path(s) to reset:: []
Do you want to apply these changes? [y/N]
```

As a result of the command above the following will happen:

1. All the indicated tables will be dropped in the destination. Note that `dlt` drops the nested
   tables as well.
2. All the indicated tables will be removed from the indicated schema.
3. The state for the resource `repo_events` was found and will be reset.
4. New schema and state will be stored in the destination.

The `drop` command accepts several advanced settings:

1. You can use regexes to select resources. Prepend the `re:` string to indicate a regex pattern. The example
   below will select all resources starting with `repo`:

```cli
dlt pipeline github_events drop "re:^repo"
```

2. You can drop all tables in the indicated schema:

```cli
dlt pipeline chess drop --drop-all
```

3. You can indicate additional state slots to reset by passing JsonPath to the source state. In the example
   below, we reset the `archives` slot in the source state:

```cli
dlt pipeline chess_pipeline drop --state-paths archives
```

This will select the `archives` key in the `chess` source.

```json
{
  "sources":{
    "chess": {
      "archives": [
        "https://api.chess.com/pub/player/magnuscarlsen/games/2022/05"
      ]
    }
  }
}
```

**This command is still experimental** and the interface will most probably change.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name
* `resources` - One or more resources to drop. can be exact resource name(s) or regex pattern(s). regex patterns must start with re:

**Options**
* `-h, --help` - Show this help message and exit
* `--destination DESTINATION` - Sync from this destination when local pipeline state is missing.
* `--dataset-name DATASET_NAME` - Dataset name to sync from when local pipeline state is missing.
* `--drop-all` - Drop all resources found in schema. supersedes [resources] argument.
* `--state-paths [STATE_PATHS ...]` - State keys or json paths to drop
* `--schema SCHEMA_NAME` - Schema name to drop from (if other than default schema).
* `--state-only` - Only wipe state for matching resources without dropping tables.
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline drop-pending-packages`

[Deprecated: use abort-packages] Deletes all extracted and normalized packages including those that are partially loaded.

**Usage**
```cli
dlthub local pipeline drop-pending-packages [-h] [--profile NAME]
    [pipeline_name]
```

**Description**

DEPRECATED: use `abort-packages` instead. That command properly records failed jobs
and resyncs pipeline state from the destination.

Removes all extracted and normalized packages in the pipeline's working dir.
`dlt` keeps extracted and normalized load packages in the pipeline working directory. When the `run` method is called, it will attempt to normalize and load
pending packages first. This command removes such packages. Note that **pipeline state** is not reverted to the state at which the deleted packages
were created. Using the `sync` sub-command is recommended if your destination supports state sync.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline failed-jobs`

Displays information on all the failed loads in all completed packages, failed jobs and associated error messages.

**Usage**
```cli
dlthub local pipeline failed-jobs [-h] [--profile NAME] [pipeline_name]
```

**Description**

This command scans all the load packages looking for failed jobs and then displays information on
files that got loaded and the failure message from the destination.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline info`

Displays state of the pipeline, use -v or -vv for more info.

**Usage**
```cli
dlthub local pipeline info [-h] [--profile NAME] [pipeline_name]
```

**Description**

Displays the content of the working directory of the pipeline: dataset name, destination, list of
schemas, resources in schemas, list of completed and normalized load packages, and optionally a
pipeline state set by the resources during the extraction process.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline list`

List local pipelines.

**Usage**
```cli
dlthub local pipeline list [-h] [--profile NAME]
```

**Description**

List pipelines in the working directory.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline load-package`

Displays information on a load package or acts on it (abort, fail-job, ...).

**Usage**
```cli
dlthub local pipeline load-package [-h] [--profile NAME] [pipeline_name]
    [load-id] [{abort,fail-job,info,job,row-counts}] [job]
```

**Description**

Shows information on a load package with a given `load_id`, or runs an action on it. The `load_id`
parameter defaults to the most recent package. Package information includes its state
(`COMPLETED/PROCESSED`) and list of all jobs in a package with their statuses, file sizes, types,
and in case of failed jobs—the error messages from the destination. With the verbose flag set
(`-v`), you can also see the list of all tables and columns created at the destination during the
loading of that package.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name
* `load-id` - Load id of completed or normalized package. defaults to the most recent package.
* `job` - Pattern for the `job` action, or job id / file name for `fail-job`.

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline run`

Run a job by pipeline name.

**Usage**
```cli
dlthub local pipeline run [-h] [--job-ref REF] [--refresh] [--dry-run]
    [--profile NAME] pipeline_name
```

**Description**

Run the job whose `deliver.pipeline_name` matches. Use --job-ref when multiple jobs target the same pipeline.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name to match against `deliver.pipeline_name`

**Options**
* `-h, --help` - Show this help message and exit
* `--job-ref REF` - Narrow to this job when multiple jobs deliver to the same pipeline
* `--refresh` - Request a refresh run. honored unless the job declares refresh_propagation=block.
* `--dry-run` - Resolve the job and print the entry point without launching
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline schema`

Displays default schema.

**Usage**
```cli
dlthub local pipeline schema [-h] [--format {dbml,dot,json,mermaid,yaml}]
    [--remove-defaults] [--profile NAME] [pipeline_name]
```

**Description**

Displays the default schema for the selected pipeline.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name

**Options**
* `-h, --help` - Show this help message and exit
* `--format {json,yaml,dbml,dot,mermaid}` - Display schema in this format
* `--remove-defaults` - Does not show default hint values
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline show`

Generates and launches workspace dashboard with the loading status and dataset explorer.

**Usage**
```cli
dlthub local pipeline show [-h] [--edit] [--profile NAME] [pipeline_name]
```

**Description**

Launches the workspace dashboard with a comprehensive interface to inspect the pipeline state, schemas, and data in the destination.

This dashboard should be executed from the same folder from which you ran the pipeline script to be able access destination credentials.

If the --edit flag is used, will launch the editable version of the dashboard if it exists in the current directory, or create this version and launch it in edit mode.

Requires `marimo` to be installed in the current environment: `pip install marimo`.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name

**Options**
* `-h, --help` - Show this help message and exit
* `--edit` - Creates editable version of workspace dashboard in current directory if it does not exist there yet and launches it in edit mode.
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline sync`

Drops the local state of the pipeline and resets all the schemas and restores it from destination. The destination state, data and schemas are left intact.

**Usage**
```cli
dlthub local pipeline sync [-h] [--destination DESTINATION] [--dataset-name
    DATASET_NAME] [--profile NAME] [pipeline_name]
```

**Description**

This command will remove the pipeline working directory with all pending packages, not synchronized
state changes, and schemas and retrieve the last synchronized data from the destination. If you drop
the dataset the pipeline is loading to, this command results in a complete reset of the pipeline state.

In case of a pipeline without a working directory, this command may be used to create one from the
destination. In order to do that, you need to pass the dataset name and destination name to the CLI
and provide the credentials to connect to the destination (i.e., in `.dlt/secrets.toml`) placed in the
folder where you run it.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name

**Options**
* `-h, --help` - Show this help message and exit
* `--destination DESTINATION` - Sync from this destination when local pipeline state is missing.
* `--dataset-name DATASET_NAME` - Dataset name to sync from when local pipeline state is missing.
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local pipeline trace`

Displays last run trace, use -v or -vv for more info.

**Usage**
```cli
dlthub local pipeline trace [-h] [--steps {extract,load,normalize}
    [{extract,load,normalize} ...]] [--profile NAME] [pipeline_name] [action]
```

**Description**

Displays the trace of the last pipeline run containing the start date of the run, elapsed time, and the
same information for all the steps (`extract`, `normalize`, and `load`). If any of the steps failed,
you'll see the message of the exceptions that caused that problem. Successful `load` and `run` steps
will display the load info instead.

With `metrics`, displays the files, rows and sizes of each step by table, and by resource for
`extract`. With the verbose flag set (`-v`), it displays each file instead. Use `--steps` to
select the steps.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local pipeline`](#dlthub-local-pipeline).

**Positional arguments**
* `pipeline_name` - Pipeline name
* `action` - `metrics`: files, rows and sizes of each step.

**Options**
* `-h, --help` - Show this help message and exit
* `--steps {extract,normalize,load} [{extract,normalize,load} ...]` - Steps to display metrics for. defaults to all.
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local profile`

Profile operations that affect only the local workspace.

**Usage**
```cli
dlthub local profile [-h] {use} ...
```

**Description**

Profile operations scoped to the local workspace.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local`](#dlthub-local).

**Options**
* `-h, --help` - Show this help message and exit

**Available subcommands**
* [`use`](#dlthub-local-profile-use) - Make a profile the active profile. local commands run with it until you make another profile active.

</details>

### `dlthub local profile use`

Make a profile the active profile. Local commands run with it until you make another profile active.

**Usage**
```cli
dlthub local profile use [-h] [profile_name]
```

**Description**

Make a profile the active profile. Local commands run with it until you make another profile active.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local profile`](#dlthub-local-profile).

**Positional arguments**
* `profile_name` - Profile name. omit it to show the active profile.

**Options**
* `-h, --help` - Show this help message and exit

</details>

### `dlthub local run`

Run a single batch workspace job locally.

**Usage**
```cli
dlthub local run [-h] [--deployment FILE] [--job-ref REF] [--dry-run] [-c
    KEY=VALUE] [--start ISO] [--end ISO] [--refresh] [--profile NAME]
    [selector_or_job_ref]
```

**Description**

Run one batch job by selector or job ref. A plain `.py` path is run as a regular script.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local`](#dlthub-local).

**Positional arguments**
* `selector_or_job_ref` - Job ref, trigger selector (tag:..., schedule:*), or a .py file to run as a script.

**Options**
* `-h, --help` - Show this help message and exit
* `--deployment FILE` - Path to a .py deployment module. defaults to the deployment module of the environment, else \_\_deployment\_\_.py.
* `--job-ref REF` - Pick this job when the selector matches multiple jobs.
* `--dry-run` - Resolve the job and print the entry point without launching
* `-c KEY=VALUE, --config KEY=VALUE` - Config key=value pairs passed to the job (repeatable)
* `--start ISO` - Override interval start (iso 8601). naive values use the job's timezone.
* `--end ISO` - Override interval end (iso 8601). defaults to now if --start is set.
* `--refresh` - Request a refresh run.
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local schema`

Shows, converts and upgrades schemas.

**Usage**
```cli
dlthub local schema [-h] [--format {dbml,dot,json,mermaid,yaml}]
    [--remove-defaults] file
```

**Description**

Loads, validates and prints out a dlt schema from a yaml or json file.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local`](#dlthub-local).

**Positional arguments**
* `file` - Schema file name, in yaml or json format, will autodetect based on extension

**Options**
* `-h, --help` - Show this help message and exit
* `--format {json,yaml,dbml,dot,mermaid}` - Display schema in this format
* `--remove-defaults` - Does not show default hint values

</details>

### `dlthub local serve`

Serve an interactive workspace job locally (notebook, dashboard, app).

**Usage**
```cli
dlthub local serve [-h] [--deployment FILE] [--job-ref REF] [--dry-run] [-c
    KEY=VALUE] [--profile NAME] [selector_or_job_ref]
```

**Description**

Serve one interactive job (marimo, Streamlit, FastMCP, ...). Same selector / `--job-ref` semantics as `dlthub local run`.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local`](#dlthub-local).

**Positional arguments**
* `selector_or_job_ref` - Job ref, trigger selector (tag:..., schedule:*), or a .py file to run as a script.

**Options**
* `-h, --help` - Show this help message and exit
* `--deployment FILE` - Path to a .py deployment module. defaults to the deployment module of the environment, else \_\_deployment\_\_.py.
* `--job-ref REF` - Pick this job when the selector matches multiple jobs.
* `--dry-run` - Resolve the job and print the entry point without launching
* `-c KEY=VALUE, --config KEY=VALUE` - Config key=value pairs passed to the job (repeatable)
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local show`

Show workspace dashboard.

**Usage**
```cli
dlthub local show [-h] [--edit] [--profile NAME]
```

**Description**

Show workspace dashboard.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local`](#dlthub-local).

**Options**
* `-h, --help` - Show this help message and exit
* `--edit` - Eject dashboard and start editable version
* `--profile NAME` - Profile to run with.

</details>

### `dlthub local telemetry`

Shows telemetry status.

**Usage**
```cli
dlthub local telemetry [-h] [--profile NAME]
```

**Description**

Shows the current status of dlt telemetry. Learn more about telemetry and what we send in our telemetry docs.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub local`](#dlthub-local).

**Options**
* `-h, --help` - Show this help message and exit
* `--profile NAME` - Profile to run with.

</details>

## `dlthub login`

Log in to dltHub (identity only).

**Usage**
```cli
dlthub login [-h] [--resume DEVICE_CODE] [--device]
```

**Description**

Log in to dltHub. The login authenticates the current user and does not connect a workspace. To connect the local workspace to a remote workspace, run `dlthub workspace connect`. By default, the login opens your browser. On a remote session, use `--device` for the device-code flow.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit
* `--resume DEVICE_CODE` - Resume a device flow login that `dlthub login` started. `dlthub login` prints the device_code when no terminal is attached.
* `--device` - Force the device authorization flow instead of the default browser loopback login.

</details>

## `dlthub logout`

Log out from dltHub.

**Usage**
```cli
dlthub logout [-h]
```

**Description**

Log out from dltHub.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit

</details>

## `dlthub pipeline`

Interact with pipelines running in dlthub.

**Usage**
```cli
dlthub pipeline [-h] {init,run,show,update} ...
```

**Description**

Create, run, inspect and monitor pipelines at dltHub.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit

**Available subcommands**
* [`init`](#dlthub-pipeline-init) - Creates a pipeline in the current folder by adding existing verified source or creating a new one from template.
* [`run`](#dlthub-pipeline-run) - Run a job by pipeline name
* [`show`](#dlthub-pipeline-show) - Open the pipeline observability view in the dlthub web app
* [`update`](#dlthub-pipeline-update) - Update verified source to the newest version

</details>

### `dlthub pipeline init`

Creates a pipeline in the current folder by adding existing verified source or creating a new one from template.

**Usage**
```cli
dlthub pipeline init [-h] [--list-sources] [--list-init-templates] [--update]
    [--reinstall | --on-conflict {keep-current,keep-incoming,skip}]
    [--list-destinations] [--location LOCATION] [--branch BRANCH] [--eject]
    [source] [destination]
```

**Description**

This command creates a new dlt pipeline script that loads data from `source` to `destination`. When you run the command, several things happen:

1. Creates a basic project structure if the current folder is empty by adding `.dlt/config.toml`, `.dlt/secrets.toml`, and `.gitignore` files.
2. Checks if the `source` argument matches one of our verified sources and, if so, adds it to your project.
3. If the `source` is unknown, uses a generic template to get you started.
4. Rewrites the pipeline scripts to use your `destination`.
5. Creates sample config and credentials in `secrets.toml` and `config.toml` for the specified source and destination.
6. Creates `requirements.txt` with dependencies required by the source and destination. If one exists, prints instructions on what to add to it.

This command can be used several times in the same folder to add more sources and pipelines. You will be warned if files will be overwritten or if the `dlt` version
needs an upgrade to run a particular pipeline.

This command does not add a verified source that is already in your project. To update verified source to the newest version, run this command with `--update` and
the `source` name. `dlt` updates only the files of the source. `dlt` detects your modifications to these files and tries to merge them with the newest version.
If `dlt` cannot merge them, it keeps the current version of the conflicting files by default and you merge the incoming changes yourself. Use `--on-conflict` to skip
the update or to keep the incoming version of the conflicting files instead.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub pipeline`](#dlthub-pipeline).

**Positional arguments**
* `source` - Name of data source for which to create a pipeline. adds existing verified source or creates a new pipeline template if verified source for your data source is not yet implemented.
* `destination` - Name of a destination i.e. bigquery or redshift

**Options**
* `-h, --help` - Show this help message and exit
* `--list-sources, -l` - Shows available core sources and verified sources and their short descriptions. verified sources with a version come first. for each source, it checks if your local `dlt` version requires an update and prints the relevant warning. with `--update`, shows the verified sources in your project and their newest versions.
* `--list-init-templates` - Shows available single file templates and their short descriptions.
* `--update` - Updates verified source `source` to the newest version. `dlt` updates only the files of the source. `--reinstall` and `--on-conflict` work only with this option.
* `--reinstall` - Overwrites all files of the source with the newest version, also when the version did not change. your modifications are lost.
* `--on-conflict {skip,keep-incoming,keep-current}` - What to do with files that you modified and that dlt cannot merge with the newest version. `skip` changes no files and stops. `keep-incoming` replaces them with the newest version and your modifications are lost. `keep-current` leaves them as they are and updates all other files. asks when not set, `keep-current` is the default.
* `--list-destinations` - Shows the name of all core dlt destinations.
* `--location LOCATION` - Advanced. git url or local path of the verified sources repository. defaults to the last location given to a command, else https://github.com/dlt-hub/verified-sources.git. an empty value resets it to the default.
* `--branch BRANCH` - Advanced. branch, tag or commit to fetch from. defaults to the last branch given with the same location, else the default branch. a tag or a commit is used once and is not recorded. an empty value resets it to the default.
* `--eject` - Ejects the source code of the core source like sql_database or rest_api so they will be editable by you.

</details>

### `dlthub pipeline run`

Run a job by pipeline name.

**Usage**
```cli
dlthub pipeline run [-h] [--timestamps] [-f] [--refresh] [--job-ref REF]
    [--environment NAME] pipeline_name
```

**Description**

Run a job decorated with @run.pipeline, using pipeline_name: selector.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub pipeline`](#dlthub-pipeline).

**Positional arguments**
* `pipeline_name` - Name of the pipeline to run

**Options**
* `-h, --help` - Show this help message and exit
* `--timestamps` - Show exact iso timestamps and precise durations (for example 1.291 s) instead of humanized relative times.
* `-f, --follow` - Follow the status changes and stream the logs until the run ends
* `--refresh` - Re-run from scratch (full reload). cascades to freshness-graph downstream jobs.
* `--job-ref REF` - Pick this job from the matched candidate set when the selector matches multiple jobs. if ref is not in the matched set, the command fails.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub pipeline show`

Open the pipeline observability view in the dltHub web app.

**Usage**
```cli
dlthub pipeline show [-h] [--environment NAME] pipeline_name
```

**Description**

Show the URL of the pipeline observability view in the dltHub web app and open it in a browser when interactive. Replaces the local marimo `pipeline show` of dlt.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub pipeline`](#dlthub-pipeline).

**Positional arguments**
* `pipeline_name` - Name of the pipeline to show

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub pipeline update`

Update verified source to the newest version.

**Usage**
```cli
dlthub pipeline update [-h] [--list-updates] [--reinstall | --on-conflict
    {keep-current,keep-incoming,skip}] [--location LOCATION] [--branch BRANCH]
    [source]
```

**Description**

Updates the files of a verified source to the newest version. dlt detects your modifications to these files and tries to merge them with the newest version. If dlt cannot merge them, you can merge them yourself.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub pipeline`](#dlthub-pipeline).

**Positional arguments**
* `source` - Name of the verified source in your workspace

**Options**
* `-h, --help` - Show this help message and exit
* `--list-updates, -l` - Shows the verified sources in your workspace with their installed and newest versions. the command does not change files.
* `--reinstall` - Overwrites all files of the source with the newest version, also when the version did not change. your modifications are lost.
* `--on-conflict {skip,keep-incoming,keep-current}` - What to do with files that you modified and that dlt cannot merge with the newest version. `skip` changes no files and stops. `keep-incoming` replaces them with the newest version and your modifications are lost. `keep-current` leaves them as they are and updates all other files. asks when not set, `keep-current` is the default.
* `--location LOCATION` - Advanced. git url or local path of the verified sources repository. defaults to the last location given to a command, else https://github.com/dlt-hub/verified-sources.git. an empty value resets it to the default.
* `--branch BRANCH` - Advanced. branch, tag or commit to fetch from. defaults to the last branch given with the same location, else the default branch. a tag or a commit is used once and is not recorded. an empty value resets it to the default.

</details>

## `dlthub profile`

Manage workspace profiles and environments.

**Usage**
```cli
dlthub profile [-h] {add,add-environment,info,list} ...
```

**Description**

Show, list and add workspace profiles and environments. A local profile never leaves this machine. A remote profile belongs to an environment and deploys with it. Each profile gives none, read or write data access.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit

**Available subcommands**
* [`add`](#dlthub-profile-add) - Add a profile
* [`add-environment`](#dlthub-profile-add-environment) - Add an environment
* [`info`](#dlthub-profile-info) - Display the active profile (location, data access, paths, providers)
* [`list`](#dlthub-profile-list) - List the declared profiles, with the workspace deployment of each environment

</details>

### `dlthub profile add`

Add a profile.

**Usage**
```cli
dlthub profile add [-h] [--remote | --local] [--access {none,read,write}]
    [--environment NAME] profile_name
```

**Description**

Adds a profile to .dlt/.workspace and creates its settings files, NAME.config.toml and NAME.secrets.toml in .dlt. Without --local, the profile is a remote profile. It belongs to the environment that --environment names, else to the default environment. It gets the data access that --access gives, else write data access. The first profile with a data access in an environment becomes the default profile for that data access. `profile add-environment` adds the default write profile, which deployments are made with. A local profile has write data access, belongs to no environment and never deploys. A profile without data access gets no settings files. For a declared profile, dlt creates only the settings files that are missing and fails when none is missing. dlt shows what it will change and asks for confirmation.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub profile`](#dlthub-profile).

**Positional arguments**
* `profile_name` - Profile name: letters, digits, `_` and `-`

**Options**
* `-h, --help` - Show this help message and exit
* `--remote` - Add a remote profile (default)
* `--local` - Add a local profile
* `--access {none,read,write}` - Data access of a remote profile: none, read or write (default)
* `--environment NAME` - Environment of a remote profile. defaults to the default environment.

</details>

### `dlthub profile add-environment`

Add an environment.

**Usage**
```cli
dlthub profile add-environment [-h] name
```

**Description**

An environment is what a deployment is made to. Adds environment NAME to .dlt/.workspace, strict about access, with one profile. NAME-write is its default write profile, which deployments are made with. Creates NAME-write.config.toml and NAME-write.secrets.toml in .dlt. `profile add` adds the other profiles that jobs need, for example NAME-read with --access read for interactive jobs. For a declared environment, dlt creates only the settings files that its profiles miss and fails when none is missing. dlt shows what it will change and asks for confirmation.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub profile`](#dlthub-profile).

**Positional arguments**
* `name` - Environment name: letters, digits, `_` and `-`

**Options**
* `-h, --help` - Show this help message and exit

</details>

### `dlthub profile info`

Display the active profile (location, data access, paths, providers).

**Usage**
```cli
dlthub profile info [-h]
```

**Description**

Display the active profile (location, data access, paths, providers).

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub profile`](#dlthub-profile).

**Options**
* `-h, --help` - Show this help message and exit

</details>

### `dlthub profile list`

List the declared profiles, with the workspace deployment of each environment.

**Usage**
```cli
dlthub profile list [-h]
```

**Description**

List the declared profiles, with the workspace deployment of each environment.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub profile`](#dlthub-profile).

**Options**
* `-h, --help` - Show this help message and exit

</details>

## `dlthub run`

Deploy code and configuration, then run a batch job (alias for `dlthub job run`).

**Usage**
```cli
dlthub run [-h] [--deployment DEPLOYMENT] [--timestamps] [-f] [--refresh]
    [--job-ref REF] [--environment NAME] [selector_or_job_ref]
```

**Description**

Deploy the current workspace and run a batch job remotely. Use -f/--follow to stream the logs until the job run ends. You can also pass a plain `.py` file. If the file exposes no jobs, dlt deploys it and runs it remotely as a job. Alias for `dlthub job run`.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Positional arguments**
* `selector_or_job_ref` - Selector or job ref that picks a job from the deployment manifest, or the path of a `.py` file to deploy and run as a job

**Options**
* `-h, --help` - Show this help message and exit
* `--deployment DEPLOYMENT` - Python file to generate the deployment manifest from, instead of the default deployment module
* `--timestamps` - Show exact iso timestamps and precise durations (for example 1.291 s) instead of humanized relative times.
* `-f, --follow` - Follow the status changes and stream the logs until the run ends
* `--refresh` - Re-run from scratch (full reload). cascades to freshness-graph downstream jobs.
* `--job-ref REF` - Pick this job from the matched candidate set when the selector matches multiple jobs. if ref is not in the matched set, the command fails.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

## `dlthub serve`

Deploy and serve an interactive data app (alias for `dlthub job serve`).

**Usage**
```cli
dlthub serve [-h] [--deployment DEPLOYMENT] [--timestamps] [-f] [--job-ref REF]
    [--environment NAME] [selector_or_job_ref]
```

**Description**

Deploy the current workspace and serve an interactive job as a read-only data app. You can also pass a plain `.py` file, for example a marimo notebook, a Streamlit app or a FastMCP server. dlt deploys it and serves it remotely as a job. Alias for `dlthub job serve`.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Positional arguments**
* `selector_or_job_ref` - Selector or job ref that picks an interactive job from the deployment manifest, or the path of a `.py` file to deploy and serve as a job

**Options**
* `-h, --help` - Show this help message and exit
* `--deployment DEPLOYMENT` - Python file to generate the deployment manifest from, instead of the default deployment module
* `--timestamps` - Show exact iso timestamps and precise durations (for example 1.291 s) instead of humanized relative times.
* `-f, --follow` - Stream the logs until the data app stops
* `--job-ref REF` - Pick this job from the matched candidate set when the selector matches multiple jobs. if ref is not in the matched set, the command fails.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

## `dlthub show`

Open the current workspace in the dltHub web app (alias for `dlthub workspace show`).

**Usage**
```cli
dlthub show [-h] [--environment NAME]
```

**Description**

Open the workspace overview for the current remote workspace in the browser.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

## `dlthub variable`

Workspace variable operations: list, set, delete.

**Usage**
```cli
dlthub variable [-h] [--timestamps] [--environment NAME] [--workspace]
    [--profile NAME] {delete,list,set} ...
```

**Description**

Manage workspace variables: plain or secret values that every job run gets as environment variables. Scope a variable to the whole workspace or to one profile.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit
* `--timestamps` - Show exact iso timestamps and precise durations (for example 1.291 s) instead of humanized relative times.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.
* `--workspace` - Target the workspace-wide scope
* `--profile NAME` - Target the scope of this profile

**Available subcommands**
* [`delete`](#dlthub-variable-delete) - Remove one variable
* [`list`](#dlthub-variable-list) - List variables in every scope, or in one scope
* [`set`](#dlthub-variable-set) - Create or update one variable

</details>

### `dlthub variable delete`

Remove one variable.

**Usage**
```cli
dlthub variable delete [-h] [--allow-missing] [--environment NAME] [--workspace]
    [--profile NAME] name
```

**Description**

Remove a variable from the workspace or a profile scope.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub variable`](#dlthub-variable).

**Positional arguments**
* `name` - Variable name

**Options**
* `-h, --help` - Show this help message and exit
* `--allow-missing` - Treat an absent variable as success instead of an error
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.
* `--workspace` - Target the workspace-wide scope
* `--profile NAME` - Target the scope of this profile

</details>

### `dlthub variable list`

List variables in every scope, or in one scope.

**Usage**
```cli
dlthub variable list [-h] [--environment NAME] [--workspace] [--profile NAME]
```

**Description**

List workspace variables. Without `--profile` or `--workspace`, the command lists every scope and shows the profile of each row. Secret values are masked.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub variable`](#dlthub-variable).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.
* `--workspace` - Target the workspace-wide scope
* `--profile NAME` - Target the scope of this profile

</details>

### `dlthub variable set`

Create or update one variable.

**Usage**
```cli
dlthub variable set [-h] [--value VALUE] (--plain | --secret) [--environment
    NAME] [--workspace] [--profile NAME] name
```

**Description**

Create or update a variable. Unless you pass --value, the command reads the value from stdin. This keeps secrets out of argv and the shell history.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub variable`](#dlthub-variable).

**Positional arguments**
* `name` - Variable name

**Options**
* `-h, --help` - Show this help message and exit
* `--value VALUE` - Value to store. omit to read it from stdin
* `--plain` - Store a readable value
* `--secret` - Store a write-only value, never shown again
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.
* `--workspace` - Target the workspace-wide scope
* `--profile NAME` - Target the scope of this profile

</details>

## `dlthub workspace`

Workspace operations: connect, list, info, show, deploy, deployment, configuration.

**Usage**
```cli
dlthub workspace [-h] [--timestamps] [--environment NAME]
    {configuration,connect,dashboard,deploy,deployment,info,list,show} ...
```

**Description**

Connect the local workspace to a remote dltHub workspace, and manage its deployments and configurations.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub`](#dlthub).

**Options**
* `-h, --help` - Show this help message and exit
* `--timestamps` - Show exact iso timestamps and precise durations (for example 1.291 s) instead of humanized relative times.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

**Available subcommands**
* [`configuration`](#dlthub-workspace-configuration) - Manage configurations in the workspace
* [`connect`](#dlthub-workspace-connect) - Connect the local workspace to a remote workspace by name or id
* [`dashboard`](#dlthub-workspace-dashboard) - Open the workspace dashboard in the dlthub web app (deploys a default one if missing)
* [`deploy`](#dlthub-workspace-deploy) - Upload code and configuration, then deploy jobs
* [`deployment`](#dlthub-workspace-deployment) - Manage deployments in the workspace
* [`info`](#dlthub-workspace-info) - Show an overview of the current dlthub workspace: the job count, the latest job run, the latest deployment and the latest configuration
* [`list`](#dlthub-workspace-list) - List all workspaces you have access to
* [`show`](#dlthub-workspace-show) - Open the current workspace in the dlthub web app (alias for `dlthub workspace show`)

</details>

### `dlthub workspace configuration`

Manage configurations in the workspace.

**Usage**
```cli
dlthub workspace configuration [-h] [--environment NAME]
    [configuration_version_no] {info,list,sync} ...
```

**Description**

Manage configurations in the workspace.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace`](#dlthub-workspace).

**Positional arguments**
* `configuration_version_no` - Version number of the configuration, for the `info` subcommand only

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

**Available subcommands**
* [`info`](#dlthub-workspace-configuration-info) - Show detailed information about a configuration
* [`list`](#dlthub-workspace-configuration-list) - List all configuration versions
* [`sync`](#dlthub-workspace-configuration-sync) - Create a new configuration if the local settings files changed

</details>

### `dlthub workspace configuration info`

Show detailed information about a configuration.

**Usage**
```cli
dlthub workspace configuration [configuration_version_no] info [-h]
    [--environment NAME]
```

**Description**

Show detailed information about a configuration.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace configuration`](#dlthub-workspace-configuration).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace configuration list`

List all configuration versions.

**Usage**
```cli
dlthub workspace configuration [configuration_version_no] list [-h]
    [--environment NAME]
```

**Description**

List all configuration versions.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace configuration`](#dlthub-workspace-configuration).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace configuration sync`

Create a new configuration if the local settings files changed.

**Usage**
```cli
dlthub workspace configuration [configuration_version_no] sync [-h] [--dry-run]
    [-v] [--environment NAME]
```

**Description**

Create a new configuration if the local settings files changed.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace configuration`](#dlthub-workspace-configuration).

**Options**
* `-h, --help` - Show this help message and exit
* `--dry-run` - Compare the local settings files to the latest configuration without an upload
* `-v, --verbose` - Print per-file added/updated/deleted tree alongside the summary
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace connect`

Connect the local workspace to a remote workspace by name or ID.

**Usage**
```cli
dlthub workspace connect [-h] [--create] [--org-id ORG_ID] [--environment NAME]
    [workspace]
```

**Description**

Connect the local workspace to a remote workspace. Then you can deploy, schedule and run the local jobs and pipelines in the remote workspace.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace`](#dlthub-workspace).

**Positional arguments**
* `workspace` - Name or id of the remote workspace. an id connects any workspace that you are a member of. a name connects the one workspace with this name that you own. otherwise, dlt creates the workspace or shows a picker.

**Options**
* `-h, --help` - Show this help message and exit
* `--create` - Create a workspace with this name and connect it. if the organization already has a workspace with this name, the command fails.
* `--org-id ORG_ID` - Id of the organization for the connection. if you belong to several organizations and no organization is connected, `--create` and the non-interactive mode need this option.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace dashboard`

Open the workspace dashboard in the dltHub web app (deploys a default one if missing).

**Usage**
```cli
dlthub workspace dashboard [-h] [--environment NAME]
```

**Description**

Open the workspace dashboard of the current remote workspace, and deploy a default dashboard if none exists.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace`](#dlthub-workspace).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace deploy`

Upload code and configuration, then deploy jobs.

**Usage**
```cli
dlthub workspace deploy [-h] [--deployment DEPLOYMENT] [--dry-run]
    [--show-manifest] [--show-requirements] [--environment NAME]
```

**Description**

Upload the workspace files and the configuration. Then generate the deployment manifest from the deployment module, and reconcile the jobs with the runtime. Use --dry-run to preview the changes.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace`](#dlthub-workspace).

**Options**
* `-h, --help` - Show this help message and exit
* `--deployment DEPLOYMENT` - Python file to generate the deployment manifest from, instead of the default deployment module
* `--dry-run` - Preview changes without applying them
* `--show-manifest` - Dump the expanded deployment manifest as yaml and exit
* `--show-requirements` - Dump the requirements, which the deployment uploads with the code, as json and exit. this option needs no login.
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace deployment`

Manage deployments in the workspace.

**Usage**
```cli
dlthub workspace deployment [-h] [--environment NAME] [deployment_version_no]
    {info,list,sync} ...
```

**Description**

Manage deployments in the workspace.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace`](#dlthub-workspace).

**Positional arguments**
* `deployment_version_no` - Version number of the deployment, for the `info` subcommand only

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

**Available subcommands**
* [`info`](#dlthub-workspace-deployment-info) - Show detailed information about a deployment
* [`list`](#dlthub-workspace-deployment-list) - List all deployments in the workspace
* [`sync`](#dlthub-workspace-deployment-sync) - Create a new deployment if the local workspace files changed

</details>

### `dlthub workspace deployment info`

Show detailed information about a deployment.

**Usage**
```cli
dlthub workspace deployment [deployment_version_no] info [-h] [--environment
    NAME]
```

**Description**

Show detailed information about a deployment.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace deployment`](#dlthub-workspace-deployment).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace deployment list`

List all deployments in the workspace.

**Usage**
```cli
dlthub workspace deployment [deployment_version_no] list [-h] [--environment
    NAME]
```

**Description**

List all deployments in the workspace.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace deployment`](#dlthub-workspace-deployment).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace deployment sync`

Create a new deployment if the local workspace files changed.

**Usage**
```cli
dlthub workspace deployment [deployment_version_no] sync [-h] [--dry-run] [-v]
    [--environment NAME]
```

**Description**

Create a new deployment if the local workspace files changed.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace deployment`](#dlthub-workspace-deployment).

**Options**
* `-h, --help` - Show this help message and exit
* `--dry-run` - Compare the local files to the latest deployment without an upload
* `-v, --verbose` - Print per-file added/updated/deleted tree alongside the summary
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace info`

Show an overview of the current dltHub workspace: the job count, the latest job run, the latest deployment and the latest configuration.

**Usage**
```cli
dlthub workspace info [-h] [--environment NAME]
```

**Description**

Show the workspace ID and a summary of the deployments, configurations and jobs.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace`](#dlthub-workspace).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace list`

List all workspaces you have access to.

**Usage**
```cli
dlthub workspace list [-h] [--environment NAME]
```

**Description**

List all workspaces you have access to.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace`](#dlthub-workspace).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

### `dlthub workspace show`

Open the current workspace in the dltHub web app (alias for `dlthub workspace show`).

**Usage**
```cli
dlthub workspace show [-h] [--environment NAME]
```

**Description**

Open the workspace overview for the current remote workspace in the browser.

<details>

<summary>Show Arguments and Options</summary>

Inherits arguments from [`dlthub workspace`](#dlthub-workspace).

**Options**
* `-h, --help` - Show this help message and exit
* `--environment NAME` - Environment to deploy to or work with. defaults to the environment of the active profile, else to the default environment.

</details>

