The blocklet server command is your primary tool for managing the lifecycle of a Blocklet Server instance. It allows you to initialize configurations, start and stop the server daemon, check its status, and perform various maintenance tasks. This suite of commands ensures you have full control over your server environment directly from the command line.
Each command is designed for a specific stage of server management. Explore the cards below to learn more about each function.
Initialize Server
Set up a new configuration directory and generate the `config.yml` file required to run a Blocklet Server.
Start Server
Launch the Blocklet Server daemon process in the background based on an existing configuration.
Stop Server
Gracefully shut down the running Blocklet Server and all associated blocklet processes.
Check Status
View the current operational status of the Blocklet Server and all installed blocklets.
View Logs
Quickly access the file paths for Blocklet Server and individual blocklet logs for troubleshooting.
Upgrade Server
Update the Blocklet Server CLI to the latest available version to get new features and fixes.
Migrate Database
Migrate your server's database from SQLite to a different system like PostgreSQL.
Get Server Info
Collect and display essential environment information for debugging and reporting issues.
Cleanup Server
Perform cleanup tasks like clearing the cache, blacklist, or resetting the server's maintenance status.
Mastering these commands is key to effectively managing your Blocklet Server. Once your server is up and running, you can proceed to manage individual blocklets with the commands detailed in the Blocklet Workflows section.