@sergiodxa/cli
A CLI tool with commands for personal usage.
Last updated a year ago by sergiodxa .
MIT · Original npm · Tarball · package.json
$ cnpm install @sergiodxa/cli 
SYNC missed versions from official npm registry.

personal-cli

A CLI tool with commands for personal usage.

Usage

Install it from npm

yarn global add @sergiodxa/cli

Add the followings environment keys to your machine.

  • GITHUB_TOKEN

Use it!

Commands

cli essay <path> '<title>'

Create a new essay entry on the specified path with the given title.

Optionally is possible to customize the layout to use with --layout <name> which by default is essay.

cli init <name> [type]

Initialize a new project with the given name. This will:

  • Create a directory with the given name inside ~/Project
  • Initialize Git inside that directory
  • Initialize Yarn with default inside it
  • Add start, build and dev scripts to package.json based on the type of project
  • If type is defined create now.json and Dockerfile
  • Lastly open VSCode inside the new project

The argument type is optional and defaults to none. Possible values are:

  • none
  • next
  • micro
  • next-static

cli short <url> <path>

Add a new short URL to sergiodxa/personal-shortening.

Example:

cli short https://sergiodxa.com /home

Note: The / at the beginning of the path is optional.

Note: The protocol is optional and will default to https://.

cli share <url> <comment>

Share a new interesting link on sergiodxa.com/links.

Example:

cli share https://sergiodxa.com 'This a super interesting link!'

Note: The protocol is optional and will default to https://.

Current Tags

  • 1.1.0                                ...           latest (a year ago)

2 Versions

  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 4
Dependencies (8)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |