1.2.0 • Published 8 days ago

@dolphjs/cli v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

dolphjs cli

The dolphjs-cli is a tool used for efficient initialization and management of a dolphjs project.

Commands

new: the alias for this command is n. This command is used to initialize / start a new project. It takes the name of the project as an option

dolph-cli new <project-name>

or use ' . ' in place of <project-name> to initialize the project in current directory.

After this, you'll be prompted with few questions which would be used to configure your dolphjs project. Navigate to the project folder and run

yarn

to install all packages .

generate: the alias for this command is g and is used to generate files and folders with setup code for :

  • controllers
  • services
  • models
  • routes

It is recommended to make use of the generate command when one wants to create these files because it generates code the dolphjs way. In a scenario when you want to create files for all of the above, let's say you want to write code for user logic and functionalities, use the -a flag, as in:

dolph-cli g -a user

the command above creates a service, controller, model and routes file for user and set's you up for writing business logic. Alternatively, you might want to create one of the files (controllers, models, services, routes) so you make use of their independent flags:

  • controller:

    dolph-cli g -c <name>
  • service:

    dolph-cli g -s <name>
  • model:

    dolph-cli g -m <name>
  • route:

    dolph-cli g -r <name>

Credit

dolphjs-cli is inspired by methane-cli https://github.com/adedoyin-Emmanuel/methane-cli

1.2.0

8 days ago

1.1.23

8 days ago

1.1.22

3 months ago

1.1.21

3 months ago

1.1.20

3 months ago

1.1.16

3 months ago

1.1.19

3 months ago

1.1.18

3 months ago

1.1.17

3 months ago

1.1.12

3 months ago

1.1.11

3 months ago

1.1.10

3 months ago

1.1.15

3 months ago

1.1.14

3 months ago

1.1.13

3 months ago

1.1.9

3 months ago

1.1.8

4 months ago

1.1.1

4 months ago

1.1.7

4 months ago

1.1.6

4 months ago

1.1.5

4 months ago

1.1.4

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.0

4 months ago

1.0.19

4 months ago

1.0.18

4 months ago

1.0.17

4 months ago

1.0.16

4 months ago

1.0.22

4 months ago

1.0.21

4 months ago

1.0.20

4 months ago

1.0.26

4 months ago

1.0.25

4 months ago

1.0.24

4 months ago

1.0.23

4 months ago

1.0.15

4 months ago

1.0.14

4 months ago

1.0.13

4 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.12

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

1.0.3

5 months ago

0.1.1

12 months ago

0.1.0

12 months ago

0.0.2-beta

12 months ago

0.0.1-beta

12 months ago