{
    "mode": "man",
    "parameter": "SASS",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/SASS/1/json",
    "generated": "2026-05-30T06:06:00Z",
    "synopsis": "sass [options] [INPUT] [OUTPUT]",
    "sections": {
        "NAME": {
            "content": "Ruby - Sass compiles CSS from SASS files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "sass [options] [INPUT] [OUTPUT]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "",
            "subsections": [
                {
                    "name": "Description:",
                    "content": "Converts SCSS or Sass files to CSS.\n"
                },
                {
                    "name": "Common Options:",
                    "content": ""
                },
                {
                    "name": "-I --load-path",
                    "content": "Specify a Sass import path.\n",
                    "flag": "-I",
                    "long": "--load-path"
                },
                {
                    "name": "-r --require",
                    "content": "Require a Ruby library before running Sass.\n",
                    "flag": "-r",
                    "long": "--require"
                },
                {
                    "name": "--compass",
                    "content": "Make Compass imports available and load project configuration.\n",
                    "long": "--compass"
                },
                {
                    "name": "-t --style",
                    "content": "Output style. Can be nested (default), compact, compressed, or expanded.\n\n-?, -h, --help\nShow this help message.\n",
                    "flag": "-t",
                    "long": "--style"
                },
                {
                    "name": "-v --version",
                    "content": "Print the Sass version.\n",
                    "flag": "-v",
                    "long": "--version"
                },
                {
                    "name": "Watching and Updating:",
                    "content": ""
                },
                {
                    "name": "--watch",
                    "content": "Watch  files or directories for changes.  The location of the generated CSS can be set\nusing a colon:\n\nsass --watch input.sass:output.css\nsass --watch input-dir:output-dir\n\n--poll Check for file changes manually, rather than relying on the OS.  Only  meaningful  for\n--watch.\n",
                    "long": "--watch"
                },
                {
                    "name": "--update",
                    "content": "Compile files or directories to CSS.  Locations are set like --watch.\n",
                    "long": "--update"
                },
                {
                    "name": "-f --force",
                    "content": "Recompile  every  Sass file, even if the CSS file is newer.  Only meaningful for --up‐‐\ndate.\n",
                    "flag": "-f",
                    "long": "--force"
                },
                {
                    "name": "--stop-on-error",
                    "content": "If a file fails to compile, exit immediately.  Only meaningful for --watch  and  --up‐‐\ndate.\n",
                    "long": "--stop-on-error"
                },
                {
                    "name": "Input and Output:",
                    "content": "--scss Use the CSS-superset SCSS syntax.\n\n--sourcemap=TYPE\nHow  to  link  generated  output  to the source files.  auto (default): relative paths\nwhere possible, file URIs elsewhere file: always absolute file  URIs  inline:  include\nthe source text in the sourcemap none: no sourcemaps\n"
                },
                {
                    "name": "-s --stdin",
                    "content": "Read  input  from  standard input instead of an input file.  This is the default if no\ninput file is specified.\n",
                    "flag": "-s",
                    "long": "--stdin"
                },
                {
                    "name": "-E --default-encoding",
                    "content": "Specify the default encoding for input files.\n",
                    "flag": "-E",
                    "long": "--default-encoding"
                },
                {
                    "name": "--unix-newlines",
                    "content": "Use Unix-style newlines in written files.  Always true on Unix.\n",
                    "long": "--unix-newlines"
                },
                {
                    "name": "-g --debug-info",
                    "content": "Emit output that can be used by the FireSass Firebug plugin.\n",
                    "flag": "-g",
                    "long": "--debug-info"
                },
                {
                    "name": "-l --line-numbers",
                    "content": "Emit comments in the generated CSS indicating the corresponding source line.\n",
                    "flag": "-l",
                    "long": "--line-numbers"
                },
                {
                    "name": "--line-comments",
                    "content": "",
                    "long": "--line-comments"
                },
                {
                    "name": "Miscellaneous:",
                    "content": ""
                },
                {
                    "name": "-i --interactive",
                    "content": "Run an interactive SassScript shell.\n",
                    "flag": "-i",
                    "long": "--interactive"
                },
                {
                    "name": "-c --check",
                    "content": "Just check syntax, don't evaluate.\n\n--precision NUMBEROFDIGITS How many digits of precision to use when outputting decimal num‐\nbers.\nDefaults to 10.\n\n--cache-location PATH\nThe path to save parsed Sass files. Defaults to .sass-cache.\n",
                    "flag": "-c",
                    "long": "--check"
                },
                {
                    "name": "-C --no-cache",
                    "content": "Don't cache parsed Sass files.\n",
                    "flag": "-C",
                    "long": "--no-cache"
                },
                {
                    "name": "--trace",
                    "content": "Show a full Ruby stack trace on error.\n",
                    "long": "--trace"
                },
                {
                    "name": "-q --quiet",
                    "content": "Silence warnings and status messages during compilation.\n\n\n\nRuby Sass 3.7.4                             November 2021                                    RUBY(1)",
                    "flag": "-q",
                    "long": "--quiet"
                }
            ]
        }
    },
    "summary": "Ruby - Sass compiles CSS from SASS files",
    "flags": [
        {
            "flag": "-I",
            "long": "--load-path",
            "arg": null,
            "description": "Specify a Sass import path."
        },
        {
            "flag": "-r",
            "long": "--require",
            "arg": null,
            "description": "Require a Ruby library before running Sass."
        },
        {
            "flag": "",
            "long": "--compass",
            "arg": null,
            "description": "Make Compass imports available and load project configuration."
        },
        {
            "flag": "-t",
            "long": "--style",
            "arg": null,
            "description": "Output style. Can be nested (default), compact, compressed, or expanded. -?, -h, --help Show this help message."
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "Print the Sass version."
        },
        {
            "flag": "",
            "long": "--watch",
            "arg": null,
            "description": "Watch files or directories for changes. The location of the generated CSS can be set using a colon: sass --watch input.sass:output.css sass --watch input-dir:output-dir --poll Check for file changes manually, rather than relying on the OS. Only meaningful for --watch."
        },
        {
            "flag": "",
            "long": "--update",
            "arg": null,
            "description": "Compile files or directories to CSS. Locations are set like --watch."
        },
        {
            "flag": "-f",
            "long": "--force",
            "arg": null,
            "description": "Recompile every Sass file, even if the CSS file is newer. Only meaningful for --up‐‐ date."
        },
        {
            "flag": "",
            "long": "--stop-on-error",
            "arg": null,
            "description": "If a file fails to compile, exit immediately. Only meaningful for --watch and --up‐‐ date."
        },
        {
            "flag": "-s",
            "long": "--stdin",
            "arg": null,
            "description": "Read input from standard input instead of an input file. This is the default if no input file is specified."
        },
        {
            "flag": "-E",
            "long": "--default-encoding",
            "arg": null,
            "description": "Specify the default encoding for input files."
        },
        {
            "flag": "",
            "long": "--unix-newlines",
            "arg": null,
            "description": "Use Unix-style newlines in written files. Always true on Unix."
        },
        {
            "flag": "-g",
            "long": "--debug-info",
            "arg": null,
            "description": "Emit output that can be used by the FireSass Firebug plugin."
        },
        {
            "flag": "-l",
            "long": "--line-numbers",
            "arg": null,
            "description": "Emit comments in the generated CSS indicating the corresponding source line."
        },
        {
            "flag": "",
            "long": "--line-comments",
            "arg": null,
            "description": ""
        },
        {
            "flag": "-i",
            "long": "--interactive",
            "arg": null,
            "description": "Run an interactive SassScript shell."
        },
        {
            "flag": "-c",
            "long": "--check",
            "arg": null,
            "description": "Just check syntax, don't evaluate. --precision NUMBEROFDIGITS How many digits of precision to use when outputting decimal num‐ bers. Defaults to 10. --cache-location PATH The path to save parsed Sass files. Defaults to .sass-cache."
        },
        {
            "flag": "-C",
            "long": "--no-cache",
            "arg": null,
            "description": "Don't cache parsed Sass files."
        },
        {
            "flag": "",
            "long": "--trace",
            "arg": null,
            "description": "Show a full Ruby stack trace on error."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Silence warnings and status messages during compilation. Ruby Sass 3.7.4 November 2021 RUBY(1)"
        }
    ],
    "examples": [],
    "see_also": []
}