---
schema_version: "1"
id: 30d7610e8da3a7ab0f2bc91cabb9296c6f175a886724e462ae0d1da9b6a2dc7f
title: Automate Licensing Tasks
collection: tableau
version: next
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/next/en-gb/server-linux/license_automating.md
canonical_url: https://help.tableau.com/v0.0/server-linux/en-gb/license_automating.htm
source_site: help.tableau.com
content_type: documentation
content_hash: bc6beeb64dae9e2e74ea0acec7bcd2a829c45dd6fb866d068878a73c068ab5d6
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 licences](https://help.tableau.com/v0.0/server-linux/en-gb/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-gb/index.htm).

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