DEV Community

Cover image for I Created a CLI to Cross-Post Your Articles On Dev, Hashnode, and Medium

I Created a CLI to Cross-Post Your Articles On Dev, Hashnode, and Medium

Shahed Nasser on March 26, 2021

This article was originally published on my personal blog If you own a blog like me, but also cross-post your articles on platforms like Dev, Hash...
Collapse
 
unfor19 profile image
Meir Gabay

I'm curious regarding the Medium integration. Posting to dev.to is easy since they fully support MarkDown, while Medium is .. Medium. Have you managed to overcome the "cross platform text editor compatibility" challenge?

Collapse
 
shahednasser profile image
Shahed Nasser

Medium allows you to choose the type of content through a parameter “contentFormat” and you can pass it markdown or html. I’m passing it markdown and it works pretty well

Collapse
 
unfor19 profile image
Meir Gabay

Does it also work for code blocks? Because if it does then wow man

Thread Thread
 
shahednasser profile image
Shahed Nasser

Yea it does. To be honest this part of work isn’t done by me as I’m using a library to transform the html to markdown, so it’s the one that’s doing this part correctly!

Thread Thread
 
unfor19 profile image
Meir Gabay

Super cool, then I gotta check it out :)

Thread Thread
 
lancemicola profile image
Lancemicola

That's fantastic; I'll have to look into it . The world of shooting games, which is for individuals who enjoy this game genre, is one of the most remarkable games in the genre of shooters that cannot be complete without 1v1 lol unblocked games. 1v1 lol unblocked is an online shooting game that you may play with or against other players. Here, you can build strong foundations and battle like great warriors. Use the skills you've mastered to kill the adversary and win.

Collapse
 
ricardodantas profile image
Ricardo Dantas • Edited

Very nice job! I think we were kind of in the same timing 🙂. I am also releasing a solution for cross-post on Medium, Hashnode and DEV integrated with Github. Feel free to try it: gitpublisher.com

Collapse
 
grahamthedev profile image
GrahamTheDev

great project, thanks for sharing! ❤ 🦄 🔖!

One super tiny thing, your first image for dev.to points the red arrow at "sign out" not at "settings".

I hope I find some time this week to give it a go!

Collapse
 
shahednasser profile image
Shahed Nasser

Oh thanks for pointing that out I thought it was obvious that it was pointing at the settings. I’ll make sureto fix that

Collapse
 
grahamthedev profile image
GrahamTheDev

I mean this image for clarity:

image pointing to sign out instead of settings

It is obviously pointing at sign out (did you mean it was obvious you meant settings, as I completely agree then and I did say a super minor point!). The problem with the written word!

Anyway once again thanks for sharing a great CLI!

Thread Thread
 
shahednasser profile image
Shahed Nasser

Yes that’s what I meant. I’ll make sure to fix that. If you use it I’d also appreciate the feedback!

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Will do!

Collapse
 
ben profile image
Ben Halpern

Tools like this are great, nice stuff. Definitely why we enable APIs at DEV.

Collapse
 
msamgan profile image
Mohammed Samgan Khan

nice one, but can you please give me more detail as which is the base article.
like for the canonical URL.
it has to be one of the above three ?
is there any way to ingratiate it with custom blogs.

Collapse
 
shahednasser profile image
Shahed Nasser

I’m not sure if I correctly understand you, but the base article is your own blog. You pass it in the command cross-post run and then it is posted to these 3 platforms or whichever you choose from them.

Collapse
 
msamgan profile image
Mohammed Samgan Khan

thats nice.
really cool. i can initgrate it in my personal blog and everytime i publish to my blog it will automate the publishing on these three...
thats super cool
you are genius...

Thread Thread
 
shahednasser profile image
Shahed Nasser

Thank you! Currently it will publish them as a draft but I will be adding an option to publish them publicly soon.

Thread Thread
 
msamgan profile image
Mohammed Samgan Khan

may i have a one on one conversation on you regarding a project of mine if you don't mind..

Collapse
 
uzaxirr profile image
Uzair

Woww This is indeed amazing, Gave it a try and it worked!!!
Keep up the amazing work 🚀

Collapse
 
shahednasser profile image
Shahed Nasser

Thank you! I’m glad it helped you as well.

Collapse
 
dangoslen profile image
Dan Goslen

Very cool! I'll give this a try today!

Collapse
 
uzaxirr profile image
Uzair

Hey, I created a SaaS tool for this purpose

integrateme.co/crosspost

And here's my post about it
dev.to/uzairali10/tool-to-cross-po...