Command Line Interface Reference
This page contains all commands available in the dlt CLI and is generated automatically from the fully populated python argparse object of dlt.
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:
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.0.
dlthub
Creates, adds, inspects and deploys dlt pipelines. Further help is available at https://dlthub.com/docs/reference/command-line-interface.
Usage
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}
...
Show Arguments and Options
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- Use ai-powered development tools and utilitiesdashboard- Open the workspace dashboard in the dlthub web app (deploys a default one if missing)dbt- Dlthub dbt transformation generatordeploy- Upload code and configuration, then deploy jobsinit- Initialize a new dlthub workspacejob- Job operations: list, info, run, serve, trigger, publish, unpublish, pause, resume, logs, cancel, runslocal- Operations on the local workspace (run, serve, info, show, clean, schema, telemetry, pipeline)login- Log in to dlthub (identity only)logout- Log out from dlthubpipeline- Interact with pipelines running in dlthubprofile- Manage workspace profiles and environmentsrun- Deploy code and configuration, then run a batch job (alias fordlthub job run)serve- Deploy and serve an interactive data app (alias fordlthub job serve)show- Open the current workspace in the dlthub web app (alias fordlthub workspace show)variable- Workspace variable operations: list, set, deleteworkspace- Workspace operations: connect, list, info, show, deploy, deployment, configuration
dlthub ai
Use AI-powered development tools and utilities.
Usage
dlthub ai [-h] {init,mcp,rules,secrets,status,toolkit} ...
Description
Configure your LLM-enabled IDE and MCP server.
Show Arguments and Options
Inherits arguments from dlthub.
Options
-h, --help- Show this help message and exit
Available subcommands
init- Install initial ai rules and skills for your ai coding agentmcp- Run or install the dlt mcp serverrules- Print the rules your ai coding agent gets when a session startssecrets- Manage secrets files used by dltstatus- Show ai setup status: dlt version, agent, active profile, toolkits, readiness checkstoolkit- Manage ai toolkit plugins (list, info, install)
dlthub ai init
Install initial AI rules and skills for your AI coding agent.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub ai mcp
Run or install the dlt MCP server.
Usage
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.
Show Arguments and Options
Inherits arguments from 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, asaxis:verb,verbpairs (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.
dlthub ai mcp install
Install MCP server config into the current project.
Usage
dlthub ai mcp install [-h] [--agent {claude,codex,cortex,cursor}] [--features
[FEATURES ...]] [--name NAME] [--overwrite]
Description
Install MCP server config into the current project.
Show Arguments and Options
Inherits arguments from 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.
dlthub ai mcp run
Start the MCP server (default).
Usage
dlthub ai mcp run [-h] [--stdio] [--sse] [--port PORT] [--features [FEATURES
...]] [--no-default-features] [--access ACCESS] [--profile NAME]
Description
Start the MCP server (default).
Show Arguments and Options
Inherits arguments from 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, asaxis:verb,verbpairs (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.
dlthub ai rules
Print the rules your AI coding agent gets when a session starts.
Usage
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.
Show Arguments and Options
Inherits arguments from 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 thatdlthub ai initconfigured.
dlthub ai secrets
Manage secrets files used by dlt.
Usage
dlthub ai secrets [-h] [--profile NAME] {list,update-fragment,view-redacted} ...
Description
List, view (redacted), or update secret files used by dlt providers.
Show Arguments and Options
Inherits arguments from dlthub ai.
Options
-h, --help- Show this help message and exit--profile NAME- Profile to run with.
Available subcommands
list- List secret file locations from providersupdate-fragment- Merge a toml fragment into the secrets fileview-redacted- Print secrets toml with all values replaced by '***'
dlthub ai secrets list
List secret file locations from providers.
Usage
dlthub ai secrets list [-h] [--profile NAME]
Description
List secret file locations from providers.
Show Arguments and Options
Inherits arguments from dlthub ai secrets.
Options
-h, --help- Show this help message and exit--profile NAME- Profile to run with.
dlthub ai secrets update-fragment
Merge a TOML fragment into the secrets file.
Usage
dlthub ai secrets update-fragment [-h] --path PATH [--profile NAME] [fragment]
Description
Merge a TOML fragment into the secrets file.
Show Arguments and Options
Inherits arguments from 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.
dlthub ai secrets view-redacted
Print secrets TOML with all values replaced by '***'.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub ai status
Show AI setup status: dlt version, agent, active profile, toolkits, readiness checks.
Usage
dlthub ai status [-h]
Description
Show AI setup status: dlt version, agent, active profile, toolkits, readiness checks.
Show Arguments and Options
dlthub ai toolkit
Manage AI toolkit plugins (list, info, install).
Usage
dlthub ai toolkit [-h] {info,install,list} ...
Description
Manage AI toolkit plugins (list, info, install).
Show Arguments and Options
Inherits arguments from dlthub ai.
Positional arguments
list- List available toolkitsinfo- Show toolkit contents and componentsinstall- Install toolkit components into project
Options
-h, --help- Show this help message and exit
dlthub ai toolkit info
Show toolkit contents and components.
Usage
dlthub ai toolkit info [-h] [--location LOCATION] [--branch BRANCH] [--see-all]
[--agent {claude,codex,cortex,cursor}] name
Description
Show toolkit contents and components.
Show Arguments and Options
Inherits arguments from 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.
dlthub ai toolkit install
Install toolkit components into project.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.).
dlthub ai toolkit list
List available toolkits.
Usage
dlthub ai toolkit list [-h] [--location LOCATION] [--branch BRANCH] [--see-all]
[--agent {claude,codex,cortex,cursor}]
Description
List available toolkits.
Show Arguments and Options
Inherits arguments from 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.
dlthub dashboard
Open the workspace dashboard in the dltHub web app (deploys a default one if missing).
Usage
dlthub dashboard [-h] [--environment NAME]
Description
Open the workspace dashboard of the current remote workspace, and deploy a default dashboard if none exists.
Show Arguments and Options
Inherits arguments from 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.
dlthub dbt
dlthub dbt transformation generator.
Usage
dlthub dbt [-h] [--profile NAME] {generate} ...
Description
dlthub dbt transformation generator.
Show Arguments and Options
dlthub dbt generate
Generate dbt project.
Usage
dlthub dbt generate [-h] [--include_dlt_tables] [--fact [FACT]] [--force]
[--mart_table_prefix [MART_TABLE_PREFIX]] [--profile NAME] pipeline_name
Description
Generate dbt project.
Show Arguments and Options
Inherits arguments from 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.
dlthub deploy
Upload code and configuration, then deploy jobs.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub init
Initialize a new dlthub workspace.
Usage
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.
Show Arguments and Options
Inherits arguments from 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/requirementsforce 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.
dlthub job
Job operations: list, info, run, serve, trigger, publish, unpublish, pause, resume, logs, cancel, runs.
Usage
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.
Show Arguments and Options
Inherits arguments from 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- Cancel active runs for matching jobsinfo- Show job infolist- List jobs (filter with selectors: batch, schedule:*, tag:ops, ...)logs- Show the logs of the latest or selected job runpause- Pause the schedule of one or more jobspublish- Create or delete the public link of an interactive data appresume- Resume the schedule of one or more jobsrun- Deploy code and configuration, then run a batch jobruns- Manage job runs: list, info, logs, cancelserve- Deploy and serve an interactive data appshow- Open the job page in the dlthub web apptrigger- Start job runs for the jobs that match the selectors, without an upload or a deploymentunpublish- Delete the public link of an interactive data app
dlthub job cancel
Cancel active runs for matching jobs.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub job info
Show job info.
Usage
dlthub job info [-h] [--environment NAME] [selector_or_job_name]
Description
Show detailed information about the job.
Show Arguments and Options
Inherits arguments from 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.
dlthub job list
List jobs (filter with selectors: batch, schedule:*, tag:ops, ...).
Usage
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:<name>, manual: and more.
Show Arguments and Options
Inherits arguments from 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.
dlthub job logs
Show the logs of the latest or selected job run.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub job pause
Pause the schedule of one or more jobs.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub job publish
Create or delete the public link of an interactive data app.
Usage
dlthub job publish [-h] [--cancel] [--environment NAME] job_path
Description
Create the public link of a data app, or delete it with --cancel.
Show Arguments and Options
Inherits arguments from 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.
dlthub job resume
Resume the schedule of one or more jobs.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub job run
Deploy code and configuration, then run a batch job.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.pyfile 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.
dlthub job runs
Manage job runs: list, info, logs, cancel.
Usage
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.
Show Arguments and Options
Inherits arguments from 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- Cancel the latest or selected job runinfo- Show job run infolist- List job runs (filter with a selector: batch, schedule:*, ...)logs- Show the logs of the latest or selected job runresult- Show the job result a run declared (from telemetry)show- Open the job run page in the dlthub web app
dlthub job runs cancel
Cancel the latest or selected job run.
Usage
dlthub job runs cancel [-h] [--environment NAME] selector_or_job_name
[run_number]
Description
Cancel the latest or selected job run.
Show Arguments and Options
Inherits arguments from dlthub job runs.
Positional arguments
selector_or_job_name- Run id, or a job name, job file path or selectorrun_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.
dlthub job runs info
Show job run info.
Usage
dlthub job runs info [-h] [--environment NAME] selector_or_job_name [run_number]
Description
Show detailed information about the job run.
Show Arguments and Options
Inherits arguments from dlthub job runs.
Positional arguments
selector_or_job_name- Run id, or a job name, job file path or selectorrun_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.
dlthub job runs list
List job runs (filter with a selector: batch, schedule:*, ...).
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub job runs logs
Show the logs of the latest or selected job run.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub job runs.
Positional arguments
selector_or_job_name- Run id, or a job name, job file path or selectorrun_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.
dlthub job runs result
Show the job result a run declared (from telemetry).
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub job runs.
Positional arguments
selector_or_job_name- Run id, or a job name, job file path or selectorrun_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.
dlthub job runs show
Open the job run page in the dltHub web app.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub job runs.
Positional arguments
selector_or_job_name- Run id, or a job name, job file path or selectorrun_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.
dlthub job serve
Deploy and serve an interactive data app.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.pyfile 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.
dlthub job show
Open the job page in the dltHub web app.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub job trigger
Start job runs for the jobs that match the selectors, without an upload or a deployment.
Usage
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:'.
Show Arguments and Options
Inherits arguments from 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.
dlthub job unpublish
Delete the public link of an interactive data app.
Usage
dlthub job unpublish [-h] [--environment NAME] job_path
Description
Delete the public link of an interactive data app.
Show Arguments and Options
Inherits arguments from 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.
dlthub local
Operations on the local Workspace (run, serve, info, show, clean, schema, telemetry, pipeline).
Usage
dlthub local [-h] {clean,info,pipeline,profile,run,schema,serve,show,telemetry}
...
Description
Local-only operations on the current workspace.
Show Arguments and Options
Inherits arguments from dlthub.
Options
-h, --help- Show this help message and exit
Available subcommands
clean- Remove the state and data folders of the active profile: locally loaded data and pipeline working directories. remote destinations are not affected.info- Display detailed local workspace infopipeline- Local pipeline operations (info, drop, sync, load-package, etc.)profile- Profile operations that affect only the local workspacerun- Run a single batch workspace job locallyschema- Shows, converts and upgrades schemasserve- Serve an interactive workspace job locally (notebook, dashboard, app)show- Show workspace dashboardtelemetry- Shows telemetry status
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
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub local info
Display detailed local workspace info.
Usage
dlthub local info [-h] [--show-manifest] [--show-requirements] [--profile NAME]
Description
Display detailed local workspace info.
Show Arguments and Options
Inherits arguments from 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.
dlthub local pipeline
Local pipeline operations (info, drop, sync, load-package, etc.).
Usage
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.).
Show Arguments and Options
Inherits arguments from 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- Safely cancels pending loads: marks packages as aborted, records failed jobs, then resyncs pipeline state from the destination.drop- Selectively drop tables and reset statedrop-pending-packages- [deprecated: use abort-packages] deletes all extracted and normalized packages including those that are partially loaded.failed-jobs- Displays information on all the failed loads in all completed packages, failed jobs and associated error messagesinfo- Displays state of the pipeline, use -v or -vv for more infolist- List local pipelinesload-package- Displays information on a load package or acts on it (abort, fail-job, ...).run- Run a job by pipeline nameschema- Displays default schemashow- Generates and launches workspace dashboard with the loading status and dataset explorersync- 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- Displays last run trace, use -v or -vv for more info
dlthub local pipeline abort-packages
Safely cancels pending loads: marks packages as aborted, records failed jobs, then resyncs pipeline state from the destination.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub local pipeline.
Positional arguments
pipeline_name- Pipeline name
Options
-h, --help- Show this help message and exit--profile NAME- Profile to run with.
dlthub local pipeline drop
Selectively drop tables and reset state.
Usage
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.
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:
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:
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:
- All the indicated tables will be dropped in the destination. Note that
dltdrops the nested tables as well. - All the indicated tables will be removed from the indicated schema.
- The state for the resource
repo_eventswas found and will be reset. - New schema and state will be stored in the destination.
The drop command accepts several advanced settings:
- You can use regexes to select resources. Prepend the
re:string to indicate a regex pattern. The example below will select all resources starting withrepo:
dlt pipeline github_events drop "re:^repo"
- You can drop all tables in the indicated schema:
dlt pipeline chess drop --drop-all
- You can indicate additional state slots to reset by passing JsonPath to the source state. In the example
below, we reset the
archivesslot in the source state:
dlt pipeline chess_pipeline drop --state-paths archives
This will select the archives key in the chess source.
{
"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.
Show Arguments and Options
Inherits arguments from dlthub local pipeline.
Positional arguments
pipeline_name- Pipeline nameresources- 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.
dlthub local pipeline drop-pending-packages
[Deprecated: use abort-packages] Deletes all extracted and normalized packages including those that are partially loaded.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub local pipeline.
Positional arguments
pipeline_name- Pipeline name
Options
-h, --help- Show this help message and exit--profile NAME- Profile to run with.
dlthub local pipeline failed-jobs
Displays information on all the failed loads in all completed packages, failed jobs and associated error messages.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub local pipeline.
Positional arguments
pipeline_name- Pipeline name
Options
-h, --help- Show this help message and exit--profile NAME- Profile to run with.
dlthub local pipeline info
Displays state of the pipeline, use -v or -vv for more info.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub local pipeline.
Positional arguments
pipeline_name- Pipeline name
Options
-h, --help- Show this help message and exit--profile NAME- Profile to run with.
dlthub local pipeline list
List local pipelines.
Usage
dlthub local pipeline list [-h] [--profile NAME]
Description
List pipelines in the working directory.
Show Arguments and Options
Inherits arguments from dlthub local pipeline.
Options
-h, --help- Show this help message and exit--profile NAME- Profile to run with.
dlthub local pipeline load-package
Displays information on a load package or acts on it (abort, fail-job, ...).
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub local pipeline.
Positional arguments
pipeline_name- Pipeline nameload-id- Load id of completed or normalized package. defaults to the most recent package.job- Pattern for thejobaction, or job id / file name forfail-job.
Options
-h, --help- Show this help message and exit--profile NAME- Profile to run with.
dlthub local pipeline run
Run a job by pipeline name.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub local pipeline.
Positional arguments
pipeline_name- Pipeline name to match againstdeliver.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.
dlthub local pipeline schema
Displays default schema.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub local pipeline show
Generates and launches workspace dashboard with the loading status and dataset explorer.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
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
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub local pipeline trace
Displays last run trace, use -v or -vv for more info.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub local pipeline.
Positional arguments
pipeline_name- Pipeline nameaction-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.
dlthub local profile
Profile operations that affect only the local workspace.
Usage
dlthub local profile [-h] {use} ...
Description
Profile operations scoped to the local workspace.
Show Arguments and Options
Inherits arguments from dlthub local.
Options
-h, --help- Show this help message and exit
Available subcommands
use- Make a profile the active profile. local commands run with it until you make another profile active.
dlthub local profile use
Make a profile the active profile. Local commands run with it until you make another profile active.
Usage
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.
Show Arguments and Options
Inherits arguments from 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
dlthub local run
Run a single batch workspace job locally.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub local schema
Shows, converts and upgrades schemas.
Usage
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.
Show Arguments and Options
Inherits arguments from 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
dlthub local serve
Serve an interactive workspace job locally (notebook, dashboard, app).
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub local show
Show workspace dashboard.
Usage
dlthub local show [-h] [--edit] [--profile NAME]
Description
Show workspace dashboard.
Show Arguments and Options
Inherits arguments from dlthub local.
Options
-h, --help- Show this help message and exit--edit- Eject dashboard and start editable version--profile NAME- Profile to run with.
dlthub local telemetry
Shows telemetry status.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub local.
Options
-h, --help- Show this help message and exit--profile NAME- Profile to run with.
dlthub login
Log in to dltHub (identity only).
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub.
Options
-h, --help- Show this help message and exit--resume DEVICE_CODE- Resume a device flow login thatdlthub loginstarted.dlthub loginprints the device_code when no terminal is attached.--device- Force the device authorization flow instead of the default browser loopback login.
dlthub logout
Log out from dltHub.
Usage
dlthub logout [-h]
Description
Log out from dltHub.
Show Arguments and Options
dlthub pipeline
Interact with pipelines running in dlthub.
Usage
dlthub pipeline [-h] {init,run,show,update} ...
Description
Create, run, inspect and monitor pipelines at dltHub.
Show Arguments and Options
Inherits arguments from dlthub.
Options
-h, --help- Show this help message and exit
Available subcommands
dlthub pipeline init
Creates a pipeline in the current folder by adding existing verified source or creating a new one from template.
Usage
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:
- Creates a basic project structure if the current folder is empty by adding
.dlt/config.toml,.dlt/secrets.toml, and.gitignorefiles. - Checks if the
sourceargument matches one of our verified sources and, if so, adds it to your project. - If the
sourceis unknown, uses a generic template to get you started. - Rewrites the pipeline scripts to use your
destination. - Creates sample config and credentials in
secrets.tomlandconfig.tomlfor the specified source and destination. - Creates
requirements.txtwith 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.
Show Arguments and Options
Inherits arguments from 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 localdltversion 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 sourcesourceto the newest version.dltupdates only the files of the source.--reinstalland--on-conflictwork 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.skipchanges no files and stops.keep-incomingreplaces them with the newest version and your modifications are lost.keep-currentleaves them as they are and updates all other files. asks when not set,keep-currentis 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.
dlthub pipeline run
Run a job by pipeline name.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub pipeline show
Open the pipeline observability view in the dltHub web app.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub pipeline update
Update verified source to the newest version.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.skipchanges no files and stops.keep-incomingreplaces them with the newest version and your modifications are lost.keep-currentleaves them as they are and updates all other files. asks when not set,keep-currentis 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.
dlthub profile
Manage workspace profiles and environments.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub.
Options
-h, --help- Show this help message and exit
Available subcommands
add- Add a profileadd-environment- Add an environmentinfo- Display the active profile (location, data access, paths, providers)list- List the declared profiles, with the workspace deployment of each environment
dlthub profile add
Add a profile.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub profile add-environment
Add an environment.
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub profile.
Positional arguments
name- Environment name: letters, digits,_and-
Options
-h, --help- Show this help message and exit
dlthub profile info
Display the active profile (location, data access, paths, providers).
Usage
dlthub profile info [-h]
Description
Display the active profile (location, data access, paths, providers).
Show Arguments and Options
dlthub profile list
List the declared profiles, with the workspace deployment of each environment.
Usage
dlthub profile list [-h]
Description
List the declared profiles, with the workspace deployment of each environment.
Show Arguments and Options
dlthub run
Deploy code and configuration, then run a batch job (alias for dlthub job run).
Usage
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.
Show Arguments and Options
Inherits arguments from dlthub.
Positional arguments
selector_or_job_ref- Selector or job ref that picks a job from the deployment manifest, or the path of a.pyfile 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.
dlthub serve
Deploy and serve an interactive data app (alias for dlthub job serve).
Usage
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.
Show Arguments and Options
Inherits arguments from 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.pyfile 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.
dlthub show
Open the current workspace in the dltHub web app (alias for dlthub workspace show).
Usage
dlthub show [-h] [--environment NAME]
Description
Open the workspace overview for the current remote workspace in the browser.
Show Arguments and Options
Inherits arguments from 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.
dlthub variable
Workspace variable operations: list, set, delete.
Usage
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.
Show Arguments and Options
Inherits arguments from 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
dlthub variable delete
Remove one variable.
Usage
dlthub variable delete [-h] [--allow-missing] [--environment NAME] [--workspace]
[--profile NAME] name
Description
Remove a variable from the workspace or a profile scope.
Show Arguments and Options
Inherits arguments from 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
dlthub variable list
List variables in every scope, or in one scope.
Usage
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.
Show Arguments and Options
Inherits arguments from 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
dlthub variable set
Create or update one variable.
Usage
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.
Show Arguments and Options
Inherits arguments from 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
dlthub workspace
Workspace operations: connect, list, info, show, deploy, deployment, configuration.
Usage
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.
Show Arguments and Options
Inherits arguments from 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- Manage configurations in the workspaceconnect- Connect the local workspace to a remote workspace by name or iddashboard- Open the workspace dashboard in the dlthub web app (deploys a default one if missing)deploy- Upload code and configuration, then deploy jobsdeployment- Manage deployments in the workspaceinfo- Show an overview of the current dlthub workspace: the job count, the latest job run, the latest deployment and the latest configurationlist- List all workspaces you have access toshow- Open the current workspace in the dlthub web app (alias fordlthub workspace show)
dlthub workspace configuration
Manage configurations in the workspace.
Usage
dlthub workspace configuration [-h] [--environment NAME]
[configuration_version_no] {info,list,sync} ...
Description
Manage configurations in the workspace.
Show Arguments and Options
Inherits arguments from dlthub workspace.
Positional arguments
configuration_version_no- Version number of the configuration, for theinfosubcommand 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
dlthub workspace configuration info
Show detailed information about a configuration.
Usage
dlthub workspace configuration [configuration_version_no] info [-h]
[--environment NAME]
Description
Show detailed information about a configuration.
Show Arguments and Options
Inherits arguments from 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.
dlthub workspace configuration list
List all configuration versions.
Usage
dlthub workspace configuration [configuration_version_no] list [-h]
[--environment NAME]
Description
List all configuration versions.
Show Arguments and Options
Inherits arguments from 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.
dlthub workspace configuration sync
Create a new configuration if the local settings files changed.
Usage
dlthub workspace configuration [configuration_version_no] sync [-h] [--dry-run]
[-v] [--environment NAME]
Description
Create a new configuration if the local settings files changed.
Show Arguments and Options
Inherits arguments from 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.
dlthub workspace connect
Connect the local workspace to a remote workspace by name or ID.
Usage
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.
Show Arguments and Options
Inherits arguments from 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,--createand 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.
dlthub workspace dashboard
Open the workspace dashboard in the dltHub web app (deploys a default one if missing).
Usage
dlthub workspace dashboard [-h] [--environment NAME]
Description
Open the workspace dashboard of the current remote workspace, and deploy a default dashboard if none exists.
Show Arguments and Options
Inherits arguments from 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.
dlthub workspace deploy
Upload code and configuration, then deploy jobs.
Usage
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.
Show Arguments and Options
Inherits arguments from 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.
dlthub workspace deployment
Manage deployments in the workspace.
Usage
dlthub workspace deployment [-h] [--environment NAME] [deployment_version_no]
{info,list,sync} ...
Description
Manage deployments in the workspace.
Show Arguments and Options
Inherits arguments from dlthub workspace.
Positional arguments
deployment_version_no- Version number of the deployment, for theinfosubcommand 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
dlthub workspace deployment info
Show detailed information about a deployment.
Usage
dlthub workspace deployment [deployment_version_no] info [-h] [--environment
NAME]
Description
Show detailed information about a deployment.
Show Arguments and Options
Inherits arguments from 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.
dlthub workspace deployment list
List all deployments in the workspace.
Usage
dlthub workspace deployment [deployment_version_no] list [-h] [--environment
NAME]
Description
List all deployments in the workspace.
Show Arguments and Options
Inherits arguments from 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.
dlthub workspace deployment sync
Create a new deployment if the local workspace files changed.
Usage
dlthub workspace deployment [deployment_version_no] sync [-h] [--dry-run] [-v]
[--environment NAME]
Description
Create a new deployment if the local workspace files changed.
Show Arguments and Options
Inherits arguments from 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.
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
dlthub workspace info [-h] [--environment NAME]
Description
Show the workspace ID and a summary of the deployments, configurations and jobs.
Show Arguments and Options
Inherits arguments from 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.
dlthub workspace list
List all workspaces you have access to.
Usage
dlthub workspace list [-h] [--environment NAME]
Description
List all workspaces you have access to.
Show Arguments and Options
Inherits arguments from 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.
dlthub workspace show
Open the current workspace in the dltHub web app (alias for dlthub workspace show).
Usage
dlthub workspace show [-h] [--environment NAME]
Description
Open the workspace overview for the current remote workspace in the browser.
Show Arguments and Options
Inherits arguments from 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.