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:
- create a job on the node using
chainlink jobs create --file - create a bridge to an external adapter using
chainlink bridges create --file
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:
invalid JSON or file not foundIncorrect Usage: flag provided but not defined: -fwithError running app
Please help me with the correct syntax needed to create a job and bridge on a chainlink node using the CLI.