Developing and testing your blocklet locally is a crucial part of the workflow. The Blocklet CLI provides a powerful set of tools to run your blocklet in a live-reloading environment connected to your local Blocklet Server, execute one-off scripts, and debug your application with ease. This section covers the essential commands for your local development loop.
Develop Mode
Run your blocklet in a live-reloading development environment. The `blocklet dev` command handles installation, starting, and watching for file changes, providing a seamless development experience.
Execute Script
Execute a script within the context of a running blocklet. Ideal for tasks like database migrations, data seeding, or other one-off administrative jobs.
Debug Blocklet
Easily set debug configurations for a specific blocklet. This allows you to enable verbose logging or other debugging features without modifying your code.
Explore the guides in this section to master each aspect of local blocklet development. To manage the components within your project, see the Component Management documentation.