Skip to content

cli: Anchor version manager (avm)#1385

Merged
armaniferrante merged 25 commits into
otter-sec:masterfrom
tomlinton:tomlinton/avm
Feb 4, 2022
Merged

cli: Anchor version manager (avm)#1385
armaniferrante merged 25 commits into
otter-sec:masterfrom
tomlinton:tomlinton/avm

Conversation

@tomlinton

Copy link
Copy Markdown
Contributor

Adds the command line util avm and a wrapper anchor binary that runs the correct version of anchor-cli. Usage is explained in the docs.

Looks like book just got removed from this repo. I'll make a new PR for this documentation in the anchor-book repo. Are we deprecating the docs/ directory or should I also add it there?

I'm not sure how to version avm, we might sync it with the main anchor version, or perhaps avm should live in a separate repo since tagging will get messy.

There is other approaches apart from using the wrapper binary, e.g. asking the user to set PATH to the ~/.avm/bin directory or using symlinks. The wrapper seemed like the nicest approach to me.

Closes #586.

@tomlinton

Copy link
Copy Markdown
Contributor Author

Here is the commit with the documentation. I've pulled it out of this PR since the book/ was removed.

@armaniferrante

Copy link
Copy Markdown
Contributor

since

Awesome let's add that PR to the book repo.

Comment thread CHANGELOG.md Outdated
@armaniferrante

Copy link
Copy Markdown
Contributor

Should we use this in CI to install anchor? I think probably.

@paul-schaaf

Copy link
Copy Markdown
Contributor

@tomlinton we are deprecating /docs yes. you can add the documentation to the seperate anchor-book repo

@armaniferrante armaniferrante merged commit 75469f4 into otter-sec:master Feb 4, 2022
losman0s pushed a commit to losman0s/anchor that referenced this pull request Feb 7, 2022
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.

cli: Add ability to switch between anchor CLI versions

3 participants