The Sirveo CLI
The binary is typically used to start the server:
sirveo server --config-file /etc/sirveo/config.yamlFor additional commands and utilities, see:
sirveo --helpSome useful commands are further documented below.
version
To check the release version, use one of:
sirveo versionsirveo --versionWhich outputs:
version: 0.2.1commit: 30a9b84build time: 2024-03-14T01:40:43+02:00build mode: licenseddatabase revision: 14adduser
This command creates additional users. It is useful to recover access if credentials are lost. Since it must interact with the database, it requires a configuration file with at least all the db_* settings configured appropriately.
Example usage:
sirveo adduser --config-file=config/config.jsonDetails are prompted for interactively:
database connected: localhost:5432existing users: 1Enter Username (min 5 chars): recovery_adminEnter Password (2-255 chars): <hidden>New user account createdrecovery_admin (2534567b-4eea-4595-c4c7-a466362b57e4)check-license
Use this command to inspect license details, without starting the server.
Example output:
------------------License is valid------------------Validation Message: license is validLicense Key: XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXLicense Issued At: 2024-02-19T20:24:19ZLicense Valid From: 2024-02-19T20:24:19ZLicense Valid Until: 2024-03-20T20:24:19ZLicense Name: Cloud Sandbox LicenseInstance Limit: 1Scheme: V1To provide the input license via text file:
sirveo check-license --random-instance-id --file license.txtOr via the SIRVEO_LICENSE environment variable:
sirveo check-license --random-instance-id --envOr via CLI:
sirveo check-license --random-instance-id --license '...license content'In the above examples, the input license is being validated against a randomly-generated instance ID. Some licenses may require a specific instance ID. If a server has an existing database, its instance ID can be obtained from the database:
select value from server_state where key = 'instance_id';And provided to the check-license command via:
sirveo check-license \ --file license.txt \ --instance-id='1f6f25e4-383a-4fae-a0b5-818f90b68b8c'legal
This command prints Sirveo’s end user license agreement:
sirveo legal --eulaAnd third party notices and software licenses:
sirveo legal --third-party