Skip to content

vuetom/vuetom-cli

Repository files navigation

Vuetom CLI


vuetom-cli

Blog & Documents generation tool

Version: 0.2.x

English | 中文

CHANGELOG

Links

npm

github

Install

npm

npm install vuetom-cli -g

# options: show version
vuetom-cli -v

# options: show help information
vuetom-cli --help

yarn

yarn global add vuetom-cli

Usage

Options

-v, --vers: View the current version number

-h, --help: View the current help

Commands

init: Initialize a project with a vuetom theme

list: Show the latest information about the vuetom cli branch

git: Show the link of user's GIT warehouse list

ver: Show theme or templates local version number

help: Same as -h option

-l: Change language

eg.

# Show Version
vuetom-cli -v

# Show HelpInformation
vuetom-cli -h

# Create docs templates
vuetom-cli init

# See the latest submission
vuetom-cli list
vuetom-cli list temp-docs

# Show someone's repo
vuetom-cli git lauset
vuetom-cli git lauset gitee

# Show local template version
vuetom-cli ver
vuetom-cli ver -t docs

# Change language to zh 
vuetom-cli -l zh
vuetom-cli -l en # english
vuetom-cli -l    # show language

# Auto check update
vuetom-cli -u # manual operation command
vuetom-cli -u 0.2.7 # update to new version

development

# install 
pnpm install

# Compiling TS files
pnpm build

# Test Cli (dev)
pnpm ts
pnpm ts:init
pnpm ts:list

# Test Cli (prod)
pnpm cli
pnpm cli:init
pnpm cli:list

# check dependencies updates
ncu

# update all dependencies
ncu -u

ShowTime

% vuetom-cli

vt01

% vuetom-cli init

vt02

% vuetom-cli list

vt03

% vuetom-cli git

vt04

$ vuetom-cli ver

vt05

$ vuetom-cli -u

vt06