{"id":20942094,"url":"https://github.com/salakjs/salak-cli","last_synced_at":"2026-04-27T10:32:11.893Z","repository":{"id":65374071,"uuid":"116015363","full_name":"SalakJS/salak-cli","owner":"SalakJS","description":"Scaffolding for SalakJS.","archived":false,"fork":false,"pushed_at":"2018-04-26T12:37:23.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T21:15:04.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SalakJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-02T12:58:47.000Z","updated_at":"2018-04-26T12:37:24.000Z","dependencies_parsed_at":"2023-04-25T21:24:07.620Z","dependency_job_id":null,"html_url":"https://github.com/SalakJS/salak-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalakJS%2Fsalak-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalakJS%2Fsalak-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalakJS%2Fsalak-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalakJS%2Fsalak-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SalakJS","download_url":"https://codeload.github.com/SalakJS/salak-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243335382,"owners_count":20274898,"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","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":[],"created_at":"2024-11-18T23:22:39.177Z","updated_at":"2025-12-27T13:11:09.250Z","avatar_url":"https://github.com/SalakJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# salak-cli\n\n[![NPM version][npm-image]][npm-url]\n[![David deps][david-image]][david-url]\n[![NPM download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/salak-cli.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/salak-cli\n[david-image]: https://img.shields.io/david/SalakJS/salak-cli.svg?style=flat-square\n[david-url]: https://david-dm.org/SalakJS/salak-cli\n[download-image]: https://img.shields.io/npm/dm/salak-cli.svg?style=flat-square\n[download-url]: https://npmjs.org/package/salak-cli\n\nScaffolding for [SalakJS](https://github.com/SalakJS/salak).\n\n## Install\n\n```bash\n$ npm install -g salak-cli\n```\n\nThe commands list:\n\n- init: generate a new project from a template\n- list: list available templates\n- set:  set available variables\n\n## Usage\n\n### init\n\nalias: salak-init\n\nQuick to create project.\n\n```bash\n$ salak init [template] [project-name]\n$ salak init [template] [project-name] -u # force updating templates\n$ salak init [template] [project-name] -q # quick create project with default options\n$ salak init [template] [project-name] -p '{\"name\":\"salak\",\"author\":\"title\"}' # the same as quick，provide default options，it must be include name and author key.\n$ salak init -d /template-dir [project-name] # create project from local template\n```\n\n### list\n\nList the availabel templates from the official templates or the repo which you set.\n\nalias: salak-list\n\n```bash\n$ salak list\n$ salak list -u # find from online repo, otherwise find from local cache.\n```\n\n### set\n\nalias: salak-set\n\nYou can use your templates for replacing official templates，you need to create a repo which like [templates](https://github.com/SalakJS/templates).\n\n```bash\n$ salak set repo SalakJS/templates\n```\n\nIf you use in your private repo, you must remove the git@ and .git, such as:\n\n```bash\n$ salak set repo git.xxx:username/repo\n```\n\ntip: you must use options '--clone' when you use private repo.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalakjs%2Fsalak-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalakjs%2Fsalak-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalakjs%2Fsalak-cli/lists"}