Skip to main content

A command line client for working with Tableau Server.

Project description

Tabcmd

Tableau Supported Code style: black Python tests Pypi smoke tests

An open source, cross platform command-line utility which you can use to automate site administration tasks on your Tableau Server site.

Download exe (or rpm/deb)

tabcmd [command_name] [--flags]

e.g

  • tabcmd login --username [username] --password [password] --server [server_name] --site [site_name]
  • tabcmd createproject --name [project_name]
  • tabcmd help

###or

Install on the command line (requires Python 3.7+)

pip install tabcmd

Or install the current work-in-progress version from Git
Only do this if you know you want the development version, no guarantee that we won't break APIs during development

pip install git+https://github.com/tableau/tabcmd.git@development

If you go this route, but want to switch back to the non-development version, you need to run the following command before installing the stable version:

pip uninstall tabcmd

Run tabcmd

To run tabcmd from your local copy, from a console window in the same directory as the file tabcmd.py:

  1. Clone the repo
  2. Run pip install .
  • build

python setup.py build

  • run tests

pytest

  • run tests against a live server

python -m tabcmd login {your server info here} pytest -q tests\e2e\online_tests.py -r pfE

coverage run -m pytest && coverage report -m

black --line-length 120 tabcmd tests [--check]

  • type check with mypy

mypy tabcmd tests

  • packaging is done with pyinstaller. You can only build an executable for the platform you build on.
  • To package a release, we first bump the version with doit version and build as 2.x.0 before packaging

pyinstaller tabcmd\tabcmd.py --clean --noconfirm

produces dist/tabcmd.exe To run tabcmd during development, from a console window in the same directory as the file tabcmd.py:

dist/tabcmd/tabcmd.exe --help

  • python -m tabcmd.py [command_name] [--flags]
    • Examples:
      • tabcmd.py login --username [username] --password [password] --server [server_name] --site [site_name]
      • tabcmd.py createproject --name [project_name]
      • tabcmd.py help

For more examples and information about the available commands and options, see the user documentation at https://tableau.github.io/tabcmd/

Release Notes

Version 2.0 is the first version of tabcmd built in python. It is specifically targeted to support users of Tableau Online, who are required to have MFA enabled. (MFA support is not available in tabcmd 2022.2). It does not yet fully replace the existing tabcmd client.
Known gaps

  • handling custom views in get/export commands
  • several commands that can only be run by a Server Admin:
    • editdomain / listdomains
    • initialuser
    • reset_openid_sub
    • runschedule
    • set
    • syncgroup
    • upgradethumbnails
    • validateidpmetadata

About

Tabcmd has been shipped with Tableau Server, and for at least 2022 it will continue being shipped with new installs of Server. This new version of tabcmd can be updated for users at any time, without waiting for a new release of Server. Significant new features will only be added to this new version.

Which one do I have?

Copies of tabcmd that shipped with Tableau Server are referred to by the version number they shipped in: e.g. tabcmd 2020.4, tabcmd 2021.4, etc. The first version built in python is tabcmd 2.0. To see the version of your current tabcmd, run

tabcmd -v

Will one of them go away?

At some point in the future, tabcmd will no longer be included with Tableau Server. We have no intention of breaking Server install flows. If you have specific suggestions or concerns on what that will look like, feel free to open an issue here or a thread on the Community Forums.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tabcmd-2.0.11.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

tabcmd-2.0.11-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file tabcmd-2.0.11.tar.gz.

File metadata

  • Download URL: tabcmd-2.0.11.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for tabcmd-2.0.11.tar.gz
Algorithm Hash digest
SHA256 619b27332e6d85a933ce2101d3aeb6c6ec4e6fc4b977e570d04750df71a31218
MD5 5f7577e6727eb94dd4cbdc09ce243c86
BLAKE2b-256 c3ecf89621f2d78db353196b3b191094fb7a6ac77cb8c17580998b0a7c6ac9e6

See more details on using hashes here.

File details

Details for the file tabcmd-2.0.11-py3-none-any.whl.

File metadata

  • Download URL: tabcmd-2.0.11-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for tabcmd-2.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d80d96537e9f2d42bd6e6225ef71fd7632d908f8eff088cb4240da38ff134423
MD5 0731801bcde21144504e4895fbd6cd4d
BLAKE2b-256 c1768d56ed86355fe13cf8edb1f8846ee24bf3b59edab6a9ef9d0a2fe54a4220

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page