diff --git a/docs/running.rst b/docs/running.rst index 72ca83ddee..78b551b605 100644 --- a/docs/running.rst +++ b/docs/running.rst @@ -247,12 +247,19 @@ for an example of how to use this. Interacting with Solana running programs on-chain _________________________________________________ +The command line syntax for interacting with a program deployed on Solana is as follows: + solang solana [SUBCOMMAND] [OPTIONS]... -This means that the command line is ``solang solana`` followed by a subcommand -followed by any of the options described below and then the program location. +It consists of a subcommand followed by its options, both of which are described below. The last argument is the program location. + +.. note:: + + Solang relies on the local default Solana configuration file to obtain information for transaction submissions. + For comprehensive management of this configuration file, you can refer to `Solana's CLI command documentation `_. General Options (for all subcommands): +++++++++++++++++++++++++++++++++++++++ \-\-output-json Specifies whether to export the call output in JSON format. @@ -261,10 +268,12 @@ General Options (for all subcommands): This displays a short description of all the options. Subcommands: +++++++++++++ - solang solana deploy [OPTIONS]... +Deploy Subcommand +----------------- -Deploys a program to Solana. +Allows you to deploy Solana compiled programs to Solana. Options specific to the ``deploy`` subcommand: @@ -272,6 +281,10 @@ Options specific to the ``deploy`` subcommand: Specifies whether to display verbose program deployment information (Conflicts with ``--output-json``). +.. code-block:: bash + + solang solana deploy --verbose flipper.so + Running Solang using a container ________________________________ diff --git a/src/bin/cli/solana/deploy.rs b/src/bin/cli/solana/deploy.rs index 61960f9005..e1dba404a5 100644 --- a/src/bin/cli/solana/deploy.rs +++ b/src/bin/cli/solana/deploy.rs @@ -16,7 +16,7 @@ use solana_rpc_client_api::config::RpcSendTransactionConfig; use solana_sdk::{commitment_config::CommitmentConfig, signer::keypair::read_keypair_file}; #[derive(Clone, Debug, clap::Args)] -#[clap(name = "deploy", about = "Deploy a program to the Solana cluster")] +#[clap(name = "deploy", about = "Deploy a program to Solana")] pub struct SolanaDeploy { #[clap(help = "Specifies the path to the program file to deploy (.so)")] program_location: String,