datallog create-automation
The datallog create-automation command creates a new automation within an existing Datallog project.
INFO
This command should be run from the root directory of a project (i.e., where the project.yml file is located). It scaffolds a new directory under the automations/ folder containing a boilerplate Python file for your automation logic.
Usage
sh
datallog create-automation [options] <automation_name>Arguments
<automation_name>
- Type:
string - Required: Yes
The name of the automation you want to create. This name must be unique within the project. A directory with this name will be created to house the automation's source code.
Example
Create a new automation named process-invoices:
sh
datallog create-automation process-invoicesAfter running this command, a new directory automations/process-invoices/ will be created. It contains two files:
process-invoices.py: The main file for your automation logic.seed.json: A file where you can place the initial data to be passed to the@core_taskwhen running the automation locally.