go install command.
Prerequisites
Install Go
You need Go 1.21 or later installed on your system.Check your Go version:If you don’t have Go installed, download it from go.dev/dl.
Verify GOPATH
Ensure your Go binary path is in your system’s PATH:The Go binaries are typically installed to
$GOPATH/bin or $HOME/go/bin.Add Go binaries to PATH
Add Go binaries to PATH
If Fish (Then reload your shell configuration:
go install succeeds but you can’t run cctp, add Go’s bin directory to your PATH:Bash/Zsh (~/.bashrc or ~/.zshrc):~/.config/fish/config.fish):Installation
Install the latest version of the CCTP CLI:The
@latest tag installs the most recent stable release. For production use, consider pinning to a specific version.Verify Installation
Check that the CLI is installed correctly:Platform-Specific Notes
macOS
macOS
Default Keystore Location
Apple Silicon (M1/M2/M3)
The CLI is compatible with Apple Silicon Macs. Go will automatically build the appropriate binary.Gatekeeper
If macOS blocks the CLI as an “unidentified developer”, you may need to:- Go to System Preferences > Security & Privacy
- Click “Allow Anyway” for the cctp binary
Linux
Linux
Windows
Windows
Default Keystore Location
C:\Users\<username>\AppData\Roaming\Ethereum\keystorePowerShell vs Command Prompt
The CLI works in both PowerShell and Command Prompt. PowerShell is recommended for better formatting.Windows Terminal
For the best experience, use Windows Terminal which supports:- True color rendering
- Unicode characters
- Better mouse support
PATH Configuration
Ifcctp is not found after installation, add Go’s bin directory to PATH:- Open System Properties > Environment Variables
- Edit the
Pathvariable - Add:
%USERPROFILE%\go\bin - Restart your terminal
Update the CLI
To update to the latest version, simply run the install command again:Uninstall
To remove the CCTP CLI:Build from Source
For development or testing, you can build directly from the source repository:Troubleshooting
Command not found: cctp
Command not found: cctp
Cause: The Go bin directory is not in your PATH.Solution: Add Go’s bin directory to your PATH (see Verify GOPATH above) or use the full path:
go: command not found
go: command not found
Cause: Go is not installed or not in PATH.Solution: Install Go from go.dev/dl and ensure it’s in your PATH.
Permission denied
Permission denied
Cause: Insufficient permissions to write to GOPATH/bin.Solution:
- Run with appropriate permissions (avoid sudo with go install)
- Or install to a local directory:
Network/proxy issues
Network/proxy issues
Cause: Firewall or proxy blocking Go module downloads.Solution: Configure Go proxy:Or use a different proxy:
Next Steps
Now that you have the CLI installed, learn how to use it:Commands
Explore all available CLI commands and flags
Configuration
Set up config files and wallet authentication
Quick Start
Complete your first cross-chain transfer
Shell Completion
Enable auto-completion for faster usage