---
schema_version: "1"
id: d7f45209736335c15b5b544bee67ca075d692237c3cab223576e7dc196f5e641
title: Tableau Prep Command Line Reference
collection: tableau
version: next
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/next/en-gb/prep/prep_command_line_reference.md
canonical_url: https://help.tableau.com/v0.0/prep/en-gb/prep_command_line_reference.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 417ab53e1b836e967ea5c4c778fcfb5638b18c6f07e6e78e0c1484c2a361db32
description: Reference for interacting with Tableau Prep through the command line.
---
[Skip to main content](#main-content)

# Tableau Prep Command Line Reference

You can interact with Tableau Prep using the command line through either the main application (Tableau Prep.exe) or via the command line interface (tableau-prep-cli.bat).

- Tableau Prep.exe: Used for configuring how the application initialises itself. For example, install, activation, licensing, setting user data directories or troubleshooting the Electron shell.
- Tableau-prep-cli.bat: Used for running flows. For example, passing credentials and parameters, and refreshing data outputs without opening the visual interface.

This document describes all of the command line syntax options that are supported by Tableau Prep and available to customers, separated by the utility where it’s available.

Additional supported command line syntax used by Tableau Developers and Support are not included in this document.

## Tableau Prep application

The following actions can be performed from the command line for the Tableau Prep.exe application.

### Install

Install Tableau Prep by running the installer .exe file from the computer’s command line as an administrator. For more information, see [Install from the Command Line](https://help.tableau.com/current/desktopdeploy/en-gb/desktop_deploy_automate.htm).

**Note**: This option is only available for Windows.

<table style="width: 100%;" class="simple-table"><colgroup><col style="width: 276px;"><col style="width: 875px;"></colgroup><tbody><tr><th>Syntax</th><th>Description</th></tr><tr><td><code>tableau_&lt;product_installer_name&gt;.exe /option1 /option2 PROPERTY1 PROPERTY2</code></td><td><p>Run the command as an administrator from the directory where the .exe file is located or specify a full path to the location of the .exe file on the computer. Do not run from a shared directory. For a list of supported installer options see <a href="https://help.tableau.com/current/desktopdeploy/en-gb/desktop_deploy_cli_ref.htm#installer-options" target="_blank">Installer options</a>. For a list of supported installer properties, see <a href="https://help.tableau.com/current/desktopdeploy/en-gb/desktop_deploy_cli_ref.htm#installer-properties" target="_blank">Installer properties</a>.</p><ul><li><p><code>tableau_&lt;product_installer_name&gt;.exe</code> is the Tableau installer for the product and version you’re installing.</p></li><li><p><code>option1, option2</code>, etc. is how you want the installation process to run.</p></li><li><p><code>PROPERTY1, PROPERTY2</code>, etc. lets you specify configuration settings that the installer should make during the installation process.</p></li></ul><p>Example:</p><p><code>tableauPrepBuilder-64bit-2026-2-0.exe /quiet /norestart ACCEPTEULA=1 CRASHDUMP="0" SENDTELEMETRY="0"</code></p><p>This command installs Tableau version 2026.2 in quiet mode (doesn’t display prompts, UI or the licence dialog). It finishes the install without a restart, accepts the end-user licence agreement (EULA) and sets error reporting and usage reporting to off.</p></td></tr></tbody></table>

### Activation, Licence and Registration

Use these commands to check your licence, activate the product either during installation or after, and register the product. For more information, see [Activate Tableau Desktop and Tableau Prep Builder](https://help.tableau.com/current/desktopdeploy/en-gb/desktop_deploy_automate.htm#activate-tableau-desktop-and-tableau-prep-builder).

<table style="width: 100%;" class="simple-table"><colgroup><col style="width: 276px;"><col></colgroup><tbody><tr><th>Syntax</th><th>Description</th></tr><tr><td><code>--activate &lt;key&gt;</code></td><td><p>Activate the product using the supplied product key. Exits with code 0 on success. Otherwise exits with an error code. Also accepts single-dash (-activate).</p><p>To activate the product during installation, add a single command line that includes the installer option ACTIVATE_KEY ‘&lt;key&gt;’ and enter the product key in quotes.</p></td></tr><tr><td><code>--register </code></td><td><p>Register the product. Also accepts single-dash (-register). To register Tableau from the command line, you need to prefill the registry (Windows) or .plist (Mac) values on each computer that will run Tableau Prep Builder.</p><p>For Windows, you can register the product during installation by adding a single command line that includes the installer option REGISTER="1".</p><p>For more information, see <a href="https://help.tableau.com/current/desktopdeploy/en-gb/desktop_deploy_automate.htm#register-tableau-desktop-and-tableau-prep-builder" target="_blank">Register Tableau Desktop and Tableau Prep Builder</a>.</p></td></tr><tr><td><code>--check-license </code></td><td>Display activation UI if unlicensed.</td></tr><tr><td><code>--refresh</code></td><td><p>Updates licences with the date when their current maintenance period expires and stops expiry messages. Exits with code 0 on success. Also accepts single-dash (-refresh).</p><p><b>Windows</b>: Run tableau.exe with the <code>--refresh</code> option and a product key.</p><p><b>MacOS</b>: Run the <code>-refresh</code> option on the Tableau object in the /Applications path.</p></td></tr><tr><td><code>--return &lt;key&gt;</code></td><td><p>Deactivate the supplied product key so it can be reused. Also accepts single-dash (-return).</p><p><b>Windows</b>: Run tableau.exe with the <code>-return</code> option and a product key.</p><p><b>MacOS</b>: Run the <code>-return</code> option on the Tableau object in the /Applications path.</p></td></tr></tbody></table>

### Configuration and Storage

Use these commands to configure file settings and repository locations.

<table style="width: 100%;" class="simple-table"><colgroup><col style="width: 276px;"><col></colgroup><tbody><tr><th>Syntax</th><th>Description</th></tr><tr><td><code>--settings-file &lt;file location&gt;</code></td><td><p>Load application configuration settings from the given file. Can be specified multiple times to support layered configurations such as when you have a global proxy server configuration used by everyone and a specific database configuration used for a flow.</p><p>.json file example:</p><pre xml:space="preserve">{
 "connection-sources":[
  {
	"endpoint":"prod-db-server.company.com",
	"username":"service_account_admin",
	"password":"secure_password_123"
	}
 ]
}</pre><p>Example command:</p><p><b>Windows</b>: <code>"C:\Program Files\Tableau\Tableau Prep Builder 2026.2\Tableau Prep Builder.exe" --settings-file "C:\ProgramData\Tableau\global-proxy-config.json" --settings-file  "C:\Users\jsmith\AppData\Roaming\Tableau\db-config.json"</code></p><p><b>MacOS</b><code>: /Applications/Tableau\ Prep\ Builder\ 2026.2.app/Contents/MacOS/Tableau\ Prep\ Builder --settings-file "/Library/Tableau/global-proxy-config.json" --settings-file "/Users/jsmith/Library/Application Support/Tableau/db-config.json"</code></p></td></tr><tr><td><code>--repository-location &lt;file path&gt; </code></td><td><p>Set the repository directory. By default during installation, Tableau Prep creates a folder in your Documents folder called My Tableau Prep Repository. This folder includes folders for flows, datasources, connections, as well as log files, and a temporary cache. In server or automation environments, you can use this command to specify an alternative repository location and point the flow run to it.</p><p>Example:</p><p><b>Windows</b>: "<code>C:\Program Files\Tableau\Tableau Prep Builder 2026.2\Tableau Prep Builder.exe" --repository-location "D:\Tableau_Data\My_Prep_Repo"</code></p><p><b>MacOS</b>: <code>/Applications/Tableau\ Prep\ Builder\ 2026.2.app/Contents/MacOS/Tableau\ Prep\ Builder --repository-location "/Users/jsmith/Documents/My Tableau Prep Repository"</code></p></td></tr><tr><td><code>--user-data-directory &lt;location&gt;</code></td><td><p>Directory used for storing Electron application data.</p><p>While <code>--repository-location</code> manages your business assets (logs and data), <code>--user-data-directory</code> manages the application’s internal engine.</p><p>As an admin, use this flag if you are running Tableau Prep Builder in a high-concurrency environment where multiple processes need isolated application states, or when troubleshooting persistent session-lock errors on a headless server.</p><p class="note"><b>Note</b>: When you run the command, it automatically creates the folder specified in the <code>--user-data-directory</code>. However, the user account running the script must have ‘Write’ permissions to that parent directory.</p><p>Example:</p><p><b>Windows</b>: <code> "C:\Program Files\Tableau\Tableau Prep Builder 2026.2\Tableau Prep Builder.exe" --user-data-directory "D:\Tableau_Data\Prep_AppData"</code></p><p><b>MacOS</b>: <code>/Applications/Tableau\ Prep\ Builder\ 2026.2.app/Contents/MacOS/Tableau\ Prep\ Builder --user-data-directory "/Users/jsmith/Library/Application Support/Tableau Prep"</code></p></td></tr></tbody></table>

### Opening Files

Use these commands to open .tfl and .tflx Tableau Prep flow files.

<table style="width: 100%;" class="simple-table"><colgroup><col style="width: 276px;"><col></colgroup><tbody><tr><th>Syntax</th><th>Description</th></tr><tr><td><code>--tfl&lt;file&gt;</code></td><td><p>Open the specified .tfl flow file. Use double quotes if your file path includes spaces.</p><p>Example:</p><p><b>Windows</b>: "C:\Program Files\Tableau\Tableau Prep Builder 2026.2\Tableau Prep Builder.exe" -tfl "C:\Users\jsmith\Documents\My Flows\Clean_Sales_Data.tfl"</p><p><b>MacOS</b>: /Applications/Tableau\ Prep\ Builder\ 2026.2.app/Contents/MacOS/Tableau\ Prep\ Builder -tfl "/Users/jsmith/Documents/My Flows/Clean_Sales_Data.tfl"</p></td></tr><tr><td><code>--tflx&lt;file&gt; </code></td><td><p>Open the specified .tflx packaged flow file.</p><p>Example:</p><p><b>Windows</b>:<code>"C:\Program Files\Tableau\Tableau Prep Builder 2026.2\Tableau Prep Builder.exe" --tflx "C:\Users\jsmith\Desktop\Quarterly_Report.tflx"</code></p><p><b>MacOS</b>: <code>/Applications/Tableau\ Prep\ Builder\ 2026.2.app/Contents/MacOS/Tableau\ Prep\ Builder --tflx "/Users/jsmith/Desktop/Quarterly_Report.tflx"</code></p></td></tr></tbody></table>

## Tableau Prep command line application

The following commands can be run using the Tableau Prep command line interface (tableau-prep-cli.bat).

### Refresh Flow Output

Use these options to run the flow from the command line to refresh flow output. This method lets you run one flow at a time only. For more information and limitations, see [Refresh flow output files from the command line](https://help.tableau.com/current/prep/en-gb/prep_run_commandline.htm).

<table style="width: 100%;" class="simple-table"><colgroup><col style="width: 276px;"><col></colgroup><tbody><tr><th>Syntax</th><th>Description</th></tr><tr><td><code>-c, --connections &lt;path&gt;</code></td><td><p>The path to the .json file containing the credentials for your data sources and servers.</p><p>Tableau Prep Builder uses information from the flow file and from the credentials .json file to run the flow when you have remote connections. For more information, see <a href="https://help.tableau.com/current/prep/en-gb/prep_run_commandline.htm#credentials-json-file-requirements" target="_blank">Credentials .json file requirements</a>.</p><p>If you connect to a snowflake database, be sure to include any specific parameters like Role, Warehouse and sometimes OAuth tokens or External Browser authentication.</p><p>.json settings file example - Snowflake:</p><pre xml:space="preserve">{
 "connection-sources":[
  {
	"endpoint":"company_account.snowflakecomputing.com",
	"username":"SVC_TABLEAU_PREP",
	"password":"EncryptedPassword123",
	"attributes":{
	 "warehouse": "DATA_LOAD_WH",
	 "role": "TRANSFORM_ROLE"
	}
  }
 ]
}						</pre><p>Example:</p><p><b>Windows</b>:<code> "\[Tableau Prep Builder install location]\Tableau Prep Builder &lt;version&gt;\scripts"\tableau-prep-cli.bat -c "path\to\[your credential file name].json" -t "path\to\[your flow file name].tfl"</code></p><p><b>MacOS</b>:<code> /Applications/Tableau\ Prep\ Builder\ [Tableau Prep Builder version].app/Contents/scripts/./tableau-prep-cli -c path/to/[your credential file name].json -t path/to/[your flow file name].tfl</code></p></td></tr><tr><td><code>- p,  - - parameters</code></td><td><p>The path to a .json file that overrides the default parameter values in your flow. This is a separate file from your credentials.json file and includes your parameter names and values.</p><p>For more information, see ‘Run flows that include parameter values’ in <a href="https://help.tableau.com/current/prep/en-gb/prep_run_commandline.htm#credentials-json-file-requirements" target="_blank">Credentials .json file requirements</a>.</p><p>Example:</p><p><b>Windows</b>: <code>"\[Tableau Prep Builder install location]\Tableau Prep Builder &lt;version&gt;\scripts"\tableau-prep-cli.bat -t "path\to\[your flow file name].tfl" -p|--parameters parameters.override.json</code></p><p><b>MacOS</b>: <code>/Applications/Tableau\ Prep\ Builder\ [Tableau Prep Builder version].app/Contents/scripts/./tableau-prep-cli -t path/to/[your flow file name].tfl -p|--parameters parameters.override.json</code></p></td></tr><tr><td><code>-t,--tflFile &lt;file path&gt;</code></td><td>The path to your Tableau Prep flow file.</td></tr><tr><td><code>-inc, --incrementalRefresh </code></td><td><p>If you don’t have Tableau Prep Conductor enabled on your server to schedule flow runs, you can use this command to run your flow using incremental refresh. For more information, see ‘Run the flow with incremental refresh enabled’.</p><p>Example:</p><p><b>Windows</b>: <code>"\[Tableau Prep Builder install location]\Tableau Prep Builder &lt;version&gt;\scripts"\tableau-prep-cli.bat --incrementalRefresh -t "path\to\[your flow file name].tfl"</code></p><p><b>MacOS</b>: <code>/Applications/Tableau\ Prep\ Builder\ [Tableau Prep Builder version].app/Contents/scripts/./tableau-prep-cli --incrementalRefresh -t path/to/[your flow file name].tfl</code></p></td></tr></tbody></table>

### Miscellaneous Commands

Use these commands to print the Tableau Prep version, turn on debug mode to debug a flow process, disable SSL validation and more.

<table style="width: 100%;" class="simple-table"><colgroup><col style="width: 276px;"><col></colgroup><tbody><tr><th>Syntax</th><th>Description</th></tr><tr><td><code>--version</code></td><td>Outputs the current version of the Tableau Prep Builder CLI and immediately terminates the process.</td></tr><tr><td><code>-d, --debug </code></td><td><p>Enables debug mode. Generates detailed logs in the repository folder for troubleshooting. Log files are stored in: My Tableau Prep Builder Repository\Command Line Repository\Logs</p><p>Example:</p><p><b>Windows</b>: <code>"\[Tableau Prep Builder install location]\Tableau Prep Builder &lt;version&gt;\scripts"\tableau-prep-cli.bat --debug -t "[your flow file name].tfl"</code></p><p><b>MacOS</b>: <code>/Applications/Tableau\ Prep\ Builder\ [Tableau Prep Builder version].app/Contents/scripts/./tableau-prep-cli --debug -t “[your flow file name]”.tfl</code></p></td></tr><tr><td><code>-dsv, --disableSslValidation </code></td><td><p>Disables SSL certificate validation (useful for certain internal server environments). When running this option on MacOS, a dialog may appear asking for the keychain user and password.</p><p>Starting with Tableau Prep Builder version 2019.3.2, you can pass in this additional parameter to disable this keychain dialog.</p><p>Example:</p><p><b>MacOS</b>: <code>/Applications/Tableau\ Prep\ Builder\ [Tableau Prep Builder version].app/Contents/scripts/./tableau-prep-cli -dsv -c path/to/[your credential file name].json -t path/to/[your flow file name].tfl</code></p></td></tr><tr><td><code>-h, --help</code></td><td><p>Displays the help menu for the command-line options.</p></td></tr></tbody></table>