From: Nicolas Coden Date: Tue, 9 Jan 2018 21:53:42 +0000 (+0100) Subject: docs: improve docs of CLI installation X-Git-Tag: v6.6.0~55^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c47d70b78db2eb7bb09aba438de89a47230a2f37;p=thirdparty%2Ffoundation%2Ffoundation-sites.git docs: improve docs of CLI installation --- diff --git a/docs/pages/installation.md b/docs/pages/installation.md index 10cc76312..3261afdb5 100644 --- a/docs/pages/installation.md +++ b/docs/pages/installation.md @@ -4,31 +4,33 @@ description: There are many ways to install Foundation, but if you're just getti video: '6KwsGcEHVTE' --- -### Command-Line Tool +## Install with Foundation CLI -Not a fan of GUIs? The Node-powered Foundation CLI can install the same template projects for you. Install it with npm: +Not a fan of GUIs? The Node-powered Foundation CLI can install the same template projects for you. + +Install Foundation CLI: ```bash npm install --global foundation-cli +# or sudo npm install --global foundation-cli ``` -Depending on how your machine is configured, the command may fail with an `EACCESS` error. To get around this, run the command with `sudo` at the beginning: +Then use to create a new Foundation project: ```bash -sudo npm install --global foundation-cli +foundation new ``` -
-

If you already have the Foundation 5 CLI on your machine, you will only be able to access one of the commands, depending on how your command line environment is configured.

- -

If you want to remove the old CLI, run gem uninstall foundation. After testing this new CLI, if you want to go back to the old CLI, run npm uninstall foundation-cli --global.

+
+ Depending on how your machine is configured, the command may fail with an `EACCESS` error. To get around this, run the commands with `sudo` at the beginning.
-Once you've installed the CLI, use the `new` command to start making a new project: +
+

Foundation 5 users: if you already have the Foundation 5 CLI on your machine, you will only be able to access one of the commands, depending on how your command line environment is configured.

+ +

To remove the Foundation 5 CLI, run gem uninstall foundation. After testing this new CLI, if you want to go back to the old CLI. To remove the Foundation 6 CLI, run npm uninstall foundation-cli --global.

+
-```bash -foundation new -``` ---