Installation
Get Protodex up and running on your system.
Install Binary
Using Go
Install the latest version directly from GitHub:
go install github.com/sirrobot01/protodex/cmd/protodex@latest
This installs the protodex
binary to your $GOPATH/bin
(typically ~/go/bin
).
Pre-built Binaries
Download pre-built binaries from the GitHub Releases page:
# Linux
curl -LO https://github.com/sirrobot01/protodex/releases/latest/download/protodex-linux-amd64.tar.gz
tar -xzf protodex-linux-amd64.tar.gz
sudo mv protodex /usr/local/bin/
# macOS
curl -LO https://github.com/sirrobot01/protodex/releases/latest/download/protodex-darwin-amd64.tar.gz
tar -xzf protodex-darwin-amd64.tar.gz
sudo mv protodex /usr/local/bin/
# Windows
# Download protodex-windows-amd64.zip and extract to PATH
Protoc Compiler
Protodex requires the Protocol Buffers compiler protoc
to generate code from .proto
files.
It automatically downloads a compatible version of protoc
on first run. This is stored in ~/.protodex/bin
.
Using your own protoc
You can use your own version of protoc
if desired by changing the your ~/.protodex/config.yaml file:
protoc:
bin: /path/to/your/protoc
Configuration
Protodex stores global configuration in ~/.protodex/config.yaml
. The file is created automatically on first use.
View current configuration:
protodex config
Troubleshooting
Command Not Found
If you see command not found: protodex
:
-
Check Installation: Verify the binary is installed
which protodex
ls ~/go/bin/protodex -
Check PATH: Ensure
~/go/bin
is in your PATHecho $PATH
export PATH=$PATH:$(go env GOPATH)/bin -
Reload Shell: Restart your terminal or reload shell configuration
source ~/.bashrc # or ~/.zshrc
Next Steps
Now that you have Protodex installed:
- Quick Start - Create your first project
- Configuration - Learn about project configuration
- CLI Reference - Master the command-line interface
Getting Help
If you encounter issues:
- Documentation: Check the CLI Reference
- GitHub Issues: Report bugs at github.com/sirrobot01/protodex/issues