Blocklet Commands
The blocklet command is the primary tool for managing the entire lifecycle of an individual blocklet project. It provides a suite of subcommands to handle tasks such as scaffolding a new project, running a local development server, bundling for production, and deploying to a server or publishing to a Blocklet Store.
For managing the Blocklet Server environment itself, see the blocklet server command set.
Development Workflow#
The following diagram illustrates the typical workflow using blocklet commands, from project creation to deployment.
Command Summary#
The blocklet command suite includes tools for every stage of development. Below is a summary of the available commands. Select a command to view its detailed documentation.
Command | Description | More Info |
|---|---|---|
| Creates a new, empty blocklet project from scratch. | |
| Bootstraps a new blocklet from various starter templates. | |
| Starts a local development environment for a blocklet. | |
| Packages a blocklet into a distributable format for deployment. | |
| Deploys a blocklet from a local directory to a Blocklet Server. | |
| Uploads a packaged blocklet to the Blocklet Store. | |
| Connects and authenticates with a Blocklet Store. | |
| Manages local CLI configuration settings. | |
| Bumps the version of a blocklet in | |
| Executes a script within a blocklet's running context. | |
| Adds a component dependency to | |
| Removes a component dependency from | |
| Sets a debug flag or URL for a running blocklet. | |
| Sets up and manages a test environment for a blocklet. | |
| Performs cleanup operations, such as clearing the cache. | |
| Prints the parsed metadata of a blocklet. | |
| Manages the DID Document for a blocklet. | |
| Executes commands from the Component Studio CLI. |
Global Options#
These options can be used with any blocklet command.
Option | Alias | Description | Default |
|---|---|---|---|
|
| Automatically answers yes to any interactive prompts. |
|
|
| Displays help information for a command. |
|
Now that you have an overview of the command set, a good next step is to create your first blocklet. Follow our guide on Creating a Blocklet to get started.