@ionic/cli-framework
The foundation framework of the Ionic CLI
Last updated 14 days ago by dwieeb .
MIT · Original npm · Tarball · package.json
$ cnpm install @ionic/cli-framework 
SYNC missed versions from official npm registry.

CLI Framework, by Ionic

The foundation framework of the Ionic CLI.

Getting Started

index.js:

const { Command, CommandMap, Namespace, execute } = require('@ionic/cli-framework');

class VersionCommand extends Command {
  async getMetadata() {
    return {
      name: 'version',
      summary: 'Print CLI version',
    };
  }

  async run() {
    console.log('1.0.0');
  }
}

class RootNamespace extends Namespace {
  async getMetadata() {
    return {
      name: 'mynewcli',
      summary: 'A cool CLI that prints its own version',
    };
  }

  async getCommands() {
    return new CommandMap([['version', async () => new VersionCommand(this)]]);
  }
}

module.exports = async function(argv, env) {
  await execute({ namespace: new RootNamespace(), argv, env });
}

bin/mynewcli:

#!/usr/bin/env node

const run = require('../');
run(process.argv.slice(2), process.env);

command line:

$ ./bin/mynewcli
$ ./bin/mynewcli version
$ ./bin/mynewcli version --help

Current Tags

  • 2.0.0-beta.3                                ...           beta (a year ago)
  • 1.0.0-alpha.0405736c                                ...           canary (2 years ago)
  • 4.1.5                                ...           latest (14 days ago)
  • 1.0.0-rc.13                                ...           rc (2 years ago)
  • 2.1.1-testing.0                                ...           testing (a year ago)

181 Versions

  • 4.1.5                                ...           14 days ago
  • 4.1.4                                ...           20 days ago
  • 4.1.3                                ...           a month ago
  • 4.1.2                                ...           2 months ago
  • 4.1.1                                ...           3 months ago
  • 4.1.0                                ...           3 months ago
  • 4.0.2                                ...           4 months ago
  • 4.0.1                                ...           4 months ago
  • 4.0.0                                ...           4 months ago
  • 3.0.6                                ...           4 months ago
  • 3.0.5                                ...           6 months ago
  • 3.0.4                                ...           6 months ago
  • 3.0.3                                ...           6 months ago
  • 3.0.2                                ...           6 months ago
  • 3.0.1                                ...           6 months ago
  • 3.0.0                                ...           7 months ago
  • 2.1.8                                ...           7 months ago
  • 2.1.7                                ...           8 months ago
  • 2.1.6                                ...           9 months ago
  • 2.1.5                                ...           9 months ago
  • 2.1.4                                ...           9 months ago
  • 2.1.3                                ...           10 months ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.1-testing.0                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 2.0.0-beta.3                                ...           a year ago
  • 2.0.0-beta.2                                ...           a year ago
  • 2.0.0-beta.1                                ...           a year ago
  • 2.0.0-beta.0                                ...           a year ago
  • 1.7.0                                ...           a year ago
  • 1.6.3                                ...           a year ago
  • 1.6.2                                ...           a year ago
  • 1.6.1                                ...           a year ago
  • 1.6.0                                ...           a year ago
  • 1.5.3                                ...           a year ago
  • 1.5.2                                ...           a year ago
  • 1.5.1                                ...           a year ago
  • 1.5.0                                ...           a year ago
  • 1.4.0                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.3.0-testing.73b2b888                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.1.0-testing.e70f2d6e                                ...           2 years ago
  • 1.1.0-testing.abd665ba                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.1.0-testing.6a88cfe2                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.1.0-testing.fabaebf2                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.1.0-testing.b8379be8                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.1.0-testing.458303e0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-rc.13                                ...           2 years ago
  • 1.0.0-rc.12                                ...           2 years ago
  • 1.0.0-rc.11                                ...           2 years ago
  • 1.0.0-rc.10                                ...           2 years ago
  • 1.0.0-rc.9                                ...           2 years ago
  • 1.0.0-rc.8                                ...           2 years ago
  • 1.0.0-rc.7                                ...           2 years ago
  • 1.0.0-rc.6                                ...           2 years ago
  • 1.0.0-rc.5                                ...           2 years ago
  • 1.0.0-rc.4                                ...           2 years ago
  • 1.0.0-rc.3                                ...           2 years ago
  • 1.0.0-testing.fa20842b                                ...           2 years ago
  • 1.0.0-rc.2                                ...           2 years ago
  • 1.0.0-testing.70319022                                ...           2 years ago
  • 1.0.0-rc.1                                ...           2 years ago
  • 1.0.0-rc.0                                ...           2 years ago
  • 1.0.0-alpha.0405736c                                ...           2 years ago
  • 1.0.0-alpha.94b47721                                ...           2 years ago
  • 1.0.0-alpha.527fff48                                ...           2 years ago
  • 1.0.0-alpha.6587fe93                                ...           2 years ago
  • 1.0.0-alpha.dbc03410                                ...           2 years ago
  • 1.0.0-alpha.4e86d307                                ...           2 years ago
  • 1.0.0-alpha.9c5d4505                                ...           2 years ago
  • 1.0.0-alpha.d62c12b3                                ...           2 years ago
  • 1.0.0-alpha.ee36d421                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 1.0.0-alpha.2261e005                                ...           2 years ago
  • 1.0.0-alpha.e0a71a83                                ...           2 years ago
  • 1.0.0-alpha.aea8efc7                                ...           2 years ago
  • 1.0.0-alpha.9822d979                                ...           2 years ago
  • 1.0.0-alpha.ad70724a                                ...           2 years ago
  • 1.0.0-alpha.72cfdebc                                ...           2 years ago
  • 1.0.0-alpha.3c83e928                                ...           2 years ago
  • 1.0.0-alpha.57d76bed                                ...           2 years ago
  • 1.0.0-alpha.4fcf7385                                ...           2 years ago
  • 1.0.0-alpha.4b619815                                ...           2 years ago
  • 1.0.0-alpha.6d86de07                                ...           2 years ago
  • 1.0.0-alpha.f4cb9dda                                ...           2 years ago
  • 1.0.0-alpha.f69a036f                                ...           2 years ago
  • 1.0.0-alpha.4cc5ed8c                                ...           2 years ago
  • 1.0.0-alpha.ed14f584                                ...           2 years ago
  • 1.0.0-alpha.422828aa                                ...           2 years ago
  • 1.0.0-alpha.38d0c2fd                                ...           2 years ago
  • 1.0.0-alpha.40df8709                                ...           2 years ago
  • 1.0.0-alpha.a949e65a                                ...           2 years ago
  • 1.0.0-alpha.a4551f68                                ...           2 years ago
  • 1.0.0-alpha.67630efa                                ...           2 years ago
  • 1.0.0-alpha.111fd923                                ...           2 years ago
  • 1.0.0-alpha.1491ecb9                                ...           2 years ago
  • 1.0.0-alpha.c39ac6fb                                ...           2 years ago
  • 1.0.0-alpha.6d38ea17                                ...           2 years ago
  • 1.0.0-alpha.943ba673                                ...           2 years ago
  • 1.0.0-alpha.43299dbc                                ...           2 years ago
  • 1.0.0-alpha.1ac018aa                                ...           2 years ago
  • 1.0.0-alpha.7966e92d                                ...           2 years ago
  • 1.0.0-alpha.c4ec8f54                                ...           2 years ago
  • 1.0.0-alpha.03a89e22                                ...           2 years ago
  • 1.0.0-alpha.d976e58a                                ...           2 years ago
  • 1.0.0-alpha.8fb915d2                                ...           2 years ago
  • 1.0.0-alpha.909edea3                                ...           2 years ago
  • 1.0.0-alpha.140af35e                                ...           2 years ago
  • 1.0.0-alpha.f22667f0                                ...           2 years ago
  • 1.0.0-alpha.273c8f1c                                ...           2 years ago
  • 1.0.0-alpha.01faed80                                ...           2 years ago
  • 1.0.0-alpha.198aad73                                ...           2 years ago
  • 1.0.0-alpha.0303b03e                                ...           2 years ago
  • 1.0.0-alpha.a833c103                                ...           2 years ago
  • 1.0.0-alpha.6216a462                                ...           2 years ago
  • 1.0.0-alpha.5c20c074                                ...           2 years ago
  • 1.0.0-alpha.356eb156                                ...           2 years ago
  • 1.0.0-alpha.85e35897                                ...           2 years ago
  • 1.0.0-alpha.e98c583a                                ...           2 years ago
  • 0.1.3-alpha.f2bf06e0                                ...           2 years ago
  • 0.2.0-alpha.4c304367                                ...           2 years ago
  • 0.2.0-alpha.a1e647d2                                ...           2 years ago
  • 0.2.0-alpha.49b0a095                                ...           2 years ago
  • 0.2.0-alpha.22a71119                                ...           2 years ago
  • 0.2.0-alpha.2c28c0e3                                ...           2 years ago
  • 0.2.0-alpha.86f8661b                                ...           2 years ago
  • 0.2.0-alpha.1ec3c1f9                                ...           2 years ago
  • 0.2.0-alpha.ddc42350                                ...           2 years ago
  • 0.2.0-alpha.a9b8aa1f                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.2.0-alpha.4349ad06                                ...           3 years ago
  • 0.2.0-alpha.fefc39d3                                ...           3 years ago
  • 0.2.0-alpha.195e089e                                ...           3 years ago
  • 0.2.0-alpha.aa47958f                                ...           3 years ago
  • 0.2.0-alpha.45488dd4                                ...           3 years ago
  • 0.2.0-alpha.b5ece737                                ...           3 years ago
  • 0.2.0-alpha.3433fdf6                                ...           3 years ago
  • 0.2.0-alpha.eaae01a2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.2.0-alpha.4ef93fac                                ...           3 years ago
  • 0.2.0-alpha.bb45db43                                ...           3 years ago
  • 0.2.0-alpha.f54e78b9                                ...           3 years ago
  • 0.2.0-alpha.553524db                                ...           3 years ago
  • 0.2.0-alpha.f2b052f7                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.1.0-alpha.6f9c6db0                                ...           3 years ago
  • 0.1.0-alpha.1c5a5271                                ...           3 years ago
  • 0.1.0-alpha.3137c766                                ...           3 years ago
  • 0.1.0-testing.65573967                                ...           3 years ago
  • 0.1.0-alpha.44c5992d                                ...           3 years ago
  • 0.1.0-alpha.06ba4dc8                                ...           3 years ago
  • 0.1.0-alpha.fb4e38e9                                ...           3 years ago
  • 0.1.0-alpha.aebe2ff4                                ...           3 years ago
  • 0.1.0-alpha.932c5465                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.1.0-alpha.25bbda55                                ...           3 years ago
  • 0.1.0-alpha.33f09d33                                ...           3 years ago
  • 0.1.0-alpha.066ff224                                ...           3 years ago
  • 0.1.0-alpha.b3faeab0                                ...           3 years ago
  • 0.1.0-alpha.da35a83a                                ...           3 years ago
  • 0.1.0-alpha.7975cd89                                ...           3 years ago
  • 0.1.0-alpha.1a89fa2a                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
  • 0.1.0-alpha.a3d1be6c                                ...           3 years ago
  • 0.1.0-alpha.5d730984                                ...           3 years ago

Copyright 2014 - 2017 © taobao.org |