Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/themost-framework/cli

CLI Tool for MOST Web Framework
https://github.com/themost-framework/cli

Last synced: about 7 hours ago
JSON representation

CLI Tool for MOST Web Framework

Awesome Lists containing this project

README

        

## @themost/cli

![MOST Web Framework Logo](https://github.com/themost-framework/common/raw/master/docs/img/themost_framework_v3_128.png)

A command line utility for [Most Web Framework](https://github.com/themost-framework/) applications.

### Generate a new MOST Web Framework application

themost new project [--template ] [--typescript]

Note: Use --typescript flag if you want to generate a typescript project.

This operation will create a new MOST Web Framework application. Execute:

cd && npm i

to install dependencies.

### Import data

themost import --model [--dev]

### Query data

Applies the specified OData query options against the defined data model and prints the result

themost cat --model [--dev]
[--filter=]
[--select=]
[--top=]
[--skip=]
[--count=]
[--order=]
[--group=]
[--expand=]

### User modeler

Use modeler commands to manage data models:

themost modeler

### List data models

themost modeler ls

Enumerates all the available data models

### Get data model details

themost modeler info

Prints information about the given data model e.g.

themost modeler info UpdateAction

### Extract a data model

themost modeler extract

e.g.

themost modeler extract Article

Extract a data model definition and its dependencies. There is a large set of data model definitions
as they are defined and documented at [schema.org](https://schema.org)

### Create an new controller

themost generate controller

This operation will generate a new controller and it will place it in controllers folder (server/controllers).
### Create an new model

themost generate model

This operation will generate a new model and it will place it in models definition folder (server/config/models).

### Create an new model class

themost generate class

This operation will generate a new model class and it will place it in models folder (server/models).

### Create an new model listener

themost generate listener

This operation will generate a new model listener and it will place it in listeners folder (server/listeners).

### Create an new application service

themost generate service

This operation will generate a new application service and it will place it in services folder (server/services).