Using Bootstrap CLI
In this book you will be introduced to Bootstrap CLI. Instead of using Bootstrap's bundled build process, you can also start a new project by running the Bootstrap CLI.
Bootstrap CLI is the command-line interface for Bootstrap 4. It includes some built-in example projects, but you can also use it to employ and deliver your own projects.
You'll need the following software installed to get started with Bootstrap CLI:
- Node.js 0.12+: Use the installer provided on the Node.js website, which can be found at the follow URL: https://nodejs.org/en/
- With Node installed, run
[sudo] npm install -g grunt bower
- Git: Use the installer for your OS
- Windows users can also try Git for Windows
Gulp is another task runner for the Node.js system. Notice that when you prefer Gulp over Grunt, you should install gulp instead of grunt with the following command:
[sudo] npm install -g gulp bower
You can read more about Gulp in Chapter 2, Creating Your Own Build Process with Gulp.
The Bootstrap CLI is installed through npm by running the following command in your console:
npm install -g bootstrap-cli
This will add the bootstrap
command to your system.