Skip to content

cli: Add shell command#303

Merged
armaniferrante merged 1 commit into
masterfrom
armani/shell
May 22, 2021
Merged

cli: Add shell command#303
armaniferrante merged 1 commit into
masterfrom
armani/shell

Conversation

@armaniferrante

@armaniferrante armaniferrante commented May 22, 2021

Copy link
Copy Markdown
Contributor

Add a new anchor shell command that runs a node shell with generated clients ready to go, configured from the Anchor toml, for example,

cluster = "mainnet"
wallet = "<wallet>"

[clusters.mainnet]
lockup = "GrAkKfEpTKQuVHG2Y97Y2FF4i7y7Q5AHLK94JBy7Y5yv"
registry = "6ebQNeTPZ1j7k3TtkCCtEPRvG7GQsucQrZ7sSEDQi9Ks"

[clusters.devnet]
lockup = "<address-here>"
registry = "<address-here>"

Would allow one to run anchor shell to run a shell and communicate with the programs via anchor.workspace.<program-name> on mainnet. Or anchor shell --cluster devnet to do the same, but on devnet.

@armaniferrante armaniferrante marked this pull request as ready for review May 22, 2021 22:46
@armaniferrante armaniferrante merged commit ccf1855 into master May 22, 2021
@armaniferrante armaniferrante deleted the armani/shell branch May 22, 2021 23:06
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant