1.0.4 • Published 4 years ago
telegraph-cli v1.0.4
Telegraph CLI
CLI tool for telegra.ph blog platform.
Installation
npm install -g telegraph
telegraph --helpOr use with npx:
npx telegraph-cli --helpUsage
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 getPageListGet specific post:
telegraph getPage --path=Puteshestvie-po-Namibi --return_contentCreate post from markdown file:
telegraph createPage --title="My awesome post" --content=content.mdGet more information about a specific command by using -h or --help flags:
telegraph createPage --helpContacts
Jaroslav Khorishchenko