cleos
Introduction
cleos is a command line tool that interfaces with the REST API exposed by nodeos. Developers can also use cleos to deploy and test CyberWay smart contracts. To use cleos, you need the end point (IP address and port number) of a running nodeos instance.
Cleos Commands
For a list of all cleos commands, run:
$ cleos --helpCommand Line Interface to EOSIO Client
Usage: cleos [OPTIONS] SUBCOMMAND
Options:
-h,--help Print this help message and exit
-u,--url TEXT=http://127.0.0.1:8888/
the http/https URL where nodeos is running
--wallet-url TEXT=unix:///user-name/eosio-wallet/keosd.sock
the http/https URL where keosd is running
-r,--header pass specific HTTP header; repeat this option to pass multiple headers
-n,--no-verify don't verify peer certificate when using HTTPS
--no-auto-keosd don't automatically launch a keosd if one is not currently running
-v,--verbose output verbose errors and action console output
--print-request print HTTP request to STDERR
--print-response print HTTP response to STDERR
Subcommands:
version Retrieve version information
create Create various items, on and off the blockchain
convert Pack and unpack transactions
resolve Resolve domain names and usernames to account
get Retrieve various items and information from the blockchain
set Set or update blockchain state
transfer Transfer tokens from account to account
net Interact with local p2p network connections
wallet Interact with local wallet
sign Sign a transaction
push Push arbitrary transactions to the blockchain
multisig Multisig contract commands
wrap Deprecated. Do nothing.
system Send cyber.system contract action to the blockchain.Cleos Subcommands
To get help with any particular subcommand, run cleos SUBCOMMAND --help. For instance:
cleos can also provide usage help for subcommands within subcommands. For instance:
Cleos Example
The following cleos command creates a local wallet named mywallet and displays the password to the screen:
Last updated