---
schema_version: "1"
id: c87e0f91f9e1cade9a7b559d7cdf84464c661cc1eb3bb0a63cb75fbd221e31e1
title: 使用 Tableau Content Migration Tool 控制台執行器
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/online/cmt-deployment_console_runner.md
canonical_url: https://help.tableau.com/current/online/zh-tw/cmt-deployment_console_runner.htm
source_site: help.tableau.com
content_type: documentation
content_hash: b0bd2eefb4379e9d8129b1302064bd9497d860c073377576f7ab4b10672dfc00
description: Reference for the Content Migration Tool tabcmt-runner.exe console runner for running migrations.
---
[跳至主要內容](#main-content)

# 使用 Tableau Content Migration Tool 控制台執行器

Tableau Content Migration Tool 包含用來執行移轉工作的命令列公用程式 `tabcmt-runner.exe`，程式位於安裝資料夾中。預設的安裝資料夾為 `%PROGRAMFILES%\Tableau\Tableau Content Migration Tool`。

**附註：**`tabcmt-runner.exe` 公用程式與 `tabcmt.cmd` 命令列公用程式不同，後者用於設定 Content Migration Tool 圖形應用程式。有關 `tabcmt.cmd` 的詳情，請參閱[使用 Tableau Content Migration Tool 命令列介面](https://help.tableau.com/current/online/zh-tw/cmt-command_line.htm)。

用法：

- tabcmt-runner \[options\] <plan\_file.tcmx>
- tabcmt-runner license --remove
- tabcmt-runner license <new license key>
- tabcmt-runner license <license file path> \[--passphrase=<license file passphrase>\]
- tabcmt-runner encryption --reset
- tabcmt-runner encryption <new\_key>
- tabcmt-runner improvement \[on|off\]
- tabcmt-runner --help
- tabcmt-runner --version
- tabcmt-runner script-warning \[on|off\]

選項：

- \--version
- \--help
- \--quiet
- \--info
- \--logfile=VALUE
- \--src-user=VALUE
- \--src-password=VALUE
- \--dest-user=VALUE
- \--dest-password=VALUE
- \--https=VALUE
- \--allow-scripts

## 執行計劃

立即執行移轉計畫。

tabcmt-runner \[options\] <plan file>

### 可用選項：

- `--logfile=<file name>` 會設定記錄輸出目的地的檔案名稱
- `--https=<secure|legacy>` 會設定 HTTPS 模式
- `--quiet` 會停用記錄至 stdout
- `--src-user=<username>` 會設定來源連線的使用者名稱
- `--src-password=<password>` 會設定來源連線的密碼
- `--dest-user=<username>` 會設定目的地連線的使用者名稱
- `--dest-password=<password>` 會設定目的地連線的密碼

### 結束代碼：

- 0 表示移轉成功。
- 1 表示移轉成功，但已記錄警告訊息。
- 2 表示移轉失敗。記錄輸出中會包含明確的錯誤訊息。

## 顯示計劃摘要

顯示移轉計劃的摘要，然後結束。

tabcmt-runner --info <plan file>

### help

會顯示命令列公用程式的使用情況資訊。

tabcmt-runner --help

### version

顯示目前的應用程式版本資訊。

tabcmt-runner --version

### encryption

重設加密金鑰，或指定新的金鑰。使用 `tabcmt-runner` 公用程式之前，您必須先指定加密金鑰，即使您已在 Content Migration Tool UI 中做過這項指定，仍是如此。

tabcmt-runner encryption <new\_key> | --reset

### improvement

預設值：`on`

會啟用或停用應用程式收集匿名使用情況資訊的功能。此資訊完全匿名，並且會定期傳送至 Tableau 以協助我們改善 Content Migration Tool。

#### 範例

顯示是否啟用或停用改善計畫：

tabcmt-runner improvement

啟用或停用改善計畫：

tabcmt-runner improvement <on|off>

### license

已於 2022 年 7 月棄用。

此命令僅適用於舊版授權。管理目前使用者的舊版應用程式授權。使用舊版金鑰時，若要使用 `tabcmt-runner` 公用程式，您必須使用此命令來啟用授權，即使您已在 Content Migration Tool UI 中加以啟用，仍是如此。

#### 範例

顯示目前的授權資訊：

tabcmt-runner license

設定/啟動序列金鑰或離線授權金鑰：

tabcmt-runner license <key>

移除/停用目前的授權：

tabcmt-runner license --remove

使用授權檔案設定/啟動：

tabcmt-runner license <file path> \[--passphrase=<password>\]

### script-warning

預設值：`on`

執行包含移轉指令碼的移轉計劃時顯示警告訊息。

**附註：**此命令會更新您在「設定」頁面上的選取項目。有關詳情，請參閱 [Tableau Content Migration Tool 設定](https://help.tableau.com/current/online/zh-tw/cmt-settings.htm)。

#### 範例

顯示指令碼警告是開啟還是關閉。

tabcmd-runner script-warning

開啟或關閉指令碼警告

tabcmd-runner script-warning <on|off>

若開啟，必須包含選項`--allow-scripts` 才能執行移轉計劃。

tabcmd-runner --allow-scripts <plan file>

## 誰可以執行此動作

若要使用主控台執行程式，您必須具備以下所有項目：

- Content Migration Tool 機器上的管理員權限。
- 具有 Explorer 角色或更高等級角色的 Tableau 站點使用者帳戶。
- 在來源站點上檢視及下載工作簿/儲存副本權限。
- 目的地站點的發佈權限。

## 此區段的其他文章