blocklet
The blocklet command is the primary interface for managing the entire lifecycle of a Blocklet project. It provides a comprehensive suite of subcommands for initializing, developing, bundling, deploying, and managing blocklets and their components.
Global Options#
Project Setup#
Commands to bootstrap and initialize new Blocklet projects.
blocklet create#
Bootstrap a new Blocklet project from various starter templates.
Usage
blocklet create [name] [options]Arguments
Options
blocklet init#
Initialize an empty Blocklet project in the current directory. This command creates the blocklet.yml file and essential project structure.
Usage
blocklet init [options]Options
Local Development#
Commands for running, testing, and debugging your blocklet in a local environment.
blocklet dev#
Run the blocklet in development mode from the current directory, connecting it to the local Blocklet Server.
Usage
blocklet dev [subcommand] [options]Options
Subcommands
Command | Description |
|---|---|
| Install the development mode blocklet. |
| Start the development blocklet after it has been installed. Supports |
| Remove the development mode blocklet. |
| Start the Blocklet Studio. |
| Reset the blocklet's data. Alias: |
| Fund your app with test tokens from a faucet. Supports |
blocklet test#
Set up and manage a test environment for your blocklet.
Usage
blocklet test [subcommand] [options]Subcommands
Command | Description |
|---|---|
| Initialize a new blocklet for testing. Supports |
| Start the test blocklet. Supports |
| Completely delete the test blocklet. Supports |
| Reset the state of the test blocklet. Supports |
blocklet exec#
Execute a script within the running context of a blocklet.
Usage
blocklet exec <script> [options]Arguments
Options
blocklet debug#
Set the DEBUG environment variable for a blocklet.
Usage
blocklet debug <value> [options]Arguments
Options
Component Management#
Commands for managing component dependencies within your blocklet.
blocklet add#
Add a component as a dependency to your blocklet.yml file.
Usage
blocklet add <component> [options]Arguments
Options
blocklet remove#
Remove a component dependency from your blocklet.yml file.
Usage
blocklet remove <component>Arguments
blocklet component#
Execute commands from the Component Studio CLI.
Usage
blocklet component [command...]This command acts as a proxy, passing all subsequent arguments to the @blocklet/component-studio-cli.
Packaging & Versioning#
Commands to prepare your blocklet for distribution.
blocklet bundle#
Package your blocklet and its assets into a deployable bundle.
Usage
blocklet bundle [options]Options
blocklet version#
Bump the blocklet's version in blocklet.yml.
Usage
blocklet version [newVersion] [options]Arguments
Options
Distribution#
Commands for deploying your blocklet to a server or uploading it to a store.
blocklet deploy#
Deploy a blocklet from a local directory to a Blocklet Server instance.
Usage
blocklet deploy <folder> [options]Arguments
Options
blocklet upload#
Upload a bundled blocklet to a Blocklet Store.
Usage
blocklet upload [metafile] [options]Arguments
Options
blocklet connect#
Connect and authenticate the CLI with a Blocklet Store.
Usage
blocklet connect <store-url> [options]Arguments
Options
Utilities#
Helper commands for managing configurations and metadata.
blocklet config#
Manage the local configuration for the Blocklet CLI.
Usage
blocklet config [subcommand] [key] [value]Subcommands
Command | Description |
|---|---|
| Set a configuration value. |
| Get a configuration value. |
| Delete a configuration value. |
| List all configuration values. Alias: |
blocklet meta#
Parse and print the blocklet.yml metadata from the current directory.
Usage
blocklet metablocklet document#
Manage the DID document for a blocklet.
Usage
blocklet document update <app-id>Subcommands
Command | Description |
|---|---|
| Update the DID document for the specified blocklet. |
blocklet cleanup#
Perform cleanup tasks for a specific blocklet.
Usage
blocklet cleanup [options]Options