Installation issues
Command not found
After installing Apicentric, you may seeapicentric: command not found when trying to run the CLI.
Homebrew installation
Homebrew installation
Ensure Homebrew’s bin directory is in your PATH:
Install script
Install script
Verify If not in PATH, add it to your shell configuration:
/usr/local/bin is in your PATH:Cargo installation
Cargo installation
Ensure
~/.cargo/bin is in your PATH:Windows
Windows
Restart your terminal or PowerShell after installation to refresh the PATH environment variable.
Permission denied
You may encounter permission errors when trying to install Apicentric to system directories. Install to a custom directory:sudo when moving to system directories:
Checksum verification failed
During installation, you may see a checksum mismatch error indicating the download may be corrupted.Checksum verification ensures the binary you downloaded matches the official release and hasn’t been tampered with.
-
Delete the corrupted download and try again:
-
Verify you’re downloading from the official repository at
github.com/pmaojo/apicentric - Check your internet connection for stability
Cargo build fails
When building Apicentric from source with Cargo, you may encounter compilation errors.Update Rust
Update Rust
Ensure you have the latest stable Rust toolchain:
Install system dependencies
Install system dependencies
Try minimal build
Try minimal build
If the full build fails, try building with minimal features:
macOS security warning
On macOS, you may see: “apicentric cannot be opened because it is from an unidentified developer” Solutions:-
Use Homebrew (recommended):
-
Remove quarantine attribute:
-
Build from source:
Usage issues
Feature not available
You may see “Feature not available in this build” when trying to use certain commands. This occurs when you’ve installed a minimal build that doesn’t include all features. Different installation methods include different feature sets. Solutions:-
Reinstall with desired features:
-
Install full version via Homebrew:
- Minimal: Core simulator only
- CLI tools: Simulator, contract testing, and TUI
- Full: All features including TUI, P2P, GraphQL, scripting, and AI
Port already in use
When starting a service, you may encounter an error that the port is already in use.Each service in Apicentric needs its own unique port. Check your service YAML files to ensure no port conflicts.
-
Check what’s using the port:
-
Stop the conflicting service or change your service port in the YAML file:
Service YAML validation errors
You may encounter validation errors when loading a service definition file.Run
apicentric doctor to check your environment and configuration files.- Missing required fields (
name,version,endpoints) - Invalid YAML syntax (indentation, quotes)
- Malformed endpoint paths
- Invalid HTTP methods
- Use a YAML validator or linter to check syntax
- Review the service definition examples in the documentation
- Check the error message for the specific field causing issues
Getting more help
If you’re still experiencing problems after trying these solutions:-
Run the doctor command to diagnose your environment:
- Check GitHub Issues for similar problems: Visit github.com/pmaojo/apicentric/issues
-
Create a new issue with:
- Your operating system and version
- Installation method used
- Complete error message
- Output of
apicentric --version(if available)
- Join the Discussions for community support: Visit github.com/pmaojo/apicentric/discussions