Menu icon Foundation
What is the advantage of using the Foundation CLI?

I am new to Sass and have 0 Ruby/Compass experience. I finally got to the point that for Foundation I figured it would be easier to use Foundation's Sass rather than trying to override with css which was just becoming a bit too unruly to me.

In the couple days I have used this I have had a couple questions about the CLI for Foundation. For my workflow I usually just start with a base_project repo of mine. It pulls in composer.json and bower.json including Foundation with the sass file. On to my point what does the CLI do asides from git clone and bower install? Are there any perks to using it over just having my base_project folder pulled in. My main issue is the gemfile and gemfile.lock. Do these do anything that is needed or are they just for Bundle? I have a pretty standard setup and am not using Ruby outside of compiling sass. The only other item I see which I have since added is the config.rb file which compiles sass.

I have been looking about but outside Foundations Docs I am not seeing much on this point.

Sasscompassgemfilefilescli

I am new to Sass and have 0 Ruby/Compass experience. I finally got to the point that for Foundation I figured it would be easier to use Foundation's Sass rather than trying to override with css which was just becoming a bit too unruly to me.

In the couple days I have used this I have had a couple questions about the CLI for Foundation. For my workflow I usually just start with a base_project repo of mine. It pulls in composer.json and bower.json including Foundation with the sass file. On to my point what does the CLI do asides from git clone and bower install? Are there any perks to using it over just having my base_project folder pulled in. My main issue is the gemfile and gemfile.lock. Do these do anything that is needed or are they just for Bundle? I have a pretty standard setup and am not using Ruby outside of compiling sass. The only other item I see which I have since added is the config.rb file which compiles sass.

I have been looking about but outside Foundations Docs I am not seeing much on this point.

Rafi Benkual over 4 years ago

The CLI clones in the https://github.com/zurb/foundation-compass-template or https://github.com/zurb/foundation-libsass-template depending which one you choose.

Then it packages in https://github.com/zurb/bower-foundation for you. This is pointed at the latest tagged release.

It can also run some other automations so you don't have to configure the project.

Creating a new project is just foundation new {my project name]
and
to update bower update