blocklet server
The blocklet server
command is the primary tool for managing the lifecycle of a Blocklet Server instance. This includes initializing a new server, starting and stopping the service, checking its status, and performing maintenance tasks such as upgrades and migrations.
All subcommands can be run with the -h
or --help
flag to display specific options.
Global Options#
These options can be used with any blocklet server
subcommand.
Option | Description |
---|---|
| Output the version number. |
| Specifies the Blocklet Server configuration file to use. |
| Automatically answers "yes" to any prompts. Default is |
| Display help information for the command. |
init#
Initializes a new Blocklet Server configuration. This command sets up the necessary directories and configuration files for a new server instance.
Usage
blocklet server init [options]
Options
Option | Description |
---|---|
| Initialize without asking any questions. Default: |
| Run in interactive mode. This is ignored if |
| Sets the initial server mode. Allowed values: |
| Enable or disable default HTTPS support for the dashboard and blocklets. |
| Provide a custom secret key for the Blocklet Server. |
| Sets a custom URL for the web wallet. Defaults to the standard Blocklet web wallet. |
| Specifies the HTTP port for the service gateway. Default: |
| Specifies the HTTPS port for the service gateway. Default: |
| The DID of the holder of the ownership NFT. |
| The DID of the issuer of the ownership NFT. |
| The DID of a trusted passport issuer for the node. |
| Disables the node's ability to issue passports. Default: |
start#
Starts the Blocklet Server daemon process using the existing configuration.
Usage
blocklet server start [options]
Options
Option | Description |
---|---|
| Updates the Blocklet Server database with the latest settings from the config file. |
| Updates the environments for installed blocklets. Default: |
| Keeps the command running without exiting after a successful start. Default: |
| If the configuration directory is missing, initialize it automatically before starting. Default: |
| Forces the server to start in a specific mode. Allowed values: |
| Forces the server to run in intranet mode, ignoring any external IP. |
stop#
Stops the running Blocklet Server and all associated blocklet processes.
Usage
blocklet server stop [options]
Options
Option | Description |
---|---|
| Forcefully stops all Blocklet Server related processes. Default: |
status#
Displays the current status of the Blocklet Server and all installed blocklets.
Usage
blocklet server status [options]
Options
Option | Description |
---|---|
| Assumes an intranet environment when checking status. |
logs#
Shows the file paths for Blocklet Server and blocklet log files.
Usage
blocklet server logs
upgrade#
Upgrades the Blocklet Server to the latest version.
Usage
blocklet server upgrade
info#
Retrieves environment information for debugging and issue reporting.
Usage
blocklet server info [options]
Options
Option | Description |
---|---|
| Automatically copies the environment information to the clipboard. Default: |
cleanup#
Performs various cleanup tasks on the server.
Usage
blocklet server cleanup [options]
Options
Option | Description |
---|---|
| Specifies what to clean. Available targets: |
migrate#
Migrates the Blocklet Server database from one dialect to another, for example, from SQLite to PostgreSQL.
Usage
blocklet server migrate [options]
Options
Option | Description |
---|---|
| The target database dialect. Available options: |
Now that you understand how to manage the server instance, see the blocklet command reference to learn how to manage individual blocklets.