@artus-cli/artus-cli
CLI framework with modern features
Last updated 2 years ago by wanghx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @artus-cli/artus-cli 
SYNC missed versions from official npm registry.

@artus-cli/artus-cli

artus-cli

NPM version NPM quality NPM download Continuous Integration Test coverage Oss Insight Analytics

artus-cli aims to provide a modern command-line-apps framework.

  • Powerful, powered by artusjs.
  • Modern, TypeScript and IoC ready.
  • Customizable, command inheritance, and support Plugin and Framework (wrap it as a upper layer CLI).
  • Community, enjoy the eco-friendliness, use the same plugin with your artusjs web apps.

How it looks

import { DefineCommand, Option, Command } from '@artus-cli/artus-cli';

@DefineCommand({
  command: 'dev',
  description: 'Run the development server',
  alias: [ 'd' ],
})
export class DevCommand extends Command {
  @Option({
    alias: 'p',
    default: 3000,
    description: 'server port',
  })
  port: number;

  async run() {
    console.info('port: %s', this.port);
  }
}

Run it with:

$ my-cli dev --port 8080

Document

https://artus-cli.github.io

Current Tags

  • 0.2.8-beta                                ...           beta (2 years ago)
  • 1.0.1                                ...           latest (7 months ago)

27 Versions

  • 1.0.1                                ...           7 months ago
  • 1.0.0                                ...           9 months ago
  • 0.2.10                                ...           2 years ago
  • 0.2.9                                ...           2 years ago
  • 0.2.8                                ...           2 years ago
  • 0.2.8-beta                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.2-beta.3                                ...           2 years ago
  • 0.0.2-beta.2                                ...           2 years ago
  • 0.0.2-beta.1                                ...           2 years ago
  • 0.0.2-beta.0                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (2)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (13)
Dev Dependencies (16)

© 2010 - cnpmjs.org x YWFE | Home | YWFE