@thing.js/cli
v1.2.17
Published
<div align="center"> <a href="https://www.thingjs.com/guide/"><img width="200" src="https://www.thingjs.com/static/images/avatar.png"/></a> </div>
Downloads
15
Keywords
Readme
@thing.js/cli
@thing.js/cli
is used to create thing.js project and resource templates quickly.
The CLI(@thing.js/cli
) is a globlly installed npm package and provides the thing
command in your terminal. It provides the ability to scaffold a new project via thing create
.You can also manage your projects using a GUI via thing ui
.
- command line: thing create
- GUI: thing ui
Presets
Thing CLI provides these three kinds of templates to create a new project:
- Project
- Simple (html template)
- Framework(Vue2.x, Vue3.x, React)
- Resource
- Plugin (plugin)
- Prefab (prefab)
- Common
- Dev Base
📦 Install
- Global installation of
@thing.js/cli
npm install @thing.js/cli -g
- You can verify that it is properly installed by running this command:
thing -h
And it will show a number of options which means the installation is successful.
📔 Getting Started
To create a new project based on thing.js, run thing create
in a terminal and you will be prompted to name the project. Then You can choose different type of templates to create correspond thing.js project.
$ thing create
? Please enter a project name: test-plugin
? Please pick a preset: Plugin
✔ Download Successful!
Successfully created project: test-plugin!!
Get started with the following commands:
cd test-plugin
npm i
npm run dev