Added shell command to CLI reference (#78)

Co-authored-by: Paul Schaaf <paulsimonschaaf@gmail.com>
This commit is contained in:
Harsha K N 2022-04-26 21:58:58 +05:30 committed by GitHub
parent 65b33d962e
commit 0466b036aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,7 @@ SUBCOMMANDS:
init Initializes a workspace
migrate Runs the deploy migration script
new Creates a new program
shell Starts a node shell with an Anchor client setup according to the local config
test Runs integration tests against a localnetwork
upgrade Upgrades a single program. The configured wallet must be the upgrade authority
verify Verifies the on-chain bytecode matches the locally compiled artifact. Run this
@ -200,6 +201,14 @@ anchor new <program-name>
Creates a new program in the workspace's `programs/` directory initialized with boilerplate.
## Shell
```
anchor shell
```
Starts a node js shell with an Anchor client setup according to the local config. This client can be used to interact with deployed Solana programs in the workspace.
## Test
```