From 47e1ea107b99391c60a244380ddd1920f79aaaf2 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 14 Oct 2019 23:04:15 -0700 Subject: [PATCH] Add show-validators --- book/src/api-reference/cli.md | 64 ++++++++++++----------------------- 1 file changed, 22 insertions(+), 42 deletions(-) diff --git a/book/src/api-reference/cli.md b/book/src/api-reference/cli.md index 9a4ab12039..6a5abbe9c4 100644 --- a/book/src/api-reference/cli.md +++ b/book/src/api-reference/cli.md @@ -175,9 +175,7 @@ $ solana send-timestamp --date 2018-12-24T23:59:00 ``` ## Usage - ### solana-cli - ```text solana-cli 0.20.0 Blockchain, Rebuilt for Scale @@ -225,6 +223,7 @@ SUBCOMMANDS: show-account Show the contents of an account show-stake-account Show the contents of a stake account show-storage-account Show the contents of a storage account + show-validators Show information about the current validators show-vote-account Show the contents of a vote account stake-authorize-staker Authorize a new stake signing keypair for the given stake account stake-authorize-withdrawer Authorize a new withdraw signing keypair for the given stake account @@ -236,7 +235,6 @@ SUBCOMMANDS: ``` #### solana-address - ```text solana-address Get your public key @@ -255,7 +253,6 @@ OPTIONS: ``` #### solana-airdrop - ```text solana-airdrop Request lamports @@ -280,7 +277,6 @@ ARGS: ``` #### solana-balance - ```text solana-balance Get your balance @@ -303,7 +299,6 @@ ARGS: ``` #### solana-cancel - ```text solana-cancel Cancel a transfer @@ -325,7 +320,6 @@ ARGS: ``` #### solana-claim-storage-reward - ```text solana-claim-storage-reward Redeem storage reward credits @@ -348,7 +342,6 @@ ARGS: ``` #### solana-cluster-version - ```text solana-cluster-version Get the version of the cluster entrypoint @@ -367,7 +360,6 @@ OPTIONS: ``` #### solana-confirm - ```text solana-confirm Confirm transaction by signature @@ -389,7 +381,6 @@ ARGS: ``` #### solana-create-replicator-storage-account - ```text solana-create-replicator-storage-account Create a replicator storage account @@ -408,11 +399,10 @@ OPTIONS: ARGS: - + ``` #### solana-create-stake-account - ```text solana-create-stake-account Create a stake account @@ -441,7 +431,6 @@ ARGS: ``` #### solana-create-validator-storage-account - ```text solana-create-validator-storage-account Create a validator storage account @@ -460,11 +449,10 @@ OPTIONS: ARGS: - + ``` #### solana-create-vote-account - ```text solana-create-vote-account Create a vote account @@ -491,7 +479,6 @@ ARGS: ``` #### solana-deactivate-stake - ```text solana-deactivate-stake Deactivate the delegated stake from the stake account @@ -513,7 +500,6 @@ ARGS: ``` #### solana-delegate-stake - ```text solana-delegate-stake Delegate stake to a vote account @@ -536,7 +522,6 @@ ARGS: ``` #### solana-deploy - ```text solana-deploy Deploy a program @@ -558,7 +543,6 @@ ARGS: ``` #### solana-fees - ```text solana-fees Display current cluster fees @@ -577,7 +561,6 @@ OPTIONS: ``` #### solana-get - ```text solana-get Get cli config settings @@ -599,7 +582,6 @@ ARGS: ``` #### solana-get-epoch-info - ```text solana-get-epoch-info Get information about the current epoch @@ -618,7 +600,6 @@ OPTIONS: ``` #### solana-get-genesis-blockhash - ```text solana-get-genesis-blockhash Get the genesis blockhash @@ -637,7 +618,6 @@ OPTIONS: ``` #### solana-get-slot - ```text solana-get-slot Get current slot @@ -656,7 +636,6 @@ OPTIONS: ``` #### solana-get-transaction-count - ```text solana-get-transaction-count Get current transaction count @@ -675,7 +654,6 @@ OPTIONS: ``` #### solana-help - ```text solana-help Prints this message or the help of the given subcommand(s) @@ -688,7 +666,6 @@ ARGS: ``` #### solana-pay - ```text solana-pay Send a payment @@ -717,7 +694,6 @@ ARGS: ``` #### solana-ping - ```text solana-ping Submit transactions sequentially @@ -739,7 +715,6 @@ OPTIONS: ``` #### solana-redeem-vote-credits - ```text solana-redeem-vote-credits Redeem credits in the stake account @@ -762,7 +737,6 @@ ARGS: ``` #### solana-send-signature - ```text solana-send-signature Send a signature to authorize a transfer @@ -785,7 +759,6 @@ ARGS: ``` #### solana-send-timestamp - ```text solana-send-timestamp Send a timestamp to unlock a transfer @@ -809,7 +782,6 @@ ARGS: ``` #### solana-set - ```text solana-set Set a cli config setting @@ -828,7 +800,6 @@ OPTIONS: ``` #### solana-show-account - ```text solana-show-account Show the contents of an account @@ -852,7 +823,6 @@ ARGS: ``` #### solana-show-stake-account - ```text solana-show-stake-account Show the contents of a stake account @@ -875,7 +845,6 @@ ARGS: ``` #### solana-show-storage-account - ```text solana-show-storage-account Show the contents of a storage account @@ -896,8 +865,26 @@ ARGS: Storage account pubkey ``` -#### solana-show-vote-account +#### solana-show-validators +```text +solana-show-validators +Show information about the current validators +USAGE: + solana show-validators [FLAGS] [OPTIONS] + +FLAGS: + -h, --help Prints help information + --lamports Display balance in lamports instead of SOL + -V, --version Prints version information + +OPTIONS: + -C, --config Configuration file to use [default: ~/.config/solana/cli/config.yml] + -u, --url JSON RPC URL for the solana cluster + -k, --keypair /path/to/id.json +``` + +#### solana-show-vote-account ```text solana-show-vote-account Show the contents of a vote account @@ -920,7 +907,6 @@ ARGS: ``` #### solana-stake-authorize-staker - ```text solana-stake-authorize-staker Authorize a new stake signing keypair for the given stake account @@ -943,7 +929,6 @@ ARGS: ``` #### solana-stake-authorize-withdrawer - ```text solana-stake-authorize-withdrawer Authorize a new withdraw signing keypair for the given stake account @@ -966,7 +951,6 @@ ARGS: ``` #### solana-uptime - ```text solana-uptime Show the uptime of a validator, based on epoch voting history @@ -990,7 +974,6 @@ ARGS: ``` #### solana-validator-info - ```text solana-validator-info Publish/get Validator info on Solana @@ -1014,7 +997,6 @@ SUBCOMMANDS: ``` #### solana-vote-authorize-voter - ```text solana-vote-authorize-voter Authorize a new vote signing keypair for the given vote account @@ -1037,7 +1019,6 @@ ARGS: ``` #### solana-vote-authorize-withdrawer - ```text solana-vote-authorize-withdrawer Authorize a new withdraw signing keypair for the given vote account @@ -1060,7 +1041,6 @@ ARGS: ``` #### solana-withdraw-stake - ```text solana-withdraw-stake Withdraw the unstaked lamports from the stake account