Prerequisites
Before installing ntcli, ensure you have the following prerequisites:Node.js 20+
ntcli requires Node.js version 20 or higher
NPM or Yarn
Package manager for installing ntcli globally
Install ntcli
NPM (Recommended)
Install ntcli globally using NPM:Yarn
Alternatively, install using Yarn:Verify Installation
Verify that ntcli is installed correctly:Install from Source
For development or to use the latest unreleased features:1
Clone the repository
2
Install dependencies
3
Build the project
4
Link globally
5
Verify installation
Environment Setup
Optional Configuration
Most environment variables are automatically configured. You may optionally customize these settings:Variable | Description | Default |
---|---|---|
NTCLI_API_URL | API base URL | https://mcp.nimbletools.ai |
NTCLI_DEFAULT_PORT | OAuth callback server port | 41247 |
Platform-Specific Notes
Using Homebrew (Coming Soon)Using NPMPath IssuesIf
ntcli
command is not found, ensure /usr/local/bin
(or your npm global bin directory) is in your PATH:Updating ntcli
To update to the latest version:Troubleshooting
Common Issues
Command not found: ntcli
Command not found: ntcli
Cause:
ntcli
is not in your system PATH.Solutions:- Check if npm global bin directory is in PATH:
npm config get prefix
- Add npm global bin to PATH:
export PATH=$(npm config get prefix)/bin:$PATH
- Reinstall with
sudo
(not recommended):sudo npm install -g @nimbletools/ntcli
Permission denied errors
Permission denied errors
Cause: NPM trying to install to system directories without proper permissions.Solutions:
- Configure npm to use a user directory (recommended)
- Use a Node.js version manager like nvm
- Use
sudo
(not recommended for security reasons)
Old version after update
Old version after update
Cause: Multiple versions installed or cached.Solutions:
- Clear npm cache:
npm cache clean --force
- Completely uninstall and reinstall
- Check installed location:
which ntcli
Getting Help
If you encounter issues during installation:- Check our troubleshooting guide: Troubleshooting
- Open an issue: GitHub Issues
- Join our community: Slack