1.0.4 • Published 3 years ago
telegraph-cli v1.0.4
Telegraph CLI
CLI tool for telegra.ph blog platform.
Installation
npm install -g telegraph
telegraph --help
Or use with npx
:
npx telegraph-cli --help
Usage
To use private methods (e.g. cratePage
) you have to set an access token:
telegraph setAccessToken %token%
You can find it at the cookies of the website or you can create a new one by using createAccount
method.
List posts:
telegraph getPageList
Get specific post:
telegraph getPage --path=Puteshestvie-po-Namibi --return_content
Create post from markdown file:
telegraph createPage --title="My awesome post" --content=content.md
Get more information about a specific command by using -h
or --help
flags:
telegraph createPage --help
Contacts
Jaroslav Khorishchenko