{"id":15138653,"url":"https://github.com/rse/nunjucks-cli","last_synced_at":"2025-08-01T19:04:43.146Z","repository":{"id":188417142,"uuid":"678704406","full_name":"rse/nunjucks-cli","owner":"rse","description":"Nunjucks Template Rendering Command-Line Interface","archived":false,"fork":false,"pushed_at":"2025-06-02T19:37:03.000Z","size":56,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-30T01:51:20.624Z","etag":null,"topics":["nunjucks","rendering","template"],"latest_commit_sha":null,"homepage":"http://npmjs.com/@rse/nunjucks-cli","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-15T07:07:16.000Z","updated_at":"2025-06-02T19:37:05.000Z","dependencies_parsed_at":"2024-06-24T22:54:17.686Z","dependency_job_id":"7936d669-2b24-4297-ae94-238ef13b6614","html_url":"https://github.com/rse/nunjucks-cli","commit_stats":null,"previous_names":["rse/nunjucks-cli"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/rse/nunjucks-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rse%2Fnunjucks-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rse%2Fnunjucks-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rse%2Fnunjucks-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rse%2Fnunjucks-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rse","download_url":"https://codeload.github.com/rse/nunjucks-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rse%2Fnunjucks-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268281570,"owners_count":24225157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nunjucks","rendering","template"],"created_at":"2024-09-26T07:43:03.868Z","updated_at":"2025-08-01T19:04:43.071Z","avatar_url":"https://github.com/rse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nnunjucks-cli\n============\n\n**Nunjucks Template Rendering Command-Line Interface**\n\n[![github (author stars)](https://img.shields.io/github/stars/rse?logo=github\u0026label=author%20stars\u0026color=%233377aa)](https://github.com/rse)\n[![github (author followers)](https://img.shields.io/github/followers/rse?label=author%20followers\u0026logo=github\u0026color=%234477aa)](https://github.com/rse)\n[![github (project stdver)](https://img.shields.io/github/package-json/stdver/rse/nunjucks-cli?logo=github\u0026label=project%20stdver\u0026color=%234477aa\u0026cacheSeconds=900)](https://github.com/rse/nunjucks-cli)\n\u003cbr/\u003e\n[![npm (project license)](https://img.shields.io/npm/l/%40rse%2Fnunjucks-cli?logo=npm\u0026label=npm%20license\u0026color=%23cc3333)](https://npmjs.com/@rse/nunjucks-cli)\n[![npm (project release)](https://img.shields.io/npm/v/%40rse/nunjucks-cli?logo=npm\u0026label=npm%20release\u0026color=%23cc3333)](https://npmjs.com/@rse/nunjucks-cli)\n[![npm (project downloads)](https://img.shields.io/npm/dm/%40rse/nunjucks-cli?logo=npm\u0026label=npm%20downloads\u0026color=%23cc3333)](https://npmjs.com/@rse/nunjucks-cli)\n\nAbstract\n--------\n\nThis is a small command-line utility to render templates with the rich\nand powerful templating language [Mozilla Nunjucks](https://mozilla.github.io/nunjucks/).\nThis allows you to define your configuration in a YAML file and then render\nan output file based on a template input file where your configuration can be expanded.\nIt optionally can load Nunjucks addons like the ones from the companion\n[Nunjucks Addons](https://github.com/rse/nunjucks-addons) package.\n\nInstallation \u0026 Usage\n--------------------\n\nFor the installation via Node Package Manager (NPM) use:\n\n```sh\n# plain functionality\n$ npm install -g @rse/nunjucks-cli\n$ nunjucks [...]\n\n# with addon functionality\n$ npm install -g @rse/nunjucks-cli @rse/nunjucks-addons\n$ nunjucks -e @rse/nunjucks-addons [...]\n```\n\nAlternatively, instead of globally installing it, you can also use it on-the-fly with NPM's npx(1) utility:\n\n```sh\n# plain functionality\n$ npx --yes @rse/nunjucks-cli [...]\n\n# with addon functionality\n$ npx --yes --package @rse/nunjucks-cli --package @rse/nunjucks-addons -- \\\n  nunjucks -e @rse/nunjucks-addons [...]\n```\n\nCommand-Line Interface (CLI)\n----------------------------\n\nShort excerpt of the CLI options and arguments from the companion [Unix manpage](nunjucks.md):\n\n```\n$ nunjucks\n  [-h|--help]\n  [-V|--version]\n  [-c|--config \u003cconfig-file\u003e]\n  [-C|--option \u003ckey\u003e=\u003cvalue\u003e]\n  [-d|--defines \u003ccontext-file\u003e]\n  [-D|--define \u003ckey\u003e=\u003cvalue\u003e]\n  [-e|--extension \u003cmodule-name\u003e]\n  [-o|--output \u003coutput-file\u003e|-]\n  \u003cinput-file\u003e|-\n```\n\n- `-h`|`--help`:\u003cbr/\u003e\n  Show usage help.\n- `-V`|`--version`:\u003cbr/\u003e\n  Show program version information.\n- `-c`|`--config` `\u003cconfig-file\u003e`:\u003cbr/\u003e\n  Load Nunjucks configuration YAML file.\n- `-C`|`--option` `\u003ckey\u003e=\u003cvalue\u003e`:\u003cbr/\u003e\n  Set Nunjucks configuration option.\n- `-d`|`--defines` `\u003ccontext-file\u003e`:\u003cbr/\u003e\n  Load context definition YAML file.\n  Can occur multiple times.\n- `-D`|`--define` `\u003ckey\u003e=\u003cvalue\u003e`:\u003cbr/\u003e\n  Set context definition key/value.\n  Can occur multiple times.\n- `-e`|`--extension` `\u003cmodule-name\u003e`:\u003cbr/\u003e\n  Load Nunjucks JavaScript extension module (installed via NPM).\n- `-o`|`--output` `\u003coutput-file\u003e`|`-`:\u003cbr/\u003e\n  Save output file (or stdout).\n- `\u003cinput-file\u003e`|`-`:\u003cbr/\u003e\n  Load input file (or stdin).\n\nExample\n-------\n\n```sh\n$ echo \"Hello, {{who}}!\" | nunjucks -D who=world -\nHello, world!\n```\n\nLicense\n-------\n\nCopyright \u0026copy; 2019-2025 Dr. Ralf S. Engelschall (http://engelschall.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frse%2Fnunjucks-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frse%2Fnunjucks-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frse%2Fnunjucks-cli/lists"}