---
schema_version: "1"
id: bfe49c3e28bda51de071ca4eb1702e8bd837a4e52639668bd92deae8befd00f9
title: tsm login
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server/cli_login.md
canonical_url: https://help.tableau.com/current/server/zh-cn/cli_login.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 0004657d04fe05e743959904952ee48128b79c5a8189c29ba8f8a5e68ad17a2d
description: Reference for the tsm login command to log in to Tableau Services Manager from a remote node.
---
[跳转到主要内容](#main-content)

# tsm login

使用 `tsm login` 命令从远程节点登录到 Tableau 服务管理器。

如果您的登录用户身份是 TSM-authorized 组的成员，则在本地运行 tsm CLI 时无需提供凭据来运行命令。有关详细信息，请参见[tsm CLI 身份验证](https://help.tableau.com/current/server/zh-cn/tsm.htm#Authenti)。

### 概要

`tsm login [global options]`

## 全局选项

\-h, --help

可选。

显示命令帮助。

\-p, --password <password>

在会话不是活动状态的情况下为必需，`-u` 或 `--username` 也为必需。

为在 `-u` 或 `--username` 中指定的用户指定密码。

如果密码包括空格或特殊字符，请将其括在引号中：

`--password "my password"`

\-s, --server https://<hostname>:8850

可选。

对 Tableau 服务管理器使用指定的地址。URL 必须以 `https` 开头，包括端口 8850，并使用服务器名称（而不是 IP 地址）。例如，`https://<tsm_hostname>:8850`。如果没有指定服务器，则假定为 `https://<localhost | dnsname>:8850`。

\--trust-admin-controller-cert

可选。

使用此标志来信任 TSM 控制器上的自签名证书。有关证书信任和 CLI 连接的详细信息，请参见 [连接 TSM 客户端](https://help.tableau.com/current/server/zh-cn/tsm_overview.htm#Connecti)。

\-u, --username <user>

在会话不是活动状态的情况下为必需，`-p` 或 `--password` 也为必需。

指定用户帐户。如果未包括此选项，则使用您登录所使用的凭据运行该命令。