Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: Add shell command #303

Merged
merged 1 commit into from
May 22, 2021
Merged

cli: Add shell command #303

merged 1 commit into from
May 22, 2021

Conversation

armaniferrante
Copy link
Member

@armaniferrante armaniferrante commented May 22, 2021

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
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