0.2.1 • Published 9 months ago

@nexus-ioc/cli v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Nexus IoC CLI

@nexus-ioc/cli is a command-line interface (CLI) tool for working with the Nexus IoC library. It helps developers create services, modules, and other components, simplifying the development and setup process.

Installation

Global Installation

You can install the CLI globally using npm:

npm install -g @nexus-ioc/cli

Using with npx

You can also use the CLI without global installation using npx:

npx @nexus-ioc/cli <command> [options]

Commands

generate (or g)

Generates a new component, such as a service or module.

Syntax

nexus-cli generate <type> <name> [path]

or the shorthand form:

nexus-cli g <type> <name> [path]
  • <type>: The type of component to generate (e.g., service, module).
  • <name>: The name of the new component.
  • [path]: (Optional) The path where the new component will be created.

Examples

Creating a new auth service in the ./apps/auth folder:

nexus-cli generate service auth ./apps/auth

or

nexus-cli g service auth ./apps/auth

Creating a new user module in the current directory:

nexus-cli generate module user

install (or i)

Installs the Nexus IoC package.

Syntax

nexus-cli install

or the shorthand form:

nexus-cli i

Installs @nexus-ioc/core in your project.

Example

nexus-cli install

Options

  • --help: Shows help for using the command.
  • --version: Shows the CLI version.

Usage Examples

  1. Check the CLI version:

    nexus-cli --version
  2. Get help for the generate command:

    nexus-cli generate --help
  3. Generate a new service:

    nexus-cli g service auth ./apps/auth

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Isqanderm (Aleksandr Melnik) - LinkedIn

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Acknowledgements

Special thanks to the developers of Angular and NestJS for the inspiration.

Wiki

For more detailed documentation, please visit the Wiki.

0.2.1

9 months ago

0.2.0

9 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago