-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/update-init-template
- Loading branch information
Showing
2 changed files
with
58 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,55 @@ | ||
# Soroban CLI (soroban-cli) | ||
|
||
This repo is home to the [Soroban CLI](https://github.com/stellar/soroban-tools/tree/main/cmd/soroban-cli): The command-line multi-tool for running and deploying Soroban contracts. | ||
This repo is home to the Soroban CLI, the command-line multi-tool for running and deploying Soroban contracts on the Stellar network. | ||
|
||
## Documentation | ||
|
||
## Install the CLI | ||
Install [the latest soroban-cli version](https://github.com/stellar/soroban-cli/releases). | ||
`cargo install --locked soroban-cli` | ||
For installation options see below, for usage instructions [see the manual](/docs/soroban-cli-full-docs.md). | ||
|
||
You can also install with `cargo-binstall`. | ||
## Install | ||
Install the latest version from source: | ||
``` | ||
cargo install cargo-binstall | ||
cargo install --locked soroban-cli --features opt | ||
``` | ||
|
||
Install with `cargo-binstall`: | ||
``` | ||
cargo install --locked cargo-binstall | ||
cargo binstall -y soroban-cli | ||
``` | ||
|
||
Install with Homebrew: | ||
|
||
``` | ||
brew install stellar/tap/soroban-cli | ||
``` | ||
|
||
## Setup Autocomplete | ||
`soroban completion --shell <SHELL>` | ||
``` | ||
soroban completion --shell <SHELL> | ||
``` | ||
Possible SHELL values are `bash`, `elvish`, `fish`, `powershell`, `zsh`, etc. | ||
|
||
To enable autocomplete in the current bash shell, run: | ||
`source <(soroban completion --shell bash)` | ||
``` | ||
source <(soroban completion --shell bash) | ||
``` | ||
|
||
To enable autocomplete permanently, run: | ||
`echo "source <(soroban completion --shell bash)" >> ~/.bashrc` | ||
|
||
## Full Docs | ||
For autogenerated full docs, please see | ||
[docs](/docs/soroban-cli-full-docs.md). | ||
``` | ||
echo "source <(soroban completion --shell bash)" >> ~/.bashrc | ||
``` | ||
|
||
## Latest Release | ||
For latest releases, please see | ||
[releases](https://github.com/stellar/soroban-cli/releases). | ||
For latest releases, see [releases](https://github.com/stellar/soroban-cli/releases). | ||
|
||
## Upcoming Features | ||
For upcoming features, please see the [project | ||
board](https://github.com/orgs/stellar/projects/50). | ||
|
||
For upcoming features, please see the [project board](https://github.com/orgs/stellar/projects/50). | ||
|
||
## Adding Git Hooks | ||
|
||
To add git hooks for commits and pushes run: | ||
|
||
``` | ||
./install_githooks.sh | ||
``` | ||
## To Contribute | ||
Find issues to contribute to [here](https://github.com/stellar/soroban-cli/contribute) and review [CONTRIBUTING.md](/CONTRIBUTING.md). | ||
|
||
which copies the git hooks found at `.cargo-husky/hooks` to `.git/hooks`. | ||
Developer Docs: https://developers.stellar.org/docs | ||
|
||
|
||
## To Contribute | ||
Please fork this see `good first issues` on | ||
[here](https://github.com/stellar/soroban-cli/contribute) and review the [contributing.md](/contributing.md). | ||
|
||
Developer Docs: https://developers.stellar.org/docs |