@achtjs/cli
v0.2.0
Published
achtJS CLI is an interface to help you to setup on an easy way a AchtJS Sample.
Downloads
23
Readme
@achtjs/cli
The AchtJS CLI is a command line interface for AchtJS. Its primary purpose is to assist developers with building AchtJS projects. AchtJS CLI allows you to generate and serving AchtJS project as well as generate AchtJS files (e.g. controllers, services and models).
Table of Contents
Installation
In order to start using AchtJS CLI you need to install it globally.
npm install -g @achtjs/cli
NEW
new | n
Create a new AchtJS project. This will generate all the basic files and install all the necessary dependencies for your AchtJS Project.
Usage
acht new my-new-app
or acht n my-new-app
GENERATE
generate | g
This will help you generate components inside your AchtJS project. You can generate controllers, sevices and models using this command.
Usage
ROUTES
acht generate route sample
or acht g r sample
CONTROLLER
acht generate controller sample
or acht g c sample
SERVICE
acht generate service sample
or acht g s sample
MODEL
acht generate model sample
or acht g m sample
SERVE
serve | s [options]
This will run your AchtJS project which listens on port 3333
by default. In case where port 3333
is already in use or you want to run it on a different port number, use --port
to specify a different port.
Usage
DEFAULT
acht serve
or acht s
CHANGE PORT
acht serve --port 4444
or acht s -p 4444
BUILD
build | b
This will build your AchtJS project to javascript that you can deploy to your prefered cloud hosting. The output files will be inside the dist
folder.
Usage
DEFAULT
acht build
or acht b