Sass CLI

Overview
What You’ll Learn
The sass command turns .scss and .sass files into CSS. Learn the Dart Sass command, how to watch files while you work, and what changed from the old Ruby Sass tool.
SCSS
# compile one file
sass styles.scss styles.css
# watch for changes
sass --watch scss:css Index
CLI Index
Command-Line Tools
Install and run Sass from the terminal.
Frequently Asked Questions
Install Dart Sass, then run sass input.scss output.css.
Use sass --watch input.scss:output.css or sass --watch scss:css for folders.
No. Ruby Sass reached end of life. Use Dart Sass.
Not necessarily. Many bundlers wrap Sass for you, but the CLI is the quickest way to learn and test.
Install Dart Sass, then open the Dart Sass CLI and --watch tutorials.
Next: Dart Sass CLI
Start with the first tutorial in this section.
CODETOFUN NEWS
Stay Ahead in Tech
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
6 people found this page helpful
