Command Line Tool based on Nodejs for Kipalog
Install with npm:
$ npm i -g kipalog-cli
https://www.npmjs.com/package/kipalog-cli
Install dependencies
npm i
npm i -g babel-core babel-cli
Dev
babel-node index.src.js
npm run build
$ kipalog config
or you can add with command: $ kipalog config <your-api-key>
If you want to change your API key. Set it again with:
$ kipalog config
or $ kipalog config <your-api-key>
Delete your API Key setting:
$ kipalog delete
This CLI use for:
https://github.com/Kipalog/Kipalog-API-Doc
Example: README.md
And open your BASH or CMD or anything you can command.
Remember your path of README.md
or just need cd
to the folder containing this file.
$ kipalog post README.md --title "Hello world" --tag "TIL, Nodejs, CSS" --public true
or you can run for draft:
$ kipalog post README.md --title "Hello world" --tag "TIL, Nodejs, CSS"
dont forget, if your path of file has any space, wrap it with '' or "".
Example: "READ ME.md"
option | value | desciption | |
---|---|---|---|
--title or -t | requried | string |
title of your post |
--tag | requried | string |
list of tag, split by comma |
--public or -p | option | boolean |
publish your post or not (defalut: false ) |
Notice: each option is followed by its value, example: --title "title of post"
.
$ kipalog preview <your-post-path.md> <path-file-will-save-as.html>
Example:
$ kipalog preview readme.md readme.html
Default: If you dont give path to save file. File will be saved in where you command. Filename default is: timestamp-kipalog-optionname[-tag].json
Get 30 recent hot post
$ kipalog get --hot [--path=<path-save-response.json>]
Get 30 recent newest post
$ kipalog get --new [--path=<path-save-response.json>]
Get 30 recent post by tag.
$ kipalog get --tagby <tagname> [--path=<path-save-response.json>]
$ kipalog --help
$ kipalog -h
$ kipalog --version
$ kipalog -v
Copyright 2016 - 2017 Pierre Neter. Released under the MIT license.