Skip to content

Publishing error #4

@ashutoshmjain

Description

@ashutoshmjain

Hi Andy @lambtron

First, thanks for creating this very useful app. Like you , I wish if I could publish Medium from CLI

I installed it thru npm and looks every thing is working fine except for the publishing .. here is a complete view of what I did .. Please advise if I am missing anything

`bash-4.3$ pwd
/home/ajain/buzzfeed
bash-4.3$ 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:
#####################################################################

     · Authenticating into Medium..

     · Saved!

bash-4.3$ medium publish
(node:19796) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'split' of undefined
bash-4.3$ ls
articles
bash-4.3$ cd articles/
bash-4.3$ ls
test-post-from-medium-cli
bash-4.3$ cd test-post-from-medium-cli/
bash-4.3$ ls
index.md
bash-4.3$ cat index.md

title: test post from medium command line interface
tags:
canonicalUrl:
publishStatus: draft
license: all-rights-reserved

Testing a post from medium command line interface
bash-4.3$ `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions