The push command is used to register an automation. This command will create a new automation if it doesn’t already exist, or update an existing automation if it does.

blocks push <relative-path-to-filename>

If your folder structured looked like the following:

.blocks/
    your_automation/
        filename.py

You’d run:

blocks push .blocks/your_automation/filename.py

When you change your automation’s pip or plugins dependencies, the command may take a few minutes to complete, since we need to build a runtime for your automation. Subsequent pushes will execute immediately, assuming the dependencies have not changed.

The name of an automation is specified in the task decorator. This is used to identify an automation and must be unique per workspace. Changing this will create a new automation.