sourabh yadav
sourabh yadav

Reputation: 11

How to create jobs and bridges on a chainlink node using CLI

I am trying out all the CLI commands on a chainlink node. The main motivation is to execute these commands as bash scripts with chainlink node CLI. I have been unsuccessful in executing the two main commands which are as follows:

I run the commands using the following syntax: docker exec -it chainlink /bin/bash -c "cmd1, cmd2"

I have created bridge.json and job.toml files and provide them with --file flag in the CLI commands. Also, I have tried positioning them in the root and in the chainlink directory and tried providing the JSON and TOML as raw input with the commands.

The errors I get are:

Please help me with the correct syntax needed to create a job and bridge on a chainlink node using the CLI.

Upvotes: 1

Views: 302

Answers (1)

Harry Papacharissiou
Harry Papacharissiou

Reputation: 856

if you want to create jobs/bridges etc using files that contain the details of what you want to create, you use the syntax as follows. Note this will create a job using the TOML found in the a.toml file in the root of the chainlink node directory:

./chainlink jobs create a.toml

Upvotes: 1

Related Questions