Skip to content

Install and renew the licence

Before you begin

You need
  • The licence file MockHub sent you
  • An instance administrator account, or shell access to the host

Install the licence when the installation is new, and each renewal as MockHub sends it, either in the app or from the host. MockHub verifies the file before it takes effect.

  1. Open Admin → Licence.

  2. Under Install a licence, paste the file’s content into Licence file, or select Choose file… and pick the file.

  3. Select Install licence.

  1. Copy the file to the host and run, from the installation directory:

    Terminal window
    ./mockhub licence install customer.licence

    Or pass it on standard input with - in place of the file name.

A message says Licence installed, and the page shows the new Status, Seats and Terms. From the host, the command prints the licence’s state in one line, such as valid until 2027-12-31, 25 seats.

A licence that has already started replaces the current one at once. One whose Valid from is later waits as a Staged renewal, and the message says when it takes effect; its terms replace the current ones that day, with nothing more to do. Installing the same licence again changes nothing.

Nothing is installed, and the current licence stays as it was:

Message Why
A licence file is two base64 parts joined by a dot. What was pasted is not a whole licence file. Paste the file’s entire content, or choose the file
The licence's signature does not match its contents. The file was changed after MockHub signed it. Use the file exactly as MockHub sent it
The licence is signed with key "<key>", which this release does not hold. The installation runs a release older than the key MockHub signed it with. Upgrade, or ask MockHub
This licence expired on <date>. Its grace has also ended. Ask MockHub for a current licence

Admin → Licence shows the status, the seats used of those granted, and the terms. From the host:

Terminal window
./mockhub licence status
./mockhub licence status --json

The first prints one line and answers 0 when the licence needs nothing, 1 when it warns, near or past its expiry, and 2 when changes are refused. ./mockhub status includes the same check. A licence issued for another API hostname adds a warning, and still governs.

For a renewal, or an audit under your contract, MockHub asks for the usage report. Nothing is sent by itself:

  1. Run, from the installation directory:

    Terminal window
    ./mockhub licence report --out usage.json
  2. Send usage.json to MockHub.

The report is JSON:

{
"generatedAt": "2027-11-25T09:30:00+00:00",
"release": "v1.4.0",
"licence": {
"id": "8f0e5d0c-3b8a-4a52-9f7e-1d6c2b9a4e10",
"customer": "Example Ltd",
"seats": 25,
"expiresAt": "2027-12-31T00:00:00+00:00"
},
"status": "expiring",
"seatsUsed": 23,
"workspaces": 9,
"projects": 41,
"requestsLast30Days": 1830442
}

It holds counts only: no names, addresses or content.

  • Only an instance administrator installs a licence in the app; anyone with shell access to the host can install one from there.
  • A licence cannot be removed. Install a new one to replace it.
  • The licence does not move between installations by itself. On a new host, a restore brings it back with the rest of the data.

Report a problem with this page