Method 1
This example assumes you are running ColdFusion 2021 via CommandBox.
Launch CommandBox and run the following command(s):
> set CFPM_SERVER=YOUR_SERVER_NAME > cfpm list > cfpm install <cfpackagename> > cfpm export path/to/packages.txt > env clear CFPM_SERVER
Method 2
This example assumes you are NOT running ColdFusion via CommandBox. It assumes you are running a default installation of ColdFusion 2021 (Path is for Windows).
Launch CommandBox and run the following command(s):
> !C:\ColdFusion2021\cfusion\bin\cfpm.bat list > !C:\ColdFusion2021\cfusion\bin\cfpm.bat install <cfpackagename> > !C:\ColdFusion2021\cfusion\bin\cfpm.bat C:\path\to\packages.txt