---
schema_version: "1"
id: 68befeacae7c8fb284423c6bec6ea3eaa27803a6101cad8172e044d19c1cddf4
title: Automate Licensing Tasks
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/server-linux/license_automating.md
canonical_url: https://help.tableau.com/current/server-linux/en-us/license_automating.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 65d94df42c3c2afbf3639ae03cc2f6afc42426c2400bebc321350a2f26dbdcf5
description: Automate Tableau Server licensing tasks using command line tools and scripts.
---
[Skip to main content](#main-content)

# Automate Licensing Tasks

You can use `[tsm licenses](https://help.tableau.com/current/server-linux/en-us/cli_licenses_tsm.htm)` to perform licensing tasks such as activating or deactivating a Tableau Server product key on- or off-line, and getting associated files for offline activation or deactivation. However, Tableau Server must already be deployed and configured. You can automate these licensing tasks using the [Tableau Services Manager API](http://onlinehelp.tableau.com/v0.0/api/tsm_api/en-us/index.htm).

`C:\ProgramData\Tableau\Tableau Server\data\tabsvc\logs\`