Skip to content

Getting Started

Prerequisites

  • MATLAB R2022a or newer

Installation

Run these three lines in the MATLAB Command Window:

websave('tbxmanager.m', 'https://tbxmanager.com/tbxmanager.m');
tbxmanager
savepath

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:

tbxmanager restorepath

To find or create your startup.m:

edit(fullfile(userpath, 'startup.m'))

Install Your First Package

tbxmanager install mpt

This resolves dependencies, downloads archives, verifies SHA256 integrity, and adds everything to your MATLAB path.

Search for Packages

tbxmanager search optimization

List Installed Packages

tbxmanager list

Shows a table with package names, installed versions, latest available versions, and enabled status.

Update Packages

% Update all
tbxmanager update

% Update a specific package
tbxmanager update mpt

Uninstall

tbxmanager uninstall mpt

Project Dependencies

For reproducible projects, create a tbxmanager.json in your project root:

tbxmanager init

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:

tbxmanager lock

Team members clone your repo and run:

tbxmanager sync

This installs the exact versions from tbxmanager.lock, ensuring identical environments.

Self-Update

Keep tbxmanager itself up to date:

tbxmanager selfupdate