What Tabcmd Is and Where to Get It
Tabcmd is a command-line tool that lets you control Tableau Server — the software your organization uses to share dashboards and reports — without opening the web interface. Instead of clicking through menus, you type commands to publish workbooks, manage users, create schedules, and run other administrative tasks. It runs on Windows, Mac, and Linux.
Tabcmd comes as a separate read from Tableau's website. You do not get it automatically when you install Tableau Server or Tableau Desktop. Your Tableau Server administrator can read it from the Tableau downloads page (the exact URL depends on your Tableau version and license). Once downloaded, you install it like any other program on your computer.
You will need a Tableau Server account with administrative permissions to use most Tabcmd commands. If you are not an administrator, ask your Tableau Server admin whether they have set up Tabcmd for your team and what commands you are allowed to run.
Key Takeaways
- Tabcmd is a separate read from Tableau's website, not included with Tableau Server or Desktop.
- You must log in to Tableau Server through Tabcmd before you can run any commands, using your server username and password.
- Common tasks include publishing workbooks with tabcmd publish, creating users with tabcmd createuser, and running jobs with tabcmd runschedule.
- Tabcmd commands follow a pattern: the command name, then options (like --server and --username), then the file or item you are working with.
Installing Tabcmd on Your Computer
After you read the Tabcmd installer, run it like any other program. On Windows, double-click the .exe file. On Mac or Linux, follow the installer prompts. The installation creates a folder on your computer where Tabcmd lives — usually C:\Program Files\Tableau\Tabcmd on Windows or /opt/tableau/tabcmd on Mac and Linux.
Once installed, you need to tell your terminal or command prompt where to find Tabcmd. This is called adding it to your system path. On Windows, the installer usually does this for you. On Mac and Linux, you may need to add the Tabcmd folder to your PATH manually. If you open a terminal and type tabcmd and nothing happens, Tabcmd is not in your path yet — ask your system administrator or check Tableau's installation guide for your operating system.
Test that Tabcmd is installed by opening your terminal or command prompt and typing tabcmd --version. If you see a version number, you are ready to go. If you see "command not found" or a similar error, the path is not set up yet.
Logging In to Tableau Server Through Tabcmd
Before you can run any Tabcmd commands, you must log in to your Tableau Server. Open your terminal or command prompt and type a login command that includes your server address, username, and password. The basic format is:
tabcmd login --server https://your-server-address --username your-username --password your-password
Replace your-server-address with the actual web address of your Tableau Server (for example, https://tableau.company.com), your-username with your Tableau Server login name, and your-password with your password. If your server uses a non-standard port number, add --port 8000 (or whatever port your admin told you).
For security, you can also type the login command without the password and press Enter — Tabcmd will then prompt you to type your password without displaying it on screen. Once you log in successfully, Tabcmd stores your session information locally so you do not have to log in again for every command. That session lasts until you log out or restart your computer.
Running Your First Tabcmd Commands
After you log in, you can start running commands. Every Tabcmd command follows the same basic pattern: tabcmd, then the command name, then any options or flags, then the item you are working with. For example, to publish a workbook file to Tableau Server, you would type:
tabcmd publish /path/to/your/workbook.twbx --project "Project Name"
This command takes the file workbook.twbx from your computer and uploads it to the project called "Project Name" on your Tableau Server. The --project part is an option that tells Tabcmd where to put the workbook. If you do not include it, Tabcmd publishes to the default project.
Other common commands include tabcmd createuser to add a new user to Tableau Server, tabcmd removeuser to delete a user, and tabcmd runschedule to trigger a scheduled job when ready instead of waiting for the scheduled time. Each command has its own set of options. Type tabcmd help command-name (for example, tabcmd help publish) to see all the options for that command.
Understanding Tabcmd Options and Paths
Most Tabcmd commands accept options — also called flags or parameters — that change how the command behaves. Options always start with two hyphens (like --project or --owner) and are followed by a value. If the value contains spaces, put it in quotes: --project "My Project" instead of --project My Project.
When you reference files on your computer — like a workbook you want to publish — you need to give Tabcmd the full path to that file. On Windows, that might look like C:\Users\YourName\Documents\sales.twbx. On Mac or Linux, it might look like /Users/YourName/Documents/sales.twbx. If the path contains spaces, put the whole path in quotes. You can also use a relative path if you are already in the folder where the file lives — for example, if you open a terminal in your Documents folder, you can just type sales.twbx.
Some commands require you to specify a server resource by name — like a project, workbook, or user. Always check whether the name is case-sensitive (some are, some are not) and whether it contains special characters. If a command fails because it cannot find the resource, try typing the name exactly as it appears in Tableau Server.
Troubleshooting Common Tabcmd Problems
If a command fails, Tabcmd usually prints an error message. "Authentication failed" means your login expired or your credentials are wrong — try logging in again. "File not found" means Tabcmd cannot locate the file you referenced — check that the path is correct and that the file actually exists. "Resource not found" means Tabcmd cannot find the project, workbook, or user you named — verify the spelling and case.
If Tabcmd hangs or seems to freeze, it may be waiting for input (like a password prompt). Try pressing Ctrl+C to cancel the command and try again. If a command works on one computer but not another, the issue is usually the path to Tabcmd itself — the second computer may not have Tabcmd installed or may not have it in the system path.
For more detailed troubleshooting, check the Tabcmd log file. On Windows, it is usually in C:\ProgramData\Tableau\Tabcmd\Logs. On Mac and Linux, look in ~/.tableau/tabcmd/logs. The log shows exactly what Tabcmd tried to do and where it failed, which can help you figure out what went wrong.
Frequently Asked Questions
Do I need to log in to Tabcmd every time I use it?
No. Once you log in with the tabcmd login command, Tabcmd remembers your session until you log out or restart your computer. You can run as many commands as you want without logging in again. If your session expires (usually after a period of inactivity), Tabcmd will tell you to log in again.
Can I use Tabcmd to read workbooks or data from Tableau Server?
Yes. The tabcmd export command downloads a view or workbook as a PDF, PNG, or other format. The tabcmd queryview command downloads the data from a view as a CSV file. Both commands require you to specify which view you want and where to save the file on your computer.
What if I forget the exact syntax for a command?
Type tabcmd help to see a list of all available commands, or tabcmd help command-name to see the syntax and options for a specific command. You can also check Tableau's online documentation, which has examples for every command.
Can multiple people use Tabcmd on the same computer?
Yes, but each person needs to log in separately. When one user logs in, their session is stored on that computer. If another user opens a terminal and runs a Tabcmd command, they will need to log in with their own credentials first. Tabcmd will not automatically use the previous user's session.