{"id":21812879,"url":"https://github.com/neverland/fin-cli","last_synced_at":"2026-03-09T14:07:03.979Z","repository":{"id":57155215,"uuid":"69565607","full_name":"Neverland/fin-cli","owner":"Neverland","description":"fin-cli https://www.npmjs.com/package/fin-cli","archived":false,"fork":false,"pushed_at":"2018-01-02T07:45:46.000Z","size":188,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T13:42:35.288Z","etag":null,"topics":["cli","fin-cli"],"latest_commit_sha":null,"homepage":"","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/Neverland.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}},"created_at":"2016-09-29T12:31:43.000Z","updated_at":"2019-01-14T15:21:59.000Z","dependencies_parsed_at":"2022-08-26T09:31:20.371Z","dependency_job_id":null,"html_url":"https://github.com/Neverland/fin-cli","commit_stats":null,"previous_names":[],"tags_count":135,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neverland%2Ffin-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neverland%2Ffin-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neverland%2Ffin-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neverland%2Ffin-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neverland","download_url":"https://codeload.github.com/Neverland/fin-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248795378,"owners_count":21162760,"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":["cli","fin-cli"],"created_at":"2024-11-27T14:25:34.372Z","updated_at":"2026-03-09T14:07:03.940Z","avatar_url":"https://github.com/Neverland.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fin-cli\n\n[![npm](https://img.shields.io/npm/v/fin-cli.svg)](https://www.npmjs.com/package/fin-cli)\n[![Github All Releases](https://img.shields.io/npm/dm/fin-cli.svg)](https://www.npmjs.com/package/fin-cli)\n\n\u003ccenter\u003e\n\n![](./static/image/logo.jpg)\n\u003c/center\u003e\n\nfin-cli  曼哈顿cli\n\n## START\n```javascript\n    npm install fin-cli -g\n\n```\n\n## USAGE\n\n### fin init\n    $ fin init|i\n#### option\n\n - uri|u git.github.com  [固定值，内部地址不能外传至github, 你懂得]\n - path|p /git/${path}  [可选，你的项目所在git的地址，如果有此值会直接把代码push到对应仓库]\n - type|t 类型 default: NORMAL\n    1. type: NORMAL                     // 创建需要其他后端语言配合的项目\n    2. type: NODE                       // 创建基于javascript， NODEjs的全栈项目\n\n```javascript\n    $ fin i -u git.github.com -p  /git/${path}\n    $ fin i -u git.github.com -p  /git/${path} -t NODE\n    $ fin i -u git.github.com -p  /git/${path} -t NORMAL\n    $ fin i -u git.github.com -p \n    $ fin i -u git.github.com -t NODE\n```\n\n### fin create\n    $ fin create|c\n#### option\n\n - type|t 类型\n    1. type: component\n    2. type: page\n    3. type: batch\n    4. type: index\n - extra|x 附加page类型page|webpage(default: page)\n \n```javascript\n    $ fin create -t component             // 创建普通component\n    $ fin create -t widget                // 创建fis widget\n    $ fin create -t page                  // 创建page\n    $ fin create -t webpage               // 创建fis page\n    $ fin create -t batch                 // 批量创建page\n    $ fin create -t batch -x webpage      // 批量创建fis page\n    $ fin create -t index                 // 创建项目的聚合页\n```\n\n\u003e注意：项目变更时必须更新pName,pId才能在创建page时创建对应的mock文件\n\n##### batch create\n\n1. 对应`模块`下必须有，`index.yml` 文件${module}/index.yml\n2. yml样例如下\n```\npreApply:           // ${category} required\n  - name: index     // ${pageName} required\n    title: '首页'   // ${title}\n  - name: home\n    title: '主页'\napply:\n  - name: index     // ${pageName} required\n    title: '首页'   // ${title}\n  - name: home\n    title: '主页'\n```\n\n### fin config\n    $ fin config|C\n#### option\n\n - email|e email前缀\n - author|a author\n - pName|N fin init时录入的名称\n - pId|I 项目唯一识别\n\n\n```javascript\n    $ fin config -e abc\n    $ fin config -N abc-xyz\n    $ fin config -I abc\n    $ fin config -a abc\n    $ fin config -e abc -a abc\n```\n\n### fin documentation\n    $ fin documentation|d\n#### option\n\n - sever|s 打印启动server命令\n - gitbook|g 生成gitbook文档\n \n```javascript\n    $ fin d -g\n    $ fin d -s\n```\n\n### fin live\n    $ fin live|l\n#### option\n\n - url|u 需要代理的url default: http://localhost\n - port|p 需要监听的端口 default: 8080\n - dir|d 指定需要监听的文件夹\n \n```javascript\n    $ fin l\n    $ fin l -u http://111.111.111 -p 8000\n```\n\n### fin format\n    $ fin format|f\n#### option\n\n - type|t 类型\n    1. type: vue(default: vue)\n - path|p 路径 (default: process.cwd())\n \n```javascript\n    $ fin f                   // 格式化`当前目录中`的`vue`文件\n    $ fin f -p .              // 格式化`指定路径中`的`vue`文件\n    $ fin f -p . -t vue       // 格式化`指定路径中`的`vue`文件\n```\n\n\n### fin remove\n    $ fin remove|r\n#### option\n\n - type|t 类型\n    1. type: page\n \n```javascript\n    $ fin r -t page // page, mock, router\n```\n\n## CHANGELOG\n\n|version|type|description|date|\n|---|---|---|---|\n|1.8.0|feature|fin init --type NODE 支持创建node项目|2017/11/6|\n|1.7.0|feature|fin format --type vue|2017/5/20|\n|1.6.0|feature|fin remove --type page(可以删除page及page对应的mock，server.conf中的router)|2017/4/26|\n|1.5.0|feature|可以创建fis widget，fis page|2017/4/17|\n|1.4.0|feature|创建，安装流程中添加loading|2017/4/17|\n|1.3.0|feature|使用fin create -t index 可以根据yml创建page index|2017/4/14|\n|1.2.0|feature|使用fin create -t batch 可以根据yml批量创建page|2017/4/7|\n|1.1.0|feature|使用fin create -t page创建page时会创建好mockup|2017/4/5|\n|1.0.1|bugfixed|live 可以监听指定目录|2017/4/5|\n|1.0.0|feature|可以同步各浏览器状态并监听文件变化|2017/4/1|\n|1.0.0|feature|自动调起gitbook服务|2017/4/1|\n|0.7.8|feature|自动创建production和develop两个编译配置文件|2017/3/28|\n|0.7.4|feature|浏览器中打开创建的page URL|2017/3/22|\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverland%2Ffin-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneverland%2Ffin-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverland%2Ffin-cli/lists"}