# xun-cli **Repository Path**: pengjielee/xun-cli ## Basic Information - **Project Name**: xun-cli - **Description**: 同步于:https://github.com/pengjielee/xun-cli - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-03 - **Last Updated**: 2023-05-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 一个Nodejs命令行工具,可以查看日期、查看天气、查看本机IP地址、创建.gitignore文件、创建.prettierrc.js文件。 ## 全局安装 ```bash $ npm install -g xun-cli ``` ## 使用 1. 查看日期 ```bash $ xun-cli date ``` 2. 查看指定城市天气 默认显示北京的天气,支持的城市有北京、上海、天津、杭州、成都、郑州。 ```bash $ xun-cli weather $ xun-cli weather shanghai $ xun-cli weather tianjin $ xun-cli weather hangzhou $ xun-cli weather chengdu $ xun-cli weather zhenzhou ``` 3. 查看热门城市天气 ```bash $ xun-cli hot ``` 4. 查看本机IP地址 ```bash $ xun-cli ip ``` 5. 查看帮助 ```bash $ xun-cli help ``` 6. 创建.gitignore文件 ```bash $ xun-cli git ``` 7. 创建.prettierrc.js文件 ```bash $ xun-cli prettier ``` 8. Serve a static site ```bash $ xun-cli serve $ xun-cli serve 3000 ```