Automations are registered with the push command. You’ll need to specify the filename which contains the automation definition relative to your current working directory. All files in the directory will be bundled when the automation is registered and uploaded.

For example, if you have an automation defined in main.py within a .blocks/hello-world directory, you can register it with the following command:

blocks push .blocks/hello-world/main.py