Skip to content

Commit

Permalink
README: add
Browse files Browse the repository at this point in the history
ekalinin committed Jul 21, 2020

Verified

This commit was signed with the committer’s verified signature. The key has expired.
miri64 Martine Lenders
1 parent 2e40c50 commit d6ca605
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
pbvm
====

pbvm - Protocol Buffers Version Manager.

Install
=======

```sh
# download & unpack
$ wget https://github.com/ekalinin/pbvm/releases/download/0.0.1/pbvm.linux.amd64.tgz
$ tar xzvf pbvm.linux.amd64.tgz

# install
$ chmod +x pbvm
$ sudo cp pbvm /usr/bin

# activate
$ export PATH="$PATH:$HOME/.pbvm/active/bin"
```

Usage
=====

List available versions
-----------------------

```sh
$ pbvm list-remote -n 5
VERSION | PRE-RELEASE | DATE | INSTALLED
-------------+-------------+------------+------------
v4.0.0-rc1 | true | 2020.07.15 | true
v3.12.3 | false | 2020.06.03 | true
v3.12.2 | false | 2020.05.26 | false
v3.12.1 | false | 2020.05.20 | false
v3.12.0 | false | 2020.05.15 | true
```

Install (switch) to version
----------------------------

```sh
$ pbvm install v4.0.0-rc1
$ protoc --version
libprotoc 4.0.0

$ pbvm install v3.12.3
$ protoc --version
libprotoc 3.12.3

# will just switch active version (without downloading)
$ pbvm install v4.0.0-rc1
$ protoc --version
libprotoc 3.12.3
```

Run with a version
------------------

```sh
$ protoc --version
libprotoc 3.12.3

$ pbvm run "protoc --version" --version v4.0.0-rc1
libprotoc 4.0.0

$ protoc --version
libprotoc 3.12.3
```

0 comments on commit d6ca605

Please sign in to comment.