Skip to content

Installing Modules

To install a PMS package, run the command:

pms install [package-name] [project-name]

This will automatically install the latest version of the specified package into your project.

If project-name is not provided, PMS will assume that the current folder is the target project to install the package to.

To list all available versions for a specified package, run the command:

pms list [package-name]

You can install a specific version of a package by running:

pms install package-name@version [project-name]

Once you've installed a package, you can use it in your main.tfs script by doing:

let module = loadmodule("./Modules/package-name")!;

module.do_whatever();

Uploading Modules

NOTE: To upload PMS packages, must be logged into a PMS account!

Once you have written the code for your module, you can upload it to PMS. To do that, you first have to compress your project into a .zip archive.

NOTE: Make sure that main.tfs and other files are directly in the root of the .zip archive! The structure of the archive should look like:

module.zip /
    Modules /
        ...
    main.tfs

Once everything is properly packed, you can upload it to PMS.

To upload a package to PMS, run:

pms upload [package-name] [version] module.zip

Your package will be uploaded to PMS servers.

Removing Modules

To remove a package from your project, run the command:

pms remove [package-name] [project]

If the project arg is not provided, PMS will assume the current directory is the target project to remove the package from.