1.0.4 • Published 3 years ago

telegraph-cli v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Telegraph CLI

npm version License: MIT Lint Test

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.

Getting Telegraph access token from the cookies

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

jaro@smartapp.dev

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago