Socket
Book a DemoInstallSign in
Socket

pharah-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pharah-cli

A cli that aims to managing template code.

1.0.7
latest
Source
npmnpm
Version published
Weekly downloads
5
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Pharah

A cli that aims to managing template code. Pharah

Usage

Notice

pharah-cli aims to managing template code by maintaining a JSON of all template repository.

You could specify a template with owner, repository and branch. Like this: intro

Install

npm install -g pharah-cli

Show all templates

//In
$ pharah list

//out
╔═══════════════╤═════════════════════╤════════╗
║ Template Name │ Owner/Name          │ Branch ║
╟───────────────┼─────────────────────┼────────╢
║ pharah        │ ZhaZhengRefn/pharah │ master ║
╚═══════════════╧═════════════════════╧════════╝

Add an template

$ pharah add

? input the name of this template: pharah
? input the ownerName/repositoryName, such as: tj/commander.js: ZhaZhengRefn/pharah
? input the branch name where this template belongs to: master

╔═══════════════╤═════════════════════╤════════╗
║ Template Name │ Owner/Name          │ Branch ║
╟───────────────┼─────────────────────┼────────╢
║ pharah        │ ZhaZhengRefn/pharah │ master ║
╚═══════════════╧═════════════════════╧════════╝

Init a new project with the template

$ pharah init

? Which template would you like to use ? pharah
? Input the name of new project. pharah-demo
? Input the path that you want to init the project. /Users/zhazheng/www/my_project
✔ Init the project successfully!

Delete a template or all of them

$ pharah delete

? Which template would you want to delete ? pharah
? Deleting a template can not be reverted. Sure? Yes
✔ Writing templates successfully!
╔═══════════════╤════════════╤════════╗
║ Template Name │ Owner/Name │ Branch ║
╚═══════════════╧════════════╧════════╝
$ pharah delete --all

? Delete all templates ? Yes
✔ Writing templates successfully!
╔═══════════════╤════════════╤════════╗
║ Template Name │ Owner/Name │ Branch ║
╚═══════════════╧════════════╧════════╝

Update a template

$ pharah update

? input the name of the template that you want to update: pharah
? input the ownerName/repositoryName, such as: tj/commander.js: ZhaZhengRefn/pharah
? input the branch name where this template belongs to: develop  //here, change the branch name.
✔ Writing templates successfully!
╔═══════════════╤═════════════════════╤═════════╗
║ Template Name │ Owner/Name          │ Branch  ║
╟───────────────┼─────────────────────┼─────────╢
║ pharah        │ ZhaZhengRefn/pharah │ develop ║
╚═══════════════╧═════════════════════╧═════════╝

Sync the template list from remote

$ pharah sync

? Url of the template.json:  http://www.refn.com/template.json
? Merge or Replace your current template?  (Use arrow keys)
❯ merge
  replace

Exact the template to a specific path

You could input pwd to get the path.

$ pharah exact
? Input the path you want to exact the template.json to. /Users/zhazheng/www/my_project


✔ Writing templates successfully!
╔═══════════════╤═════════════════════╤═════════╗
║ Template Name │ Owner/Name          │ Branch  ║
╟───────────────┼─────────────────────┼─────────╢
║ pharah        │ ZhaZhengRefn/pharah │ develop ║
╚═══════════════╧═════════════════════╧═════════╝

Keywords

cli

FAQs

Package last updated on 16 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.