Command Reference
The Blocklet CLI provides a comprehensive suite of tools for both developing individual blocklets and managing the Blocklet Server environment. The commands are organized into two primary groups:
blocklet: For managing the entire lifecycle of a blocklet, from creation to deployment.blocklet server: For administering the Blocklet Server instance itself.
This reference provides a high-level overview of all available commands. For hands-on tutorials, see the Guides.
Global Options#
The following options are available for all commands.
Option | Description |
|---|---|
| Output the current version of Blocklet CLI. |
| Automatically respond "yes" to all interactive prompts. |
| Display help information for the specified command. |
blocklet Commands#
These commands are used to manage individual blocklet projects. They cover all stages of the development lifecycle, from initializing a project to bundling and deploying it. For a complete list and detailed usage, see the blocklet command reference.
Command | Description |
|---|---|
Add a component dependency to | |
Package a blocklet into a distributable format for deployment. | |
Perform cleanup operations, such as clearing cache or backups. | |
Execute Component Studio CLI commands. | |
Manage local configuration for the Blocklet CLI. | |
Connect and authenticate with a Blocklet Store. | |
Bootstrap a new blocklet project from a starter template. | |
Set debug environments for a running blocklet. | |
Deploy a local blocklet to a Blocklet Server. | |
Start a local development environment for a blocklet. | |
Manage the DID Document for a blocklet. | |
Execute a script within a blocklet's running context. | |
Initialize a new, empty blocklet project. | |
Print the blocklet's metadata. | |
Remove a component dependency from | |
Set up and manage a test environment for a blocklet. | |
Upload a blocklet to a Blocklet Store. | |
Bump a blocklet's version number. |
server Commands#
These commands are used to manage the Blocklet Server instance. You can use them to initialize, start, stop, and monitor the server, as well as perform maintenance tasks. For a complete list and detailed usage, see the server command reference.
Command | Description |
|---|---|
| Perform server-level cleanup work. |
| Get environment information for debugging and issue reporting. |
| Initialize a new Blocklet Server configuration. |
| Show Blocklet Server and blocklet log files. |
| Restart all blocklets in a running server. |
| Start the Blocklet Server. |
| Show the status of the Blocklet Server and all blocklets. |
| Stop the Blocklet Server and all blocklets. |
| Self-upgrade the Blocklet Server to the latest version. |
Now that you have an overview of the command structure, you can explore the detailed documentation for either Blocklet Commands or Server Commands.