Skip to content

Commit

Permalink
fix: improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Jan 9, 2024
1 parent cd21f2b commit 9b69a00
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 37 deletions.
1 change: 1 addition & 0 deletions cmd/soroban-cli/src/commands/config/locator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ pub struct Args {
#[arg(long)]
pub global: bool,

/// Location of config directory, default is "."
#[arg(long, help_heading = "TESTING_OPTIONS")]
pub config_dir: Option<PathBuf>,
}
Expand Down
74 changes: 37 additions & 37 deletions docs/soroban-cli-full-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Full CLI reference: https://github.com/stellar/soroban-tools/tree/main/docs/soro
###### **Options:**

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `-f`, `--filter-logs <FILTER_LOGS>` — Filter logs output. To turn on "soroban_cli::log::footprint=debug" or off "=off". Can also use env var `RUST_LOG`
* `-q`, `--quiet` — Do not write logs to stderr including `INFO`
* `-v`, `--verbose` — Log DEBUG events
Expand Down Expand Up @@ -184,7 +184,7 @@ Add a new network
* `--rpc-url <RPC_URL>` — RPC server endpoint
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -201,7 +201,7 @@ Remove a network
###### **Options:**

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -214,7 +214,7 @@ List networks
###### **Options:**

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `-l`, `--long` — Get more info about the networks


Expand Down Expand Up @@ -252,7 +252,7 @@ Add a new identity (keypair, ledger, macOS keychain)
* `--secret-key` — Add using secret_key Can provide with SOROBAN_SECRET_KEY
* `--seed-phrase` — Add using 12 word seed phrase to generate secret_key
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -270,7 +270,7 @@ Given an identity return its address (public key)

* `--hd-path <HD_PATH>` — If identity is a seed phrase use this hd path, default is 0
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -291,7 +291,7 @@ Fund an identity on a test network
* `--network <NETWORK>` — Name of network to use from config
* `--hd-path <HD_PATH>` — If identity is a seed phrase use this hd path, default is 0
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -311,7 +311,7 @@ Generate a new identity with a seed phrase, currently 12 words
* `--seed <SEED>` — Optional seed to use when generating seed phrase. Random otherwise
* `-s`, `--as-secret` — Output the generated identity as a secret key
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--hd-path <HD_PATH>` — When generating a secret key, which hd_path should be used from the original seed_phrase
* `-d`, `--default-seed` — Generate the default seed phrase. Useful for testing. Equivalent to --seed 0000000000000000
* `--rpc-url <RPC_URL>` — RPC server endpoint
Expand All @@ -329,7 +329,7 @@ List identities
###### **Options:**

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `-l`, `--long`


Expand All @@ -347,7 +347,7 @@ Remove an identity
###### **Options:**

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -365,7 +365,7 @@ Given an identity return its private key

* `--hd-path <HD_PATH>` — If identity is a seed phrase use this hd path, default is 0
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand Down Expand Up @@ -421,7 +421,7 @@ Get Id of builtin Soroban Asset Contract. Deprecated, use `soroban contract id a
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -440,7 +440,7 @@ Deploy builtin Soroban Asset Contract
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--fee <FEE>` — fee amount for transaction, in stroops. 1 stroop = 0.0000001 xlm

Default value: `100`
Expand Down Expand Up @@ -498,7 +498,7 @@ Generate a TypeScript / JavaScript package
* `--overwrite` — Whether to overwrite output directory if it already exists
* `--contract-id <CONTRACT_ID>` — The contract ID/address on the network
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--rpc-url <RPC_URL>` — RPC server endpoint
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--network <NETWORK>` — Name of network to use from config
Expand Down Expand Up @@ -563,7 +563,7 @@ If no keys are specified the contract itself is extended.
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--fee <FEE>` — fee amount for transaction, in stroops. 1 stroop = 0.0000001 xlm

Default value: `100`
Expand All @@ -587,7 +587,7 @@ Deploy a wasm contract
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--fee <FEE>` — fee amount for transaction, in stroops. 1 stroop = 0.0000001 xlm

Default value: `100`
Expand All @@ -608,7 +608,7 @@ Fetch a contract's Wasm binary
* `--id <CONTRACT_ID>` — Contract ID to fetch
* `-o`, `--out-file <OUT_FILE>` — Where to write output otherwise stdout is used
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--rpc-url <RPC_URL>` — RPC server endpoint
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--network <NETWORK>` — Name of network to use from config
Expand Down Expand Up @@ -643,7 +643,7 @@ Deploy builtin Soroban Asset Contract
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -662,7 +662,7 @@ Deploy normal Wasm Contract
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -688,7 +688,7 @@ Inspect a WASM file listing contract functions, meta, etc
Pretty print of contract spec entries

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -706,7 +706,7 @@ Install a WASM file to the ledger without creating a contract instance
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--fee <FEE>` — fee amount for transaction, in stroops. 1 stroop = 0.0000001 xlm

Default value: `100`
Expand Down Expand Up @@ -741,7 +741,7 @@ soroban contract invoke ... -- --help
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--fee <FEE>` — fee amount for transaction, in stroops. 1 stroop = 0.0000001 xlm

Default value: `100`
Expand Down Expand Up @@ -800,7 +800,7 @@ Print the current value of a contract-data ledger entry
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand Down Expand Up @@ -835,7 +835,7 @@ If no keys are specificed the contract itself is restored.
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--fee <FEE>` — fee amount for transaction, in stroops. 1 stroop = 0.0000001 xlm

Default value: `100`
Expand Down Expand Up @@ -876,7 +876,7 @@ Watch the network for contract events
Possible values: `all`, `contract`, `system`

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--rpc-url <RPC_URL>` — RPC server endpoint
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--network <NETWORK>` — Name of network to use from config
Expand Down Expand Up @@ -916,7 +916,7 @@ Add a new identity (keypair, ledger, macOS keychain)
* `--secret-key` — Add using secret_key Can provide with SOROBAN_SECRET_KEY
* `--seed-phrase` — Add using 12 word seed phrase to generate secret_key
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -934,7 +934,7 @@ Given an identity return its address (public key)

* `--hd-path <HD_PATH>` — If identity is a seed phrase use this hd path, default is 0
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -955,7 +955,7 @@ Fund an identity on a test network
* `--network <NETWORK>` — Name of network to use from config
* `--hd-path <HD_PATH>` — If identity is a seed phrase use this hd path, default is 0
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -975,7 +975,7 @@ Generate a new identity with a seed phrase, currently 12 words
* `--seed <SEED>` — Optional seed to use when generating seed phrase. Random otherwise
* `-s`, `--as-secret` — Output the generated identity as a secret key
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--hd-path <HD_PATH>` — When generating a secret key, which hd_path should be used from the original seed_phrase
* `-d`, `--default-seed` — Generate the default seed phrase. Useful for testing. Equivalent to --seed 0000000000000000
* `--rpc-url <RPC_URL>` — RPC server endpoint
Expand All @@ -993,7 +993,7 @@ List identities
###### **Options:**

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `-l`, `--long`


Expand All @@ -1011,7 +1011,7 @@ Remove an identity
###### **Options:**

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -1029,7 +1029,7 @@ Given an identity return its private key

* `--hd-path <HD_PATH>` — If identity is a seed phrase use this hd path, default is 0
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand Down Expand Up @@ -1074,7 +1074,7 @@ Deploy a token contract to wrap an existing Stellar classic asset for smart cont
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `--fee <FEE>` — fee amount for transaction, in stroops. 1 stroop = 0.0000001 xlm

Default value: `100`
Expand All @@ -1096,7 +1096,7 @@ Compute the expected contract id for the given asset Deprecated, use `soroban co
* `--source-account <SOURCE_ACCOUNT>` — Account that signs the final transaction. Alias `source`. Can be an identity (--source alice), a secret key (--source SC36…), or a seed phrase (--source "kite urban…"). Default: `identity generate --default-seed`
* `--hd-path <HD_PATH>` — If using a seed phrase, which hierarchical deterministic path to use, e.g. `m/44'/148'/{hd_path}`. Example: `--hd-path 1`. Default: `0`
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand Down Expand Up @@ -1275,7 +1275,7 @@ Add a new network
* `--rpc-url <RPC_URL>` — RPC server endpoint
* `--network-passphrase <NETWORK_PASSPHRASE>` — Network passphrase to sign the transaction sent to the rpc server
* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -1292,7 +1292,7 @@ Remove a network
###### **Options:**

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."



Expand All @@ -1305,7 +1305,7 @@ List networks
###### **Options:**

* `--global` — Use global config
* `--config-dir <CONFIG_DIR>`
* `--config-dir <CONFIG_DIR>` — Location of config directory, default is "."
* `-l`, `--long` — Get more info about the networks


Expand Down

0 comments on commit 9b69a00

Please sign in to comment.