{"id":1958,"date":"2023-02-08T09:10:44","date_gmt":"2023-02-08T14:10:44","guid":{"rendered":"https:\/\/csimmons.dev\/blog\/?p=1958"},"modified":"2024-12-05T20:11:13","modified_gmt":"2024-12-06T01:11:13","slug":"using-cfpm-in-commandbox-to-list-packages-install-a-package-export-package-list","status":"publish","type":"post","link":"https:\/\/csimmons.dev\/blog\/2023\/02\/using-cfpm-in-commandbox-to-list-packages-install-a-package-export-package-list\/","title":{"rendered":"Using cfpm in CommandBox to List packages, Install a package, Export package list"},"content":{"rendered":"<h2>Method 1<\/h2>\n<p><em>This example assumes you are running ColdFusion 2021 via CommandBox.<\/em><\/p>\n<p>Launch CommandBox and run the following command(s):<\/p>\n<pre>&gt; set CFPM_SERVER=YOUR_SERVER_NAME\n> cfpm list\n> cfpm install &lt;cfpackagename&gt;\n> cfpm export path\/to\/packages.txt\n> env clear CFPM_SERVER\n<\/pre>\n<h2>Method 2<\/h2>\n<p><em>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).<\/em><\/p>\n<p>Launch CommandBox and run the following command(s):<\/p>\n<pre>&gt; !C:\\ColdFusion2021\\cfusion\\bin\\cfpm.bat list\n> !C:\\ColdFusion2021\\cfusion\\bin\\cfpm.bat install &lt;cfpackagename&gt;\n> !C:\\ColdFusion2021\\cfusion\\bin\\cfpm.bat C:\\path\\to\\packages.txt\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Method 1 This example assumes you are running ColdFusion 2021 via CommandBox. Launch CommandBox and run the following command(s): &gt; set CFPM_SERVER=YOUR_SERVER_NAME > cfpm list > cfpm install &lt;cfpackagename&gt; > 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 &#8230; <a title=\"Using cfpm in CommandBox to List packages, Install a package, Export package list\" class=\"read-more\" href=\"https:\/\/csimmons.dev\/blog\/2023\/02\/using-cfpm-in-commandbox-to-list-packages-install-a-package-export-package-list\/\" aria-label=\"Read more about Using cfpm in CommandBox to List packages, Install a package, Export package list\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_cloudinary_featured_overwrite":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[68],"tags":[48,52,12],"class_list":["post-1958","post","type-post","status-publish","format-standard","hentry","category-developer","tag-coldfusion","tag-commandbox","tag-developer"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pbVg43-vA","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/1958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/comments?post=1958"}],"version-history":[{"count":0,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/1958\/revisions"}],"wp:attachment":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/media?parent=1958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/categories?post=1958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/tags?post=1958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}