{
    "mode": "man",
    "parameter": "sass-convert",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/sass-convert/1/json",
    "generated": "2026-05-30T05:15:07Z",
    "synopsis": "sass-convert [options] [INPUT] [OUTPUT]",
    "sections": {
        "NAME": {
            "content": "Sass - sass-convert converts files between CSS\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "sass-convert [options] [INPUT] [OUTPUT]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "",
            "subsections": [
                {
                    "name": "Description:",
                    "content": "Converts  between  CSS, indented syntax, and SCSS files. For example, this can convert\nfrom the indented syntax to SCSS, or from CSS to SCSS (adding appropriate nesting).\n"
                },
                {
                    "name": "Common Options:",
                    "content": ""
                },
                {
                    "name": "-F --from",
                    "content": "The format to convert from. Can be css, scss, sass.  By default, this is inferred from\nthe input filename.  If there is none, defaults to css.\n",
                    "flag": "-F",
                    "long": "--from"
                },
                {
                    "name": "-T --to",
                    "content": "The  format to convert to. Can be scss or sass.  By default, this is inferred from the\noutput filename.  If there is none, defaults to sass.\n",
                    "flag": "-T",
                    "long": "--to"
                },
                {
                    "name": "-i --in-place",
                    "content": "Convert a file to its own syntax.  This can be used to update some deprecated syntax.\n",
                    "flag": "-i",
                    "long": "--in-place"
                },
                {
                    "name": "-R --recursive",
                    "content": "Convert all the files in a directory. Requires --from and --to.\n\n-?, -h, --help\nShow this help message.\n",
                    "flag": "-R",
                    "long": "--recursive"
                },
                {
                    "name": "-v --version",
                    "content": "Print the Sass version.\n",
                    "flag": "-v",
                    "long": "--version"
                },
                {
                    "name": "Style:",
                    "content": ""
                },
                {
                    "name": "--dasherize",
                    "content": "Convert underscores to dashes.\n\n--indent NUM\nHow many spaces to use for each level of indentation. Defaults to 2.   \"t\"  means  use\nhard tabs.\n\n--old  Output  the  old-style  \":prop  val\" property syntax.  Only meaningful when generating\nSass.\n",
                    "long": "--dasherize"
                },
                {
                    "name": "Input and Output:",
                    "content": ""
                },
                {
                    "name": "-s --stdin",
                    "content": "Read input from standard input instead of an input file.  This is the  default  if  no\ninput file is specified. Requires --from.\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": "Miscellaneous:",
                    "content": "--cache-location PATH\nThe path to save parsed Sass files. Defaults to .sass-cache.\n"
                },
                {
                    "name": "-C --no-cache",
                    "content": "Don't cache to sassc files.\n",
                    "flag": "-C",
                    "long": "--no-cache"
                },
                {
                    "name": "-q --quiet",
                    "content": "Silence warnings and status messages during conversion.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "--trace",
                    "content": "Show a full Ruby stack trace on error\n\n\n\nSass 3.7.4                                  November 2021                                    SASS(1)",
                    "long": "--trace"
                }
            ]
        }
    },
    "summary": "Sass - sass-convert converts files between CSS",
    "flags": [
        {
            "flag": "-F",
            "long": "--from",
            "arg": null,
            "description": "The format to convert from. Can be css, scss, sass. By default, this is inferred from the input filename. If there is none, defaults to css."
        },
        {
            "flag": "-T",
            "long": "--to",
            "arg": null,
            "description": "The format to convert to. Can be scss or sass. By default, this is inferred from the output filename. If there is none, defaults to sass."
        },
        {
            "flag": "-i",
            "long": "--in-place",
            "arg": null,
            "description": "Convert a file to its own syntax. This can be used to update some deprecated syntax."
        },
        {
            "flag": "-R",
            "long": "--recursive",
            "arg": null,
            "description": "Convert all the files in a directory. Requires --from and --to. -?, -h, --help Show this help message."
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "Print the Sass version."
        },
        {
            "flag": "",
            "long": "--dasherize",
            "arg": null,
            "description": "Convert underscores to dashes. --indent NUM How many spaces to use for each level of indentation. Defaults to 2. \"t\" means use hard tabs. --old Output the old-style \":prop val\" property syntax. Only meaningful when generating Sass."
        },
        {
            "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. Requires --from."
        },
        {
            "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": "-C",
            "long": "--no-cache",
            "arg": null,
            "description": "Don't cache to sassc files."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Silence warnings and status messages during conversion."
        },
        {
            "flag": "",
            "long": "--trace",
            "arg": null,
            "description": "Show a full Ruby stack trace on error Sass 3.7.4 November 2021 SASS(1)"
        }
    ],
    "examples": [],
    "see_also": []
}