Skip to content

Conversation

@ovenum
Copy link
Contributor

@ovenum ovenum commented Jul 18, 2025

Description

This PR adds two new commands under the license namespace:

  • license:info: Displays Kirby license details in a table or as JSON
  • license:renewal: Shows the renewal date for the current license

Reasoning

The license:info command, with the --format=json option, can be used within a CI system to programatically keep on track of Kirby license status when managing multiple Kirby installations.

license:renewal provides a shortcut to get the license renewal date.

Additional context

The commands rely on kirby()->system()->license() method, which was added in 4.0.0. Currently the commands do not check the Kirby version and will throw an error if used on an older Kirby installation.

This can be addressed but i could not find any exemplary code regarding on how to deal with backwards compatability.

Adds two new commands:
- `license:info`: Displays Kirby license details in a table or as JSON
- `license:renewal`: Shows the reneval date for the current license
@bastianallgeier
Copy link
Member

This is a really cool idea. I have spotted two issues though.

  • The signature is so long that the table layout breaks. I also really wonder if it should be displayed at all.
  • The renewal date is always represented as a timestamp. I think it would be nice to turn that into a human-readable date.

@ovenum
Copy link
Contributor Author

ovenum commented Jul 21, 2025

@bastianallgeier glad you like it.
Just updated the PR with your notes.

  • info command no longer includes the signature field. instead a predefined list of fields is used for display. did not test on live installation 🤦‍♂️
  • renewal command accepts a format argument which defaults to Y-m-d.

@bastianallgeier bastianallgeier merged commit 36c9357 into getkirby:main Jul 21, 2025
6 checks passed
@bastianallgeier
Copy link
Member

I've just merged it manually and also removed the hashed order id from the table. You cannot do anything useful with it anyway.

@bastianallgeier bastianallgeier added this to the 1.7.0 milestone Jul 21, 2025
@ovenum ovenum deleted the feature/license-command branch July 22, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants