---
title: Upgrading a license using the dsconfig command
description: Upgrade a PingDirectory suite license using the dsconfig command in interactive or non-interactive mode.
component: pingdirectory
version: 11.1
page_id: pingdirectory:installing_the_pingdirectory_suite_of_products:pd_ds_upgrade_license_dsconfig
canonical_url: https://docs.pingidentity.com/pingdirectory/11.1/installing_the_pingdirectory_suite_of_products/pd_ds_upgrade_license_dsconfig.html
llms_txt: https://docs.pingidentity.com/pingdirectory/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: August 20, 2024
page_aliases: ["pd_ds_upgrade_dsconfig_int_mode.adoc", "pd_ds_upgrade_dsconfig_non_int_mode.adoc"]
section_ids:
  in-interactive-mode: In interactive mode
  steps: Steps
  in-non-interactive-mode: In non-interactive mode
  steps-2: Steps
---

# Upgrading a license using the dsconfig command

Follow these instructions to upgrade your license using the `dsconfig` command in interactive or non-interactive mode. The `dsconfig` command is located in `<server-root>/bin`.

## In interactive mode

### Steps

1. Run the `dsconfig` command-line tool.

2. Select **License** from the **Topology** section of the menu.

3. Select **View and edit the license** from the menu.

4. Enter `1` to edit the `directory-platform-license-key` property.

   You should see a message like the following:

   ```
   The value of 'directory-platform-license-key' has been written to the file below.  You can edit and save the file,
   return here, and choose 'finish' to import the changes:

   /Users/<your_id>/PingDirectory/tmp/dsconfig-5614232350526437974-license-directory-platform-license-key.lic
   ```

5. Open the new license file in a text editor.

6. Overwrite the contents of the temporary file specified by the `dsconfig` tool with the contents of the new license.

7. Save your changes.

## In non-interactive mode

### Steps

1. Enter the following command, providing the absolute path to the new license file and making sure to preserve the double quotes:

   ```
   dsconfig set-license-prop \
     --set "directory-platform-license-key<{absolute_path_to_license.lic}"
   ```

2. Confirm that the command completed successfully.
