Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProductionClient ¶
NewProductionClient configures an instance of the CLI to be used in production.
func Run ¶
Run runs the CLI, providing further command instructions by default.
Example ¶
tc, cleanup := cltest.NewConfig() defer cleanup() testClient := &cmd.Client{ Renderer: cmd.RendererTable{Writer: ioutil.Discard}, Config: tc.Config, AppFactory: cmd.ChainlinkAppFactory{}, KeyStoreAuthenticator: cmd.TerminalKeyStoreAuthenticator{Prompter: &cltest.MockCountingPrompter{}}, FallbackAPIInitializer: &cltest.MockAPIInitializer{}, Runner: cmd.ChainlinkRunner{}, HTTP: cltest.NewMockAuthenticatedHTTPClient(tc.Config), } Run(testClient, "chainlink.test", "--help")
Output: NAME: chainlink.test - CLI for Chainlink USAGE: chainlink.test [global options] command [command options] [arguments...] VERSION: unset@unset COMMANDS: node, n Run the chainlink node deleteuser Erase the *local node's* user and corresponding session to force recreation on next node launch. Does not work remotely over API. login Login to remote client by creating a session cookie account, a Display the account address with its ETH & LINK balances jobspecs, jobs, j, specs Get all jobs show, s Show a specific job create, c Create job spec from JSON run, r Begin job run for specid backup Backup the database of the running node import, i Import a key file to use with the node bridge Add a new bridge to the node getbridges List all bridges added to the node showbridge Show a specific bridge removebridge Removes a specific bridge agree, createsa Creates a service agreement withdraw, w Withdraw LINK to an authorized address help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --json, -j json output as opposed to table --help, -h show help --version, -v print the version
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package adapters contain the core adapters used by the Chainlink node.
|
Package adapters contain the core adapters used by the Chainlink node. |
Package cmd is the front-end interface for the application as a command-line utility.
|
Package cmd is the front-end interface for the application as a command-line utility. |
internal
|
|
Package logger is used to store details of events in the node.
|
Package logger is used to store details of events in the node. |
Package services contain the key components of the Chainlink node.
|
Package services contain the key components of the Chainlink node. |
Package store is used to keep application events in sync between the database on the node and the blockchain.
|
Package store is used to keep application events in sync between the database on the node and the blockchain. |
models
Package models contain the key job components used by the Chainlink application.
|
Package models contain the key job components used by the Chainlink application. |
presenters
Package presenters allow for the specification and result of a Job, its associated TaskSpecs, and every JobRun and TaskRun to be returned in a user friendly human readable format.
|
Package presenters allow for the specification and result of a Job, its associated TaskSpecs, and every JobRun and TaskRun to be returned in a user friendly human readable format. |
Package utils is used for the common functions for dealing with conversion to and from hex, bytes, and strings, formatting time.
|
Package utils is used for the common functions for dealing with conversion to and from hex, bytes, and strings, formatting time. |
Package web handles receiving and supplying information within the node.
|
Package web handles receiving and supplying information within the node. |
Click to show internal directories.
Click to hide internal directories.