From 0466b036aa11e881ff62562c9290a1720e685f63 Mon Sep 17 00:00:00 2001 From: Harsha K N Date: Tue, 26 Apr 2022 21:58:58 +0530 Subject: [PATCH] Added shell command to CLI reference (#78) Co-authored-by: Paul Schaaf --- src/anchor_references/cli.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/anchor_references/cli.md b/src/anchor_references/cli.md index b8e47c8..3dd97ea 100644 --- a/src/anchor_references/cli.md +++ b/src/anchor_references/cli.md @@ -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 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 ```