All Projects → lambtron → Medium Cli

lambtron / Medium Cli

Licence: mit
Medium via CLI

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Medium Cli

Ghost Cli
CLI Tool for installing & updating Ghost
Stars: ✭ 313 (+286.42%)
Mutual labels:  cli, blogging
Tb Cli
🛠️ CLI for rapid TB generate
Stars: ✭ 8 (-90.12%)
Mutual labels:  cli, blog
Puput
A Django blog app implemented in Wagtail
Stars: ✭ 450 (+455.56%)
Mutual labels:  blog, blogging
Vertigo
Blog engine in Go (golang)
Stars: ✭ 266 (+228.4%)
Mutual labels:  blog, blogging
Cusca
A ghost theme
Stars: ✭ 42 (-48.15%)
Mutual labels:  blog, blogging
Medium To Own Blog
Switch from Medium to your own blog in a few minutes
Stars: ✭ 3,017 (+3624.69%)
Mutual labels:  blog, medium
Stories
Medium clone built with Ruby on Rails
Stars: ✭ 688 (+749.38%)
Mutual labels:  blog, medium
Lazyblorg
Blogging with Org-mode for very lazy people
Stars: ✭ 226 (+179.01%)
Mutual labels:  blog, blogging
Jessesquires.com
Turing complete with a stack of 0xdeadbeef
Stars: ✭ 31 (-61.73%)
Mutual labels:  blog, blogging
Blog
My blog created with React, Gatsby & Markdown
Stars: ✭ 29 (-64.2%)
Mutual labels:  blog, blogging
integrate-io
Cross-Post your blogs between dev.to, Medium and Hashnode 🔀
Stars: ✭ 21 (-74.07%)
Mutual labels:  medium, blogging
Lite Blog
A Laravel blog generator.
Stars: ✭ 69 (-14.81%)
Mutual labels:  blog, blogging
Ervy
Bring charts to terminal.
Stars: ✭ 1,530 (+1788.89%)
Mutual labels:  cli, blog
Codedoc
Create beautiful modern documentation websites.
Stars: ✭ 307 (+279.01%)
Mutual labels:  blog, blogging
Cli.fan
Blog about notable commandline tools
Stars: ✭ 106 (+30.86%)
Mutual labels:  cli, blog
Long Haul
A minimal, type-focused Jekyll theme.
Stars: ✭ 524 (+546.91%)
Mutual labels:  blog, blogging
Dat Medium
P2P Markdown Blog for Beaker inspired by Medium.
Stars: ✭ 225 (+177.78%)
Mutual labels:  blog, medium
Qards
Qards is a blogging platform focused on performance and on closing the gap between content publishers and developers: https://qards.io
Stars: ✭ 226 (+179.01%)
Mutual labels:  blog, blogging
Blog Post Workflow
Show your latest blog posts from any sources or StackOverflow activity or Youtube Videos on your GitHub profile/project readme automatically using the RSS feed
Stars: ✭ 910 (+1023.46%)
Mutual labels:  blog, blogging
Medium To Hugo
Medium stories exporter to markdown/hugo articles.
Stars: ✭ 64 (-20.99%)
Mutual labels:  blog, medium

Medium CLI

Medium from your command line!

Installation

$ npm install -g medium-cli

Usage

There are four commands: medium create, medium login, medium publish, and medium open.

create

$ medium create buzzfeed

  medium · Successfully created your blog!

This command creates a new sub directory in your current directory, with two example articles. The directory looks like this:

.
├── articles
|   ├── 12-classic-love-scenes-improved-by-a-chipotle-burrito
|   |   └── index.md
|   └── 51-corgi-gifs-that-will-change-your-life
|       └── index.md
└── .gitignore

The index.md files are the blog posts. More on this later.

login

$ medium login

  medium · Please open https://medium.com/me/settings in your browser.
         · At the bottom of the page, under `Integration Tokens`, copy
         · this description:

         · "Medium-CLI basic publishing access."

         · Then generate the new token and copy it.

  Paste your Integration Token here: XXXX

         · Authenticating into Medium..

         · Saved!

This command asks you for your Integration Token (which can be retrieved at the bottom of this page). It also auths into Medium to get your user information. Lastly, it saves the token, your userId, and your URL to your ~/.netrc file.

publish

$ medium publish

This command iterates through your index.md files in ./articles and publishes the ones that don't have published: true in the front matter to your Medium account.

Here is an example of an index.md file:

---
title: 12 Classic Love Scenes Improved By A Chipotle Burrito
tags: burrito, gifs, love
canonicalUrl: www.buzzfeed.com/kincairm/12-classic-love-scenes-improved-by-a-chipotle-burr-a4wp#.iab3N1w76
publishStatus: draft
license: all-rights-reserved
---

# 1. Titanic (1997)

![](http://ak-hdl.buzzfed.com/static/2014-04/enhanced/webdr05/28/11/enhanced-21200-1398697731-24.jpg)

# 2. The Notebook (2004)

![](http://ak-hdl.buzzfed.com/static/2014-04/enhanced/webdr06/28/11/enhanced-13907-1398700313-2.jpg)

# 3. Dirty Dancing (1987)

![](http://ak-hdl.buzzfed.com/static/2014-04/enhanced/webdr04/28/11/enhanced-31301-1398697944-9.jpg)

Note that title is the only field that is required in the front matter, with all the other ones optional. For a list of the accepted possible parameters, see Medium's API documentation here. contentFormat and content are not required in the front matter, as they are both added later by the medium publish command.

For each successful post, the medium publish command also adds published: true to the front matter.

open

$ medium open

This directs your browser to your Medium page. You need to have medium login first to set your Medium URL.

License (MIT)

WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].