@seliseblocks/cli
v0.0.33
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.
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/cliAfter 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 <platform name> <project name>platfomr name only web or mobile
Example
To create a new web project named my-app
blocks new web my-appor
To create a new mobile project named my-app
blocks new mobile my-appRun the application
cd my-appUse one line command for web
new (n) web <project name> [--blocks-key] [--app-domain] Examples:
new web myproject --blocks-key abc123 --app-domain example.com new web myproject -k abc123 -d example.com
Web
Then run the project using your application domain (recommended), add an entry for your app domain to your hosts file. Then, use:
npm run start:hostotherwise
npm startMobile
Then run the project using emulator/simulator respectively for android/iso or using real device. Then, use:
for stage environment
flutter runfor production environment
flutter run --dart-define="ENV=prod"if you face any issue while running app, make sure the environment setup is correct
2. Display Version
Displays the current version of the CLI tool.
blocks versionAvailable Commands
| Command | Alias | Description |
|------------------|-------|-----------------------------------------------------------------|
| new web | n web | Initializes a new web project using the provided starter template. |
| new mobile | n mobile | Initializes a new mobile project using the provided starter template. |
| version | v | Displays the current version of the CLI tool. |
