{"id":13607473,"url":"https://github.com/vikadata/widget-cli","last_synced_at":"2025-04-12T11:32:41.950Z","repository":{"id":65832666,"uuid":"507820719","full_name":"vikadata/widget-cli","owner":"vikadata","description":"Command line tool help you to build awesome vika widget","archived":false,"fork":false,"pushed_at":"2023-03-24T07:38:19.000Z","size":1034,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-13T04:47:26.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vika.cn/developers/","language":"TypeScript","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/vikadata.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-06-27T08:14:48.000Z","updated_at":"2023-02-09T14:14:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce818a3f-b5a0-4616-8417-1c2854cf29ab","html_url":"https://github.com/vikadata/widget-cli","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikadata%2Fwidget-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikadata%2Fwidget-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikadata%2Fwidget-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikadata%2Fwidget-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikadata","download_url":"https://codeload.github.com/vikadata/widget-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248560269,"owners_count":21124623,"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-08-01T19:01:18.952Z","updated_at":"2025-04-12T11:32:38.966Z","avatar_url":"https://github.com/vikadata.png","language":"TypeScript","readme":"@vikadata/widget-cli\n====================\n\nhelp you build awesome vika widget\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@vikadata/widget-cli.svg)](https://npmjs.org/package/@vikadata/widget-cli)\n[![Downloads/week](https://img.shields.io/npm/dw/@vikadata/widget-cli.svg)](https://npmjs.org/package/@vikadata/widget-cli)\n[![License](https://img.shields.io/npm/l/@vikadata/widget-cli.svg)](https://github.com/vikadata/widget-cli/blob/master/package.json)\n\n* [Docs](https://vika.cn/developers/widget/introduction)\u003c!-- toc --\u003e\n* [Usage](#usage)\n* [Commands](#commands)\n\u003c!-- tocstop --\u003e\n# Usage\n\u003c!-- usage --\u003e\n```sh-session\n$ npm install -g @vikadata/widget-cli\n$ widget-cli COMMAND\nrunning command...\n$ widget-cli (-v|--version|version)\n@vikadata/widget-cli/0.0.18 darwin-x64 node-v16.15.0\n$ widget-cli --help [COMMAND]\nUSAGE\n  $ widget-cli COMMAND\n...\n```\n\u003c!-- usagestop --\u003e\n# Commands\n\u003c!-- commands --\u003e\n* [`widget-cli auth [TOKEN]`](#widget-cli-auth-token)\n* [`widget-cli help [COMMAND]`](#widget-cli-help-command)\n* [`widget-cli init`](#widget-cli-init)\n* [`widget-cli list-release [PACKAGEID]`](#widget-cli-list-release-packageid)\n* [`widget-cli release`](#widget-cli-release)\n* [`widget-cli rollback [PACKAGEID] [VERSION]`](#widget-cli-rollback-packageid-version)\n* [`widget-cli start`](#widget-cli-start)\n* [`widget-cli submit`](#widget-cli-submit)\n* [`widget-cli unpublish [PACKAGEID]`](#widget-cli-unpublish-packageid)\n\n## `widget-cli auth [TOKEN]`\n\nLogin authentication, and cache the API Token\n\n```\nUSAGE\n  $ widget-cli auth [TOKEN]\n\nARGUMENTS\n  TOKEN  Your API Token\n\nOPTIONS\n  -h, --host=host  Specifies the host of the server, such as https://vika.cn\n\nEXAMPLE\n  $ widget-cli auth [apiToken] --host [host]\n  Succeed!\n```\n\n_See code: [lib/commands/auth.js](https://github.com/vikadata/widget-cli/blob/v0.0.18/lib/commands/auth.js)_\n\n## `widget-cli help [COMMAND]`\n\ndisplay help for widget-cli\n\n```\nUSAGE\n  $ widget-cli help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.3.1/src/commands/help.ts)_\n\n## `widget-cli init`\n\nCreate a widget project and register it in your space\n\n```\nUSAGE\n  $ widget-cli init\n\nOPTIONS\n  -c, --name=name            Name your widget and project\n  -h, --host=host            Specifies the host of the server, such as https://vika.cn\n  -p, --packageId=packageId  The widget package id\n  -s, --spaceId=spaceId      In which space to put the widget on\n  -t, --token=token          Your API Token\n  -u, --template=template    The template code zip from vika or github\n\nEXAMPLE\n  $ widget-cli init\n  your widget: my-widget is successfully created, cd my-widget/ check it out!\n```\n\n_See code: [lib/commands/init.js](https://github.com/vikadata/widget-cli/blob/v0.0.18/lib/commands/init.js)_\n\n## `widget-cli list-release [PACKAGEID]`\n\nList all version information for your widget package release\n\n```\nUSAGE\n  $ widget-cli list-release [PACKAGEID]\n\nARGUMENTS\n  PACKAGEID  The widget package you want to unpublish\n\nOPTIONS\n  -g, --global       Specify global widget package\n  -h, --host=host    Specifies the host of the server, such as https://vika.cn\n  -t, --token=token  Your API Token\n\nEXAMPLE\n  $ widget-cli list-release [packageId]\n  Succeed!\n```\n\n_See code: [lib/commands/list-release.js](https://github.com/vikadata/widget-cli/blob/v0.0.18/lib/commands/list-release.js)_\n\n## `widget-cli release`\n\nRelease your widget package\n\n```\nUSAGE\n  $ widget-cli release\n\nOPTIONS\n  -h, --host=host        Specifies the host of the server, such as https://vika.cn\n  -t, --token=token      Your API Token\n  -v, --version=version  Specifies the version of the project\n  --ci                   Run in CI mode, no version prompt\n\nEXAMPLE\n  $ widget-cli release\n  Succeed!\n```\n\n_See code: [lib/commands/release.js](https://github.com/vikadata/widget-cli/blob/v0.0.18/lib/commands/release.js)_\n\n## `widget-cli rollback [PACKAGEID] [VERSION]`\n\nRollback the widget package to the specified version\n\n```\nUSAGE\n  $ widget-cli rollback [PACKAGEID] [VERSION]\n\nARGUMENTS\n  PACKAGEID  The widget package you want to rollback\n  VERSION    The version of the widget package you want to rollback\n\nOPTIONS\n  -g, --global       Specify global widget package\n  -h, --host=host    Specifies the host of the server, such as https://vika.cn\n  -t, --token=token  Your API Token\n\nEXAMPLE\n  $ widget-cli rollback [packageId] [version] --host [host] --token [token]\n  Succeed!\n```\n\n_See code: [lib/commands/rollback.js](https://github.com/vikadata/widget-cli/blob/v0.0.18/lib/commands/rollback.js)_\n\n## `widget-cli start`\n\nStart current widget project in develop mode\n\n```\nUSAGE\n  $ widget-cli start\n\nOPTIONS\n  -o, --protocol=protocol  [default: https] Specifies the protocol of the local server\n  -p, --port=port          [default: 9000] Specifies the port of the local server\n  --debug                  Show debug information for cli it self\n\nEXAMPLE\n  $ widget-cli start\n  Compiling...\n```\n\n_See code: [lib/commands/start.js](https://github.com/vikadata/widget-cli/blob/v0.0.18/lib/commands/start.js)_\n\n## `widget-cli submit`\n\nSubmit your widget package\n\n```\nUSAGE\n  $ widget-cli submit\n\nOPTIONS\n  -h, --host=host        Specifies the host of the server, such as https://vika.cn\n  -t, --token=token      Your API Token\n  -v, --version=version  Specifies the version of the project\n  --ci                   Run in CI mode, no prompt\n\nEXAMPLE\n  $ widget-cli submit\n  Succeed!\n```\n\n_See code: [lib/commands/submit.js](https://github.com/vikadata/widget-cli/blob/v0.0.18/lib/commands/submit.js)_\n\n## `widget-cli unpublish [PACKAGEID]`\n\nUnpublish your widget package\n\n```\nUSAGE\n  $ widget-cli unpublish [PACKAGEID]\n\nARGUMENTS\n  PACKAGEID  The widget package you want to unpublish\n\nOPTIONS\n  -g, --global       Specify global widget package\n  -h, --host=host    Specifies the host of the server, such as https://vika.cn\n  -t, --token=token  Your API Token\n  --noConfirm        Do not show confirm\n\nEXAMPLE\n  $ widget-cli unpublish\n  Succeed!\n```\n\n_See code: [lib/commands/unpublish.js](https://github.com/vikadata/widget-cli/blob/v0.0.18/lib/commands/unpublish.js)_\n\u003c!-- commandsstop --\u003e\n","funding_links":[],"categories":["🎯开源维格小程序"],"sub_categories":["小程序命令行开发工具 (widget-cli)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikadata%2Fwidget-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikadata%2Fwidget-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikadata%2Fwidget-cli/lists"}