Getting Started
Prerequisites
- MATLAB R2022a or newer
Installation
Run these three lines in the MATLAB Command Window:
This downloads the package manager, initializes its storage directory (~/.tbxmanager/), and saves the MATLAB path.
Auto-Restore on Startup
Add this line to your startup.m file so installed packages are available every time MATLAB starts:
To find or create your startup.m:
Install Your First Package
This resolves dependencies, downloads archives, verifies SHA256 integrity, and adds everything to your MATLAB path.
Search for Packages
List Installed Packages
Shows a table with package names, installed versions, latest available versions, and enabled status.
Update Packages
Uninstall
Project Dependencies
For reproducible projects, create a tbxmanager.json in your project root:
This creates a template. Edit it to declare your dependencies:
{
"name": "my-project",
"matlab": ">=R2022a",
"dependencies": {
"mpt": ">=3.0",
"cddmex": ">=1.0"
}
}
Then generate a lockfile:
Team members clone your repo and run:
This installs the exact versions from tbxmanager.lock, ensuring identical environments.
Self-Update
Keep tbxmanager itself up to date: