@seliseblocks/cli
v0.0.7
Published
`@seliseblocks/cli` is a powerful command-line tool for quickly setting up projects and generating resources. With just a few commands, you can create, build, and manage your project efficiently.
Downloads
528
Maintainers
Keywords
Readme
@seliseblocks/cli
@seliseblocks/cli
is a powerful command-line tool for quickly setting up projects and generating resources. With just a few commands, you can create, build, and manage your project efficiently.
Installation
To use @seliseblocks/cli
, install it globally via npm:
npm install -g @seliseblocks/cli
After installation, use the blocks or command in your terminal.
Usage
Once installed, you can use seliseblocks commands from the command line.
1. Create a New Project
The new command initializes a project with a starter template.
Syntax
blocks new <project name>
Example
To create a new project named my-app
blocks new my-app
Run the application
cd my-app
npm i
npm run build
npm run start
2. Generate Resources
Generates pages and services based on the provided configuration file
blocks build
3. Display Version
Displays the current version of the CLI tool.
blocks version
Available Commands
| Command | Alias | Description |
|------------------|-------|-----------------------------------------------------------------|
| new
| n
| Initializes a new project using the provided starter template. |
| build
| b
| Generates pages and services based on the configuration file. |
| version
| v
| Displays the current version of the CLI tool. |