https://github.com/shiv3/protoenv
version manager for protocol buffer tools
https://github.com/shiv3/protoenv
protobuf protoc protocol-buffers
Last synced: 5 months ago
JSON representation
version manager for protocol buffer tools
- Host: GitHub
- URL: https://github.com/shiv3/protoenv
- Owner: shiv3
- License: apache-2.0
- Created: 2021-06-22T08:19:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T04:54:54.000Z (almost 5 years ago)
- Last Synced: 2025-10-12T10:45:59.209Z (8 months ago)
- Topics: protobuf, protoc, protocol-buffers
- Language: Go
- Homepage:
- Size: 81.1 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# protoenv
version manager for protocol buffer tools
# Install
```
go install github.com/shiv3/protoenv@v0.0.3
```
# Usage
## protoc
subcommands
```
Usage:
protoenv protoc [command]
Available Commands:
global Set or show the global protoc version
init Set or show the global Go version%!(EXTRA string=protoc)
install install specified version
local Set or show the local protoc version
version Show the current protoc version and its origin
versions List all protoc versions available to protoenv
Flags:
-h, --help help for protoc
Global Flags:
--config string config file (default is $HOME/.protoenv/config.yaml)
```
- show protoc versions
```
$ protoenv protoc install -l
v3.17.3
v3.17.2
v3.17.1
...
```
- install version
```
$ protoenv protoc install v3.17.3
downloading https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-osx-x86_64.zip ..
installed protoc ~/.protoenv/protoc/versions/v3.17.3/protoc
set global version: v3.17.3
```
- set global version
```
$ protoenv protoc global v3.17.3
set global version: v3.17.3
```