Catalog npm
Back to packageRELEASE DETAILS

1.1.1

npm

91admin-cli

A simple CLI for creating your projects from own Git server

clies6scion
Published4 Dec 2018
Direct dependencies8
Transitive dependenciesNot calculated

README

Current package documentation

91admin

A light tool to generate projects in an easy way(Modify the scion-cli).

Installation

npm install 91admin-cli -g

Usage

Open your terminal and type 91admin or 91admin -h , you'll see the help infomation below:

  Usage: 91admin <command>


  Commands:

    add|a      Add a new template
    list|l     List all the templates
    init|i     Generate a new project
    delete|d   Delete a template

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

Note that if you are using MacOS, sudo was required while using commands add and delete.

Commands

add | a

This command would help you to add a new template to the templates.json, which will be used by 91admin to generate projects.

$ 91admin add

? Set the custom name of the template: vue-admin
?Git https/http link (OR Owner/name) of the template: http://***.git
? Branch of the template: (master)
┌────────────────────┬───────────────────────┬────────┐
│ Template Name      │ Owner/Name            │ Branch │
├────────────────────┼───────────────────────┼────────┤
│ vue-admin          │ https://***.git       │ master │
└────────────────────┴───────────────────────┴────────┘
✔ New template has been added successfully!
✔ New template has been added successfully!

91admin use download-git-repo to down load git repos. After answering 3 questions, you'll add a new template to 91admin.

list | l

It shows you the templates list.

$ 91admin list

┌────────────────────┬───────────────────────┬────────┐
│ Template Name      │ Owner/Name            │ Branch │
├────────────────────┼───────────────────────┼────────┤
│ vue-admin          │ https://***.git       │ master │
└────────────────────┴───────────────────────┴────────┘

init | i

After adding new templates, you could use this command to generate your own project by choosing template.

$ 91admin init

? Template name: my-first-template
? Project name: my-project
? Where to init the project? ../
⠹ Downloading template...

New project has been initialized successfully!

It's easy, right?

delete | d

To delete a template, you could use this command:

$ 91admin delete

? Which template you want to delete? my-second-template
┌───────────────────┬────────────────┬────────┐
│ Template Name     │ Owner/Name     │ Branch │
├───────────────────┼────────────────┼────────┤
│ my-first-template │ jrainlau/scion │ new    │
└───────────────────┴────────────────┴────────┘
✔ Template has been deleted successfully

Template

The most important part of 91admin is template. All templates' infomation were list in the templates.json. A template means a project sample, which has a simple or complex file structure.

You can create your own templates repository, and push your templates in different branches. All you need to do then is to add the templates into 91admin's templates.json.

License

MIT.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 8

Native requirements
8 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
^1.1.3runtime
cli-table
Environment
{
  "local_name": "cli-table",
  "alias": false,
  "peer_metadata": null
}
^0.3.1runtime
commander
Environment
{
  "local_name": "commander",
  "alias": false,
  "peer_metadata": null
}
^2.9.0runtime
download-git-repo
Environment
{
  "local_name": "download-git-repo",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
handlebars
Environment
{
  "local_name": "handlebars",
  "alias": false,
  "peer_metadata": null
}
^4.0.8runtime
inquirer
Environment
{
  "local_name": "inquirer",
  "alias": false,
  "peer_metadata": null
}
^3.0.6runtime
metalsmith
Environment
{
  "local_name": "metalsmith",
  "alias": false,
  "peer_metadata": null
}
^2.3.0runtime
ora
Environment
{
  "local_name": "ora",
  "alias": false,
  "peer_metadata": null
}
^1.2.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-6WEJQIodPwANFDb3rs2ivHZ/y5hiOkh/oexAguE5+m5ioZM3Kw4ObEZiXG2y6jiz8wCKtL1BPe4JGT4Cc7YaRw==",
  "shasum": "b7c3ce0b2a8d24f0d3f624cb31c3e696d381e270",
  "tarball": "https://registry.npmjs.org/91admin-cli/-/91admin-cli-1.1.1.tgz",
  "fileCount": 12,
  "unpackedSize": 72365,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBiilCRA9TVsSAnZWagAAfWcP/2OOGrUxSS+4D7DqLcVW\n3ExKRa5BprAXv9G3PKhPFvsMh0sbDjmcoGgW6sN1BKcPUek2qxF3DXLH04Mi\nOUjyZpykzlzikZwn7EeMKKaCd5N2cdarTXA8yBRBtO0tXZrbmSPtYZOGO4KX\nyTyjhSaoqDJa8Zy9dPKBXseX0/k5MeXyVInZNi7P0yCFHzJjxpcWWl71d/pZ\nL8UlGOWua1pRRENZQs3UulW7cv7uXcZRZfQrCSRxchjtkpgIvulFU4344SOb\n/KANrkz/3orrirks7I9sokjVhDxAUE3ynzQdWYBIAs1KSIQjKB+bMAM1yeTW\n9ZmJfHqlHzG85VeZHTTkG/gdgmm7g8tn+MN1wFhLEubXKxLijr0ac16mKEaI\nnCMaJRmzdqFh12XFRYJ4zFuUX2+/MRvkiiC98iBSwAKuoc5oQtE1cHoTQ6oA\nRcKDqw+NQT7Nsm+43J5i42iOKbr0RfbZz/fqOJZYEHvz/VT1ANR+ral96/+a\n/JqWomg+xcpRU0gN3I8oVUl+LfoEGO4TMEm+yEUHmh9THLWO9SECLpw+MP2O\nVx/OQUJMmfoaqgr20bzxUQcgMIAMIgmDVzUGsuteH8kLovouJsk3pmOPkRWr\neIGB+RVKyrBXPNEDKaj/I+4SdcQlLqgvHihUSfnf4EZElFA9q3higUjjLN7a\n9ixh\r\n=vKxJ\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQCNWbtGxk0nrljr1ftIU0PgM7AdUbUh5B9lkshUTCOhCwIgTRZoJvnrjmbtITs+vzIeSpWrcboszY6fxxd5sqqs12Q="
    }
  ]
}

Repository

PENDING
zpenghao/scion2-cli

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:31 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ce439109d9c4538c2b86cdbd30508ee58a88f86ca4166f86b0f840ff9545e8aa

Other collected versions

1.1.712 Feb1.1.67 Jan1.1.57 Jan1.1.427 Dec1.1.327 Dec1.1.24 DecView all collected versions →