How to get the licensed user count using Bitbucket Command Line Interface (CLI)

This article explains how to get the licensed users count in Bitbucket using Bitbucket Command Line Interface (CLI).


Use the getServerInfo action to get the number of licensed users with the outputFormat parameter. This is applicable from Bitbucket CLI app v9.3 and higher.

Run the CLI action as follows:

--action getServerInfo --outputFormat 2

You can verify the value of Current licensed users from the output of the CLI action as shown in the screenshot:

  • The license information is available from Bitbucket CLI version 9.3 and higher.