{"id":3733,"date":"2021-06-10T11:13:23","date_gmt":"2021-06-10T18:13:23","guid":{"rendered":"https:\/\/salesforcedevops.net\/?p=3733"},"modified":"2021-06-18T20:06:58","modified_gmt":"2021-06-19T03:06:58","slug":"how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity","status":"publish","type":"post","link":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/","title":{"rendered":"How to Install SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"wpex-responsive-media\"><iframe loading=\"lazy\" title=\"How to Install Salesforce SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity\" width=\"980\" height=\"551\" src=\"https:\/\/www.youtube.com\/embed\/gGMyN2wFIN4?feature=oembed\"  allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p class=\"has-drop-cap wp-block-paragraph\"><a href=\"https:\/\/origin.salesforcedevops.net\/index.php\/2021\/03\/18\/sfdx-cli-paves-the-way-for-open-source-salesforce-devops\/\" data-type=\"post\" data-id=\"392\">SFDX-CLI<\/a> is the key touchpoint between the open source devops world and the Salesforce platform. It is a must-have utility for all Salesforce developers. In this tutorial I install SFDX-CLI with my favorite productivity-boosting tools. I use Node Version Manager to help manage the NodeJS and NPM installations needed for SFDX-CLI. I also install the ZSH shell to help with SFDX-CLI autocomplete. And I include some tips to make your terminal look good with a Powerline font.<\/p>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-9d4c4ede      \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tTable Of Contents\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#use-a-fresh-ubuntu-2004-installation\" class=\"uagb-toc-link__trigger\">Use A Fresh Ubuntu 20.04 Installation<\/a><li class=\"uagb-toc__list\"><a href=\"#install-fira-code-retina-font\" class=\"uagb-toc-link__trigger\">Install Fira Code Retina Font<\/a><li class=\"uagb-toc__list\"><a href=\"#install-oh-my-zsh\" class=\"uagb-toc-link__trigger\">Install Oh My Zsh<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#install-zsh-as-root\" class=\"uagb-toc-link__trigger\">Install Zsh as Root<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#install-oh-my-zsh-as-a-user\" class=\"uagb-toc-link__trigger\">Install Oh My Zsh as a User<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#configure-oh-my-zsh\" class=\"uagb-toc-link__trigger\">Configure Oh My Zsh<\/a><\/li><\/ul><\/li><li class=\"uagb-toc__list\"><a href=\"#install-nvm-nodejs-and-npm\" class=\"uagb-toc-link__trigger\">Install NVM, NodeJS, and NPM<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#what-is-node-version-manager-nvm\" class=\"uagb-toc-link__trigger\">What is Node Version Manager (NVM)?<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#pick-a-nodejs-version\" class=\"uagb-toc-link__trigger\">Pick a NodeJS Version<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#install-nvm\" class=\"uagb-toc-link__trigger\">Install NVM<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#install-nodejs-and-npm\" class=\"uagb-toc-link__trigger\">Install NodeJS and NPM<\/a><\/li><\/ul><\/li><\/ul><\/li><li class=\"uagb-toc__list\"><a href=\"#install-sfdx-cli\" class=\"uagb-toc-link__trigger\">Install SFDX-CLI<\/a><li class=\"uagb-toc__list\"><a href=\"#using-sfdx-cli-autocomplete\" class=\"uagb-toc-link__trigger\">Using SFDX-CLI Autocomplete<\/a><li class=\"uagb-toc__list\"><a href=\"#full-script-to-install-sfdx-cli\" class=\"uagb-toc-link__trigger\">Full Script to Install SFDX-CLI<\/a><li class=\"uagb-toc__list\"><a href=\"#install-sfdx-cli-and-power-up-with-salesforce\" class=\"uagb-toc-link__trigger\">Install SFDX-CLI and Power Up With Salesforce<\/a><li class=\"uagb-toc__list\"><a href=\"#credits-and-references\" class=\"uagb-toc-link__trigger\">Credits and References<\/a><\/ul><\/ul><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<h2 class=\"wp-block-heading\">Use A Fresh Ubuntu 20.04 Installation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To install SFDX-CLI get started with a fresh Ubuntu 20.04 Server installation on one of these platforms:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Bare-metal installation<\/li><li>Virtual Machine<\/li><li>Windows Subsystem for Linux (WSL)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">After initial installation be sure to run <code><strong>sudo apt update ; sudo apt upgrade -y<\/strong><\/code> to install the latest operating system updates.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Fira Code Retina Font<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Over the next steps I will pick the \u201cagnoster\u201d theme to enhance my terminal display with Oh My Zsh. This theme needs a <a href=\"https:\/\/github.com\/powerline\/fonts\">Powerline<\/a> font to display special characters and colors. My favorite Powerline terminal font is Fira Code Retina.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/tonsky\/FiraCode\/raw\/master\/distr\/ttf\/FiraCode-Retina.ttf\">Download<\/a> the TTF file to your Mac or Windows workstation. Install the new font by double-clicking it and following the on-screen instructions. Set <code><strong>Fira Code Retina<\/strong><\/code> to be the default font in your terminal app and VS Code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Oh My Zsh<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I use Oh My Zsh to enhance my daily productivity when using a Linux terminal. In the case of this tutorial, I rely on its plugin feature, which includes easy setup of SFDX-CLI autocompletion.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Zsh as Root<\/h3>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"856\" height=\"464\" src=\"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/install-zsh-1.gif\" alt=\"\" data-id=\"3764\" data-full-url=\"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/install-zsh-1.gif\" data-link=\"https:\/\/origin.salesforcedevops.net\/?attachment_id=3764\" class=\"wp-image-3764\"\/><\/figure><\/li><\/ul><figcaption class=\"blocks-gallery-caption\"><em>Reload the page to replay video<\/em><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The first step is to install the Zsh shell and set the current user to use it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install zsh -y<br>chsh -s $(which zsh)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Logoff of this terminal session and start a new one to continue. When logging in with Zsh for the first time you will be presented with a set of options. Select option #2 to have Zsh pre-populate your new configuration file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Log off and back on to continue.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Oh My Zsh as a User<\/h3>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"560\" src=\"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/install-oh-my-zsh.gif\" alt=\"\" data-id=\"3767\" data-full-url=\"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/install-oh-my-zsh.gif\" data-link=\"https:\/\/origin.salesforcedevops.net\/?attachment_id=3767\" class=\"wp-image-3767\"\/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After installing Zsh with a default configuration, install Oh My Zsh with this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sh -c \"$(curl -fsSL <a href=\"https:\/\/raw.githubusercontent.com\/ohmyzsh\/ohmyzsh\/master\/tools\/install.sh\">https:\/\/raw.githubusercontent.com\/ohmyzsh\/ohmyzsh\/master\/tools\/install.sh<\/a>)\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Log off and back on to continue.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configure Oh My Zsh<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After ZSH is installed the shell startup file becomes .zshrc. To configure Oh My Zsh edit .zshrc and change the theme and plugin commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sed&nbsp;-i&nbsp;'s\/robbyrussell\/agnoster\/'&nbsp;~\/.zshrc<br>sed&nbsp;-i&nbsp;'s\/plugins=(git)\/plugins=(git&nbsp;salesforce-cli-zsh-completion)\/'&nbsp;~\/.zshrc<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, to update the Zsh autocompletion database for SFDX-CLI run these commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git&nbsp;clone&nbsp;git@github.com:wadewegner\/salesforce-cli-zsh-completion.git&nbsp;~\/.oh-my-zsh\/custom\/plugins\/salesforce-cli-zsh-completion\nsource&nbsp;~\/.zshrc<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install NVM, NodeJS, and NPM<\/h2>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"560\" src=\"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/install-nvm.gif\" alt=\"\" data-id=\"3769\" data-full-url=\"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/install-nvm.gif\" data-link=\"https:\/\/origin.salesforcedevops.net\/?attachment_id=3769\" class=\"wp-image-3769\"\/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">SFDX-CLI is a NodeJS application and it requires the installation of a full NodeJS system plus  the Node Package Manager (NPM) within the user context.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is Node Version Manager (NVM)?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Node Version Manager (NVM) is a Linux utility that eases the installation and management of NodeJS and NPM. All of these utilities work best if each is installed individually using individual user logins. Avoid installing NodeJS as root or using sudo to keep NodeJS and NPM working smoothly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Pick a NodeJS Version<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">These instructions install version 14 of NodeJS, which is the latest long term support (LTS) version of NodeJS. However, many NPM libraries and applications are still not v14 compatible. For that reason, many developers prefer to stick with v12.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using the LTS version is recommended however, and v14 should be used to build an SFDX-CLI installation with minimal security vulnerabilities.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install NVM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Install the Node Version Manager with these commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.38.0\/install.sh | bash<br>source ~\/.zshrc<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install NodeJS and NPM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use these commands to install version 14 of NodeJS and version 6 of NPM :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nvm&nbsp;install&nbsp;--lts<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or, use this command to install version 12 of NodeJS and version 6 of NPM:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nvm install 12<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install SFDX-CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that NPM is installed, we can install SFDX-CLI using the global NPM directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm install sfdx-cli -g<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check your installation with this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sfdx<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should get back text that displays the CLI version plus some help text.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using SFDX-CLI Autocomplete<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This installation of SFDX-CLI allows you to explore the many SFDX-CLI options with tab completion. Get started by typing &#8220;sfdx &lt;tab&gt;&lt;tab&gt;&#8221; and then acknowledge you want to see all the options.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Try again by typing &#8220;sfdx force:auth:&lt;tab&gt;&#8221; to see the auth commands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, try typing &#8220;sfdx force:auth:web:login &#8211;&lt;tab&gt;&#8221; to see all the parameters available on this command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Full Script to Install SFDX-CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I hope this script saves you some time. Be sure <a href=\"https:\/\/gist.github.com\/vkeenan\/3979eb1128d9bc0407fcfa82a8df1e2c\">visit GitHub<\/a> and Star the gist if you like it!<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vkeenan\/3979eb1128d9bc0407fcfa82a8df1e2c.js\"><\/script>\n\n\n\n<h2 class=\"wp-block-heading\">Install SFDX-CLI and Power Up With Salesforce<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial I showed you my favorite way to install SFDX-CLI on an Ubuntu 20.04 installation with Zsh, Oh My Zsh, NVM, and SFDX-CLI autocompletion. Be sure to let me know if this tutorial has helped you on your road to becoming a Salesforce devops engineer!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Credits and References<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/github.com\/nvm-sh\/nvm\">Node Version Manager &#8211; NVM<\/a><\/li><li><a href=\"https:\/\/github.com\/islandjoe\/firaes-retina\">Fira Code Retina Powerline Font<\/a> by <a href=\"https:\/\/github.com\/islandjoe\">Arthur Kho<\/a><\/li><li><a href=\"https:\/\/ohmyz.sh\/\">Oh My Zsh<\/a><\/li><li><a href=\"https:\/\/github.com\/wadewegner\/salesforce-cli-zsh-completion\">salesforce-cli-zsh-completion<\/a> by <a href=\"https:\/\/github.com\/wadewegner\">Wade Wegner<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>SFDX-CLI is the key touchpoint between the open source devops world and the Salesforce platform. It is a must-have utility for all Salesforce developers. In this tutorial I install SFDX-CLI&hellip;<\/p>\n","protected":false},"author":1,"featured_media":4004,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"video","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[7],"tags":[151,152,150],"post_series":[],"class_list":["post-3733","post","type-post","status-publish","format-video","has-post-thumbnail","hentry","category-how-to","tag-nvm","tag-oh-my-zsh","tag-sfdx-cli","post_format-post-format-video","entry","has-media"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.2 (Yoast SEO v22.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity - SalesforceDevops.net<\/title>\n<meta name=\"description\" content=\"In this tutorial I have show my favorite way to install SFDX-CLI on an Ubuntu 20.04 installation with Zsh, Oh My Zsh, NVM, and SFDX-CLI autocompletion.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity - SalesforceDevops.net\" \/>\n<meta property=\"og:description\" content=\"In this tutorial I have show my favorite way to install SFDX-CLI on an Ubuntu 20.04 installation with Zsh, Oh My Zsh, NVM, and SFDX-CLI autocompletion.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/\" \/>\n<meta property=\"og:site_name\" content=\"SalesforceDevops.net\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/salesforcedevopsnet\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-10T18:13:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-19T03:06:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Vernon Keenan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@salesforcedevop\" \/>\n<meta name=\"twitter:site\" content=\"@salesforcedevop\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vernon Keenan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/\"},\"author\":{\"name\":\"Vernon Keenan\",\"@id\":\"https:\/\/cms.salesforcedevops.net\/#\/schema\/person\/ac094823465a60be4f47d7321ed7ce04\"},\"headline\":\"How to Install SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity\",\"datePublished\":\"2021-06-10T18:13:23+00:00\",\"dateModified\":\"2021-06-19T03:06:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/\"},\"wordCount\":796,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/#organization\"},\"image\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg\",\"keywords\":[\"NVM\",\"Oh My Zsh\",\"SFDX-CLI\"],\"articleSection\":[\"How To\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#respond\"]}],\"copyrightYear\":\"2021\",\"copyrightHolder\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/\",\"url\":\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/\",\"name\":\"How to Install SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity - SalesforceDevops.net\",\"isPartOf\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg\",\"datePublished\":\"2021-06-10T18:13:23+00:00\",\"dateModified\":\"2021-06-19T03:06:58+00:00\",\"description\":\"In this tutorial I have show my favorite way to install SFDX-CLI on an Ubuntu 20.04 installation with Zsh, Oh My Zsh, NVM, and SFDX-CLI autocompletion.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#primaryimage\",\"url\":\"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg\",\"contentUrl\":\"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg\",\"width\":1200,\"height\":675,\"caption\":\"How To Install SFDX-CLI\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cms.salesforcedevops.net\/#website\",\"url\":\"https:\/\/cms.salesforcedevops.net\/\",\"name\":\"SalesforceDevops.net\",\"description\":\"Elevating Salesforce Devops with Insights and Innovation\",\"publisher\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cms.salesforcedevops.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cms.salesforcedevops.net\/#organization\",\"name\":\"SalesforceDevops.net\",\"url\":\"https:\/\/cms.salesforcedevops.net\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cms.salesforcedevops.net\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/04\/logo-horiz-325.jpg\",\"contentUrl\":\"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/04\/logo-horiz-325.jpg\",\"width\":325,\"height\":101,\"caption\":\"SalesforceDevops.net\"},\"image\":{\"@id\":\"https:\/\/cms.salesforcedevops.net\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/salesforcedevopsnet\",\"https:\/\/twitter.com\/salesforcedevop\",\"https:\/\/www.linkedin.com\/in\/vernonkeenan\",\"https:\/\/www.youtube.com\/channel\/UCOgOn9rD5gyXSOmV7-Q0n7g\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/cms.salesforcedevops.net\/#\/schema\/person\/ac094823465a60be4f47d7321ed7ce04\",\"name\":\"Vernon Keenan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cms.salesforcedevops.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cms.salesforcedevops.net\/wp-content\/wphb-cache\/gravatar\/09b\/09bd30f3ca2e049fbd8b9313ef5a41aex96.jpg\",\"contentUrl\":\"https:\/\/cms.salesforcedevops.net\/wp-content\/wphb-cache\/gravatar\/09b\/09bd30f3ca2e049fbd8b9313ef5a41aex96.jpg\",\"caption\":\"Vernon Keenan\"},\"description\":\"Vernon Keenan (LinkedIn) works as a senior information technology industry consultant based in Oakland, California. He earned his B.Sc. in Biomedical Engineering at Northwestern University where he programmed a PDP-8 with punched paper tape. In his 34-year-long career he has been a teacher, SPSS programmer, database administrator, clinical researcher, technology journalist, product marketing manager, market researcher, management consultant, and industry analyst. Most recently he is a telecom operator, cloud architect, Go devops engineer and Salesforce Developer\/Architect. For inquiries about Salesforce strategy briefings or solution architect work please contact Vern directly at +1-510-679-1900 or vern@vernonkeenan.com.\",\"sameAs\":[\"https:\/\/ceres-gw.tnxs.net\",\"https:\/\/linkedin.com\/in\/vernonkeenan\",\"https:\/\/twitter.com\/salesforcedevop\"],\"url\":\"https:\/\/cms.salesforcedevops.net\/index.php\/author\/vern\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity - SalesforceDevops.net","description":"In this tutorial I have show my favorite way to install SFDX-CLI on an Ubuntu 20.04 installation with Zsh, Oh My Zsh, NVM, and SFDX-CLI autocompletion.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/","og_locale":"en_US","og_type":"article","og_title":"How to Install SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity - SalesforceDevops.net","og_description":"In this tutorial I have show my favorite way to install SFDX-CLI on an Ubuntu 20.04 installation with Zsh, Oh My Zsh, NVM, and SFDX-CLI autocompletion.","og_url":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/","og_site_name":"SalesforceDevops.net","article_publisher":"https:\/\/www.facebook.com\/salesforcedevopsnet","article_published_time":"2021-06-10T18:13:23+00:00","article_modified_time":"2021-06-19T03:06:58+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg","type":"image\/jpeg"}],"author":"Vernon Keenan","twitter_card":"summary_large_image","twitter_creator":"@salesforcedevop","twitter_site":"@salesforcedevop","twitter_misc":{"Written by":"Vernon Keenan","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#article","isPartOf":{"@id":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/"},"author":{"name":"Vernon Keenan","@id":"https:\/\/cms.salesforcedevops.net\/#\/schema\/person\/ac094823465a60be4f47d7321ed7ce04"},"headline":"How to Install SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity","datePublished":"2021-06-10T18:13:23+00:00","dateModified":"2021-06-19T03:06:58+00:00","mainEntityOfPage":{"@id":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/"},"wordCount":796,"commentCount":2,"publisher":{"@id":"https:\/\/cms.salesforcedevops.net\/#organization"},"image":{"@id":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#primaryimage"},"thumbnailUrl":"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg","keywords":["NVM","Oh My Zsh","SFDX-CLI"],"articleSection":["How To"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#respond"]}],"copyrightYear":"2021","copyrightHolder":{"@id":"https:\/\/cms.salesforcedevops.net\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/","url":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/","name":"How to Install SFDX-CLI on Ubuntu 20.04 to Boost Developer Productivity - SalesforceDevops.net","isPartOf":{"@id":"https:\/\/cms.salesforcedevops.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#primaryimage"},"image":{"@id":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#primaryimage"},"thumbnailUrl":"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg","datePublished":"2021-06-10T18:13:23+00:00","dateModified":"2021-06-19T03:06:58+00:00","description":"In this tutorial I have show my favorite way to install SFDX-CLI on an Ubuntu 20.04 installation with Zsh, Oh My Zsh, NVM, and SFDX-CLI autocompletion.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cms.salesforcedevops.net\/index.php\/2021\/06\/10\/how-to-install-sfdx-cli-on-ubuntu-20-04-to-boost-developer-productivity\/#primaryimage","url":"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg","contentUrl":"https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg","width":1200,"height":675,"caption":"How To Install SFDX-CLI"},{"@type":"WebSite","@id":"https:\/\/cms.salesforcedevops.net\/#website","url":"https:\/\/cms.salesforcedevops.net\/","name":"SalesforceDevops.net","description":"Elevating Salesforce Devops with Insights and Innovation","publisher":{"@id":"https:\/\/cms.salesforcedevops.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cms.salesforcedevops.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cms.salesforcedevops.net\/#organization","name":"SalesforceDevops.net","url":"https:\/\/cms.salesforcedevops.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cms.salesforcedevops.net\/#\/schema\/logo\/image\/","url":"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/04\/logo-horiz-325.jpg","contentUrl":"https:\/\/origin.salesforcedevops.net\/wp-content\/uploads\/2021\/04\/logo-horiz-325.jpg","width":325,"height":101,"caption":"SalesforceDevops.net"},"image":{"@id":"https:\/\/cms.salesforcedevops.net\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/salesforcedevopsnet","https:\/\/twitter.com\/salesforcedevop","https:\/\/www.linkedin.com\/in\/vernonkeenan","https:\/\/www.youtube.com\/channel\/UCOgOn9rD5gyXSOmV7-Q0n7g"]},{"@type":"Person","@id":"https:\/\/cms.salesforcedevops.net\/#\/schema\/person\/ac094823465a60be4f47d7321ed7ce04","name":"Vernon Keenan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cms.salesforcedevops.net\/#\/schema\/person\/image\/","url":"https:\/\/cms.salesforcedevops.net\/wp-content\/wphb-cache\/gravatar\/09b\/09bd30f3ca2e049fbd8b9313ef5a41aex96.jpg","contentUrl":"https:\/\/cms.salesforcedevops.net\/wp-content\/wphb-cache\/gravatar\/09b\/09bd30f3ca2e049fbd8b9313ef5a41aex96.jpg","caption":"Vernon Keenan"},"description":"Vernon Keenan (LinkedIn) works as a senior information technology industry consultant based in Oakland, California. He earned his B.Sc. in Biomedical Engineering at Northwestern University where he programmed a PDP-8 with punched paper tape. In his 34-year-long career he has been a teacher, SPSS programmer, database administrator, clinical researcher, technology journalist, product marketing manager, market researcher, management consultant, and industry analyst. Most recently he is a telecom operator, cloud architect, Go devops engineer and Salesforce Developer\/Architect. For inquiries about Salesforce strategy briefings or solution architect work please contact Vern directly at +1-510-679-1900 or vern@vernonkeenan.com.","sameAs":["https:\/\/ceres-gw.tnxs.net","https:\/\/linkedin.com\/in\/vernonkeenan","https:\/\/twitter.com\/salesforcedevop"],"url":"https:\/\/cms.salesforcedevops.net\/index.php\/author\/vern\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg",1200,675,false],"thumbnail":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover-150x150.png",150,150,true],"medium":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover-300x169-1.jpg",300,169,true],"medium_large":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover-768x432-1.jpg",768,432,true],"large":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover-1024x576-1.jpg",980,551,true],"1536x1536":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg",1200,675,false],"2048x2048":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg",1200,675,false],"lightbox":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg",1200,675,false],"search_results":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover-125x125.jpg",125,125,true],"blog_entry":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg",750,422,false],"blog_post":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg",750,422,false],"blog_post_full":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg",1200,675,false],"blog_related":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg",1200,675,false],"gallery":["https:\/\/cms.salesforcedevops.net\/wp-content\/uploads\/2021\/06\/VideoCoverPage-installsfdxcli-cover.jpg",1200,675,false]},"uagb_author_info":{"display_name":"Vernon Keenan","author_link":"https:\/\/cms.salesforcedevops.net\/index.php\/author\/vern\/"},"uagb_comment_info":2,"uagb_excerpt":"SFDX-CLI is the key touchpoint between the open source devops world and the Salesforce platform. It is a must-have utility for all Salesforce developers. In this tutorial I install SFDX-CLI&hellip;","_links":{"self":[{"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/posts\/3733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/comments?post=3733"}],"version-history":[{"count":36,"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/posts\/3733\/revisions"}],"predecessor-version":[{"id":4008,"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/posts\/3733\/revisions\/4008"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/media\/4004"}],"wp:attachment":[{"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/media?parent=3733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/categories?post=3733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/tags?post=3733"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/cms.salesforcedevops.net\/index.php\/wp-json\/wp\/v2\/post_series?post=3733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}