1.0.0 • Published 5 years ago
cyber-deployer-cli v1.0.0
agentcli
CLI to deploy, upgrade and manage autonomous agents
Usage
$ npm install -g deployercli
$ agent COMMAND
running command...
$ agent (-v|--version|version)
deployercli/1.0.0 linux-x64 node-v8.9.4
$ agent --help [COMMAND]
USAGE
$ agent COMMAND
...
Commands
agent deleteAgent
agent deploy
agent fund
agent grant_autonomy
agent help [COMMAND]
agent newAgent
agent registerAgent
agent update_code
agent withdraw
agent withdrawFunds
agent deleteAgent
Delete an agent
USAGE
$ agent deleteAgent
OPTIONS
-h, --help show CLI help
-n, --name=name Name of the agent
-v, --version show CLI version
See code: src/commands/deleteAgent.js
agent deploy
Deploy agent on more hosts
USAGE
$ agent deploy
OPTIONS
-h, --help show CLI help
-n, --name=name Name of agent
-r, --responsesNumber=responsesNumber On how many hosts you want the agent to be deployed
-t, --time=time How much time do you want the agent to stay on the new hosts
-v, --version show CLI version
See code: src/commands/deploy.js
agent fund
Give an agent money to survive
USAGE
$ agent fund
OPTIONS
-f, --funds=funds How much money denominated in WEI is used to fund the agent
-h, --help show CLI help
-n, --name=name Name of agent
-v, --version show CLI version
See code: src/commands/fund.js
agent grant_autonomy
Make the agent fully autonomous (nobody can control it anymore)
USAGE
$ agent grant_autonomy
OPTIONS
-h, --help show CLI help
-n, --name=name Name of agent
-p, --position=position Position of the agent in the array of the creator
-v, --version show CLI version
See code: src/commands/grant_autonomy.js
agent help [COMMAND]
display help for agent
USAGE
$ agent help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
agent newAgent
Register a new agent
USAGE
$ agent newAgent
OPTIONS
-a, --source_hash=source_hash The hash of the code
-h, --help show CLI help
-n, --name=name Name of the agent
-s, --source=source Github URL of the agent
-v, --version show CLI version
See code: src/commands/newAgent.js
agent registerAgent
Register the agent in the treasury contract
USAGE
$ agent registerAgent
OPTIONS
-h, --help show CLI help
-n, --name=name Name of agent
-v, --version show CLI version
See code: src/commands/registerAgent.js
agent update_code
Update the code of an agent
USAGE
$ agent update_code
OPTIONS
-d, --hash=hash Hash of the source code
-h, --help show CLI help
-n, --name=name Name of agent to update
-s, --source=source Github URL of the updated agent
-v, --version show CLI version
See code: src/commands/update_code.js
agent withdraw
Withdraw an agent from hosts
USAGE
$ agent withdraw
OPTIONS
-h, --help show CLI help
-n, --name=name Name of the agent
-o, --hostsNumber=hostsNumber From how many hosts you want the agent to withdraw
-v, --version show CLI version
See code: src/commands/withdraw.js
agent withdrawFunds
Withdraw funds deposited for an agent
USAGE
$ agent withdrawFunds
OPTIONS
-h, --help show CLI help
-n, --name=name Name of the agent
-v, --version show CLI version
See code: src/commands/withdrawFunds.js
1.0.0
5 years ago