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

https://github.com/thisissandipp/xarvis-cli

A Command-Line Interface for generating production ready starter template.
https://github.com/thisissandipp/xarvis-cli

cli cli-app expressjs generate-code generate-project javascript project-generator starter-template typescript

Last synced: 7 months ago
JSON representation

A Command-Line Interface for generating production ready starter template.

Awesome Lists containing this project

README

          

# Xarvis CLI

![Xarvis CLI](https://github.com/thecodexhub/xarvis-cli/actions/workflows/ci.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](https://opensource.org/licenses/MIT)
[![NPM Version](https://img.shields.io/npm/v/xarvis-cli.svg?style=flat)](https://www.npmjs.com/package/xarvis-cli)

A Command-Line Interface for generating a production-ready starter template.

xarvis cli

## Supported Templates

- [xarvis-express-js](https://github.com/thecodexhub/xarvis-express-js) - A Xarvis Express app with JavaScript: (See [features](https://github.com/thecodexhub/xarvis-express-js#features) list)
- [xarvis-express-ts](https://github.com/thecodexhub/xarvis-express-ts) - A Xarvis Express app with TypeScript: (See [features](https://github.com/thecodexhub/xarvis-express-ts#features) list)

## Installation

The below command will make the xarvis command available globally, allowing you to use it from anywhere in your terminal.

```
$ npm install -g xarvis-cli
```

## Commands

### `xarvis -h` or `xarvis --help`

**Display the usage information.**

```shell
Usage: xarvis [arguments]

🚀 A Command-Line Interface for generating production ready starter template.

Options:
-v, --version Display the current version.
-h, --help Display the usage information.

Commands:
create Creates a new xarvis project in the specified directory.
help [command] Display the usage information.
```

### `xarvis create express-app`

**Creates a new Xarvis Express project in the specified directory.**

```shell
Usage: xarvis create express-app [arguments]

Creates a new Xarvis Express project in the specified directory.

Options:
-o, --output-directory The optional desired output directory when creating a new project.
-t, --template The template for this project. (choices: "javascript", "typescript")
--description The description for this new project. (default: "An Express starter project
created by Xarvis CLI.")
--skip-git Whether or not to skip initializing git (default: false)
-h, --help Display the usage information.
```

_Note: The `--template` and `--description` are required. If not provided by the CLI options, questions will be prompted, as shown in the below example._

```shell
$ xarvis create express-app my-app
? Enter the project description: An Express starter project created by Xarvis CLI.
? Choose a project template to use: (Use arrow keys)
> javascript
typescript
```

### Use `-h` or `--help` for any usage information

```shell
# Displays usage information for Xarvis CLI
$ xarvis -h

# Displays usage information for `xarvis create` command
$ xarvis create -h

# Displays usage information for `xarvis create express-app` command
$ xarvis create express-app -h
```

## License

The project is released under the [MIT License](LICENSE). Learn more about it, [here](https://opensource.org/license/mit/).

## Xarvis Feature Request

We welcome any ideas or recommendations about how to make the tool better. Unless there is an overwhelming demand for a feature, it might not get implemented.

Before posting, be kind to your surroundings and the authors who take joy in developing new features and writing documentation to help you.

### Create a Feature Request (Issue)

Create an issue including as much information as possible to your proposal. To create an issue -

- Go to the [issues](https://github.com/thecodexhub/xarvis-cli/issues) tab from the project repository.
- Then click on [new issue](https://github.com/thecodexhub/xarvis-cli/issues/new/choose).
- You'll have to choose type of the issue. In this case, click on **Get Started** button for the Feature Request type.
- Fill up the details and **Submit new issue**.

---



thecodexhub


Developed and Maintained with 💜 by thecodexhub




Star this repository