Skip to content

Instantly share code, notes, and snippets.

@async3619
Created May 21, 2017 05:12
Show Gist options
  • Save async3619/92ee05390ea057fd4716c576bb9a029e to your computer and use it in GitHub Desktop.
Save async3619/92ee05390ea057fd4716c576bb9a029e to your computer and use it in GitHub Desktop.
cli
.version("0.0.1")
.command("publish", "publish the module binary file to the server")
.command("install", "download the prebuilt module binary file from the server")
.option("-a, --arch <ARCHITECTURE>", "specify target architecture of module binary file")
.option("-p, --platform <PLATFORM>", "specify target platform of moudle binary file")
.option("-v, --version <VERSION>", "sepcify version of module binary file, default to package-specific version")
.option("-e, --environment <OPTIONAL>", "specify target environment of moudle binary file, default to 'node'")
.parse(process.argv);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment