create account

steemcli - A command-line client for posting content to Steem by yamadapc

View this thread on: hive.blogpeakd.comecency.com
· @yamadapc · (edited)
$129.39
steemcli - A command-line client for posting content to Steem
# steemcli
A command-line client for posting content to Steem

Source-code at https://github.com/yamadapc/steemcli

This is a GIF of me posting _this_ post:

![](http://i.imgur.com/g8tt2cN.gif)

(The GIF and minor changes were then edited in)

## Install
```
npm install -g steemcli
```

## Usage
```

  Usage: steemcli [options] <file>

  Options:

    -h, --help                      output usage information
    -V, --version                   output the version number
    -t,--title <title>              The title for your post
    -d,--description <desc>         A short description for your post
    -p,--parent <parent>            The parent post for this post, defaults to steembin
    -w,--watch                      Start a live-reloading preview for this post
    -n,--noopen                     When used with watch, prevent opening the preview
    -l,--link <link>                The post's permalink
    -r,--raw                        If not specified, steembin will try to generate a markdown wrapper for your content
    -v,--verbose                    Be verbose
    --parent-author <parentAuthor>  The author of parent post for this post
    --username <username>           Your Steem username
    --password <password>           Your Steem password
    --wif <wif>                     A Steem 'posting' WIF token
    --theme <theme>                 Which theme to use for your post
    --tags <tags>                   Comma separated list of tags

```

## Editor Integration
- Basic Emacs integration is available through the `steemcli.el` Emacs Lisp file

## License
Published under the GPLv3 license by Pedro Tacla Yamada (@yamadapc)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 21 others
properties (23)
authoryamadapc
permlinkad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a
categorysteembin
json_metadata{"filename":"./README.md","tags":["steemit","steembin","programming","command-line"],"image":["http://i.imgur.com/g8tt2cN.gif"],"links":["https://github.com/yamadapc/steemcli"]}
created2016-09-14 12:56:30
last_update2016-09-14 21:05:45
depth0
children16
last_payout2016-10-15 15:35:00
cashout_time1969-12-31 23:59:59
total_payout_value107.934 HBD
curator_payout_value21.456 HBD
pending_payout_value0.000 HBD
promoted10.000 HBD
body_length1,656
author_reputation846,479,082,929
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,242,815
net_rshares46,044,775,092,406
author_curate_reward""
vote details (85)
@abit ·
This post is made with that tool?
I think the URL is not so good for SEO.
👍  
properties (23)
authorabit
permlinkre-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20160914t180339745z
categorysteembin
json_metadata{"tags":["steembin"]}
created2016-09-14 18:03:36
last_update2016-09-14 18:03:36
depth1
children2
last_payout2016-10-15 15:35:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length73
author_reputation141,171,499,037,785
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,245,486
net_rshares152,636,421
author_curate_reward""
vote details (1)
@yamadapc · (edited)
Yes! This post was made with that tool, then edited to include the GIF of making the post with the tool of the post with the GIF of making the post with...

The URL is really bad for everything... Right now it's a SHA hash of the content, though you can edit it. I'll make it be a slug of the title most likely. I disabled it being the slug of the title because I generate the title from the filename if it's not specified and when doing posts of common files like this, "README", I considered it'd be a problem to have duplicated permalinks, which causes the posts to be edited, instead of being created.

You can currently always do:

```
steemcli --link my-link --title "My title" ./file.md
```

Which is fine to start IMO. But yeah, maybe the slug from title is better.

What do you think?
👍  
properties (23)
authoryamadapc
permlinkre-abit-re-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20160914t183557285z
categorysteembin
json_metadata{"tags":["steembin"]}
created2016-09-14 18:35:57
last_update2016-09-14 18:40:39
depth2
children1
last_payout2016-10-15 15:35:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length793
author_reputation846,479,082,929
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,245,757
net_rshares11,282,370,272
author_curate_reward""
vote details (1)
@abit ·
I'm not so experienced in SEO though. I'd say, keep up the great job! I believe you'll figure out what's the best.
properties (22)
authorabit
permlinkre-yamadapc-re-abit-re-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20160916t081836636z
categorysteembin
json_metadata{"tags":["steembin"]}
created2016-09-16 08:18:36
last_update2016-09-16 08:18:36
depth3
children0
last_payout2016-10-15 15:35:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length114
author_reputation141,171,499,037,785
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,263,475
net_rshares0
@ausbitbank ·
Awesome job ! Had a dig through the github but haven't tested this yet. You have a new follower :)
👍  
properties (23)
authorausbitbank
permlinkre-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20160914t131802573z
categorysteembin
json_metadata{"tags":["steembin"]}
created2016-09-14 13:18:03
last_update2016-09-14 13:18:03
depth1
children1
last_payout2016-10-15 15:35:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length98
author_reputation287,009,709,424,827
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,242,988
net_rshares155,689,149
author_curate_reward""
vote details (1)
@yamadapc ·
Thanks, awesome! :)

Let me know if there're any issues; more improvements in UI and use-cases to come.
👍  
properties (23)
authoryamadapc
permlinkre-ausbitbank-re-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20160914t132232560z
categorysteembin
json_metadata{"tags":["steembin"]}
created2016-09-14 13:22:33
last_update2016-09-14 13:22:33
depth2
children0
last_payout2016-10-15 15:35:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length103
author_reputation846,479,082,929
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,243,021
net_rshares11,270,713,350
author_curate_reward""
vote details (1)
@cryptospeaker ·
Hi, there is a issue with the server connect.
Can please say me how i can fix it?? Thanks in advance
https://github.com/yamadapc/steemcli/issues/2
properties (22)
authorcryptospeaker
permlinkre-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20170929t142558031z
categorysteembin
json_metadata{"tags":["steembin"],"links":["https://github.com/yamadapc/steemcli/issues/2"],"app":"steemit/0.1"}
created2017-09-29 14:25:57
last_update2017-09-29 14:25:57
depth1
children5
last_payout2017-10-06 14:25:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length146
author_reputation2,733,744,502
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id16,283,897
net_rshares0
@cryptospeaker ·
Now it is working with version 1.0.7 :)) 👍 great job. thanks for this piece of code
properties (22)
authorcryptospeaker
permlinkre-cryptospeaker-re-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20171018t112901416z
categorysteembin
json_metadata{"tags":["steembin"],"app":"steemit/0.1"}
created2017-10-18 11:29:00
last_update2017-10-18 11:29:00
depth2
children0
last_payout2017-10-25 11:29:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length83
author_reputation2,733,744,502
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id17,973,133
net_rshares0
@cryptospeaker ·
Now there is only one small problem :)
when i add tags like this --tags bitcoin,crypto,twitter
then always is steembin the main tag. 
How can i remove steembin as a tag?
thanks
properties (22)
authorcryptospeaker
permlinkre-cryptospeaker-re-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20171018t113829254z
categorysteembin
json_metadata{"tags":["steembin"],"app":"steemit/0.1"}
created2017-10-18 11:38:30
last_update2017-10-18 11:38:30
depth2
children1
last_payout2017-10-25 11:38:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length176
author_reputation2,733,744,502
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id17,973,657
net_rshares0
@realskilled ·
Hi @cryptospeaker,

If the idea is to create post and set the main tag, you can use the "-p" option.
E.g: If you want to use this tags: tag1 tag2 tag3 tag4 tag5
tag1 will be the "main tag".

You can run steemcli like this:

steemcli ... -p "tag1" --tags "tag2,tag3,tag4" ...

By default, the value associed to "-p" is "steembin", that's why if don't use this parameter you'll get "steembin" as a main tag.
In other words, the value of "-p" is concatenated with your original tags to create the tags of your post.

Hopefully it helps.
properties (22)
authorrealskilled
permlinkre-cryptospeaker-re-cryptospeaker-re-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20171025t222440982z
categorysteembin
json_metadata{"tags":["steembin"],"users":["cryptospeaker"],"app":"steemit/0.1"}
created2017-10-25 22:24:42
last_update2017-10-25 22:24:42
depth3
children0
last_payout2017-11-01 22:24:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length533
author_reputation-65,196,368,224
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,566,614
net_rshares0
@kenhudoy ·
@yamadapc
i mentioned you in my blog post hope you do not mind... thanks
properties (22)
authorkenhudoy
permlinkre-cryptospeaker-re-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20170929t142558031z-20171018t1024431z
categorysteembin
json_metadata{"app":"chainbb/0.3","format":"markdown+html","tags":[]}
created2017-10-18 09:01:54
last_update2017-10-18 09:01:54
depth2
children1
last_payout2017-10-25 09:01:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length73
author_reputation10,766,809,992,992
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries
0.
accountchainbb
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id17,963,748
net_rshares0
@cryptospeaker ·
hehe why i mind ? only when you something bad :))
properties (22)
authorcryptospeaker
permlinkre-kenhudoy-re-cryptospeaker-re-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20171018t1024431z-20171018t112433337z
categorysteembin
json_metadata{"tags":["steembin"],"app":"steemit/0.1"}
created2017-10-18 11:24:33
last_update2017-10-18 11:24:33
depth3
children0
last_payout2017-10-25 11:24:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length49
author_reputation2,733,744,502
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id17,972,891
net_rshares0
@kshakae ·
Liked it, installed it and then just about to use it and see what happened.

![error.PNG](https://steemitimages.com/DQmZ2xvCk77Znd69SdsHhjpjVuUyCeFQ6W5tf8htzMUGprd/error.PNG)

Help me where I am wrong, newbie here.
properties (22)
authorkshakae
permlinkre-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20170820t155649696z
categorysteembin
json_metadata{"tags":["steembin"],"image":["https://steemitimages.com/DQmZ2xvCk77Znd69SdsHhjpjVuUyCeFQ6W5tf8htzMUGprd/error.PNG"],"app":"steemit/0.1"}
created2017-08-20 15:56:48
last_update2017-08-20 15:56:48
depth1
children0
last_payout2017-08-27 15:56:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length214
author_reputation4,838,445,259
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,358,236
net_rshares0
@nristen ·
I just installed this app and am looking forward to playing with it - I wasn't able to find any documentation regarding a configuration file.  I was interested in options for specifying authentication options or if that was something that needed to be added the syntax for each usage.
properties (22)
authornristen
permlinkre-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20170528t050810110z
categorysteembin
json_metadata{"tags":["steembin"],"app":"steemit/0.1"}
created2017-05-28 05:08:12
last_update2017-05-28 05:08:12
depth1
children1
last_payout2017-06-04 05:08:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length284
author_reputation114,973,917,437
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,876,812
net_rshares0
@lapingvino ·
Can you add more context on this? How to configure the post data correctly?
properties (22)
authorlapingvino
permlinkre-nristen-re-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20170919t014229700z
categorysteembin
json_metadata{"tags":["steembin"],"app":"steemit/0.1"}
created2017-09-19 01:42:30
last_update2017-09-19 01:42:30
depth2
children0
last_payout2017-09-26 01:42:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length75
author_reputation713,694,421,858
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,281,721
net_rshares0
@realskilled ·
Hi @yamadapc,

Congratulations. It's a really good job.

I tried different ways to get the "-d" option working but I alwaoys get the same:

"Using content start as the description"

I took a look at the code but it's not clear to me if you are using it (options.desc). It would be really usefull (SEO) to have this working.

Can you, please, give me an advice on how to use the "--description" (-d) option ?

Cheers !
properties (22)
authorrealskilled
permlinkre-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20171025t223931728z
categorysteembin
json_metadata{"tags":["steembin"],"users":["yamadapc"],"app":"steemit/0.1"}
created2017-10-25 22:39:33
last_update2017-10-25 22:39:33
depth1
children0
last_payout2017-11-01 22:39:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length417
author_reputation-65,196,368,224
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,567,351
net_rshares0
@steemdesigner ·
http://s22.postimg.org/bmj8s2w7j/125.gif This is a great work, many thanks for sharing it
👍  
properties (23)
authorsteemdesigner
permlinkre-yamadapc-ad562e9780cd8392a1ee5c097a3a88897c94f89f78022daa37c7dc27fc1ba78a-20160914t140210257z
categorysteembin
json_metadata{"tags":["steembin"],"image":["http://s22.postimg.org/bmj8s2w7j/125.gif"]}
created2016-09-14 14:02:18
last_update2016-09-14 14:02:18
depth1
children0
last_payout2016-10-15 15:35:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length89
author_reputation299,636,343,613
root_title"steemcli - A command-line client for posting content to Steem"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,243,371
net_rshares152,636,421
author_curate_reward""
vote details (1)