CLI
create
The create
command is used to create a new automation template. This will only create the directory and template files, and will not register the automation.
This will create a new automation in the .blocks
directory with the following structure:
You can edit the main.py
file to define your automation, and add any dependencies to requirements.txt
. We automatically add blocks-sdk
as a dependency. You’ll want to update the blocks-sdk
version often to get the latest features and bug fixes.