Witness Essentials: CLI (Update) by therealwolf

View this thread on steempeak.com
· @therealwolf · (edited)
$54.55
Witness Essentials: CLI (Update)
![witness_essentials.png](https://cdn.steemitimages.com/DQmbo45tA92NVsTqvuJip9YvfVNtyeNkQCitajdFs6BRWaX/witness_essentials.png)

---

`Witness Essentials: CLI` received an update, which includes:

- New Command: `rotate`
- Private active-key input popup if not added to config.json, but needed for the specific action

---

Github: https://github.com/witness-essentials/cli
PR: https://github.com/witness-essentials/cli/pull/4

---

<h2>What is Witness Essentials?</h2>

`Witness Essentials` is a collection of important tools for witnesses. `Witness Essentials: CLI` includes multiple commands for witnesses to quickly manage their signing-keys & witness data.

Github Organization: https://github.com/witness-essentials

---

<h2>Getting Started</h2>

<h3>Installation</h3>

1.) Clone Repository and install packages
```
git clone https://github.com/witness-essentials/cli.git
cd cli
npm i # or yarn
```
---
2.) Edit your Config
```
cp configs/config.example.json configs/config.json
nano configs/config.json
```
---
<h4> Config Explanation</h4>

- `WITNESS`: Witness account name.

- `SIGNING_KEYS`: Add **all** signing keys here as pairs. As of HF20, you can now also update your witness with your current private signing key. This is also necessary for updating new properties.

```
 [{ "public": "STM7..", "private": "5JS.." }, { "public": "STM5..", "private": "5PD.." }, { .. }]
```

- `ACTIVE_KEY` (Optional):  As of HF20, the private active key is optional and/or only needed if the witness is disabled and you want to enable it again. If it's needed, it can also be entered as argument once the script asks for it.


<h3>Commands</h3>

There are 4 commands you can run. If you want to use a specific `RPC_NODE`, then you can use it as an optional argument.

- Active a specific signing-key
```
npm run enable <SIGNING_KEY> <OPTIONAL_RPC_NODE>
```
---
- Disable witness directly
```
npm run disable <OPTIONAL_RPC_NODE>
```
---
- Change witness parameters
```
npm run update <OPTIONAL_RPC_NODE>
```
---
- Rotate between signing-keys (in config)
```
npm run rotate <OPTIONAL_RPC_NODE>
```
---

I hope my fellow witnesses find this useful.

All the best,
Wolf

---

<center><a href="https://therealwolf.me/vote"><img src="https://i.imgur.com/GMiLiAh.png"></a>

<sup>Do you believe that my work is valuable for Steem? Then please <a href="https://therealwolf.me/vote">vote for me as witness</a>.</sup></center>
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 243 others
properties (23)
post_id68,804,291
authortherealwolf
permlinkwitness-essentials-cli-update
categorywitness-category
json_metadata{"image":["https:\/\/cdn.steemitimages.com\/DQmbo45tA92NVsTqvuJip9YvfVNtyeNkQCitajdFs6BRWaX\/witness_essentials.png"],"tags":["witness-category","steem","steemdevs","utopian-io","development"],"app":"steemit\/0.1","format":"markdown","links":["https:\/\/github.com\/witness-essentials\/cli","https:\/\/github.com\/witness-essentials\/cli\/pull\/4","https:\/\/github.com\/witness-essentials","https:\/\/therealwolf.me\/vote"]}
created2019-01-14 15:34:36
last_update2019-01-14 15:38:45
depth0
children6
net_rshares96,015,722,052,396
last_payout2019-01-21 15:34:36
cashout_time1969-12-31 23:59:59
total_payout_value42.279 SBD
curator_payout_value12.268 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,415
author_reputation371,535,229,097,172
root_title"Witness Essentials: CLI (Update)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars0
author_curate_reward""
vote details (307)
@emrebeyler · (edited)
$12.33
Hello @therealwolf!

Great updates. `witness-essentials` looks sharp, as always.

Private active key pop-up was needed since storing it in the config may not be the securest way to handle witness enable operations.

On a minor note, regarding the `npm run command <OPTIONAL_RPC_NODE>` syntax, in CLI apps, we use `-a` or `--argument` to specify optional arguments by [convention](https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html). It's not a big thing but it still bugs me out as a CLI nerd. :)

***

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2-2-2-1-2-1-1-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , ,
properties (23)
post_id68,805,831
authoremrebeyler
permlinkre-therealwolf-witness-essentials-cli-update-20190114t162636775z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit\/0.1","users":["therealwolf"],"links":["https:\/\/www.gnu.org\/software\/libc\/manual\/html_node\/Argument-Syntax.html","https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/3\/2-2-2-1-2-1-1-","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"]}
created2019-01-14 16:26:36
last_update2019-01-14 16:27:54
depth1
children1
net_rshares21,203,219,480,568
last_payout2019-01-21 16:26:36
cashout_time1969-12-31 23:59:59
total_payout_value9.320 SBD
curator_payout_value3.006 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length972
author_reputation319,480,565,467,431
root_title"Witness Essentials: CLI (Update)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (13)
@utopian-io ·
Thank you for your review, @emrebeyler! Keep up the good work!
properties (22)
post_id68,919,062
authorutopian-io
permlinkre-re-therealwolf-witness-essentials-cli-update-20190114t162636775z-20190117t120544z
categorywitness-category
json_metadata{"app":"beem\/0.20.9"}
created2019-01-17 12:05:45
last_update2019-01-17 12:05:45
depth2
children0
net_rshares0
last_payout2019-01-24 12:05:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length62
author_reputation152,913,012,544,965
root_title"Witness Essentials: CLI (Update)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### Hi @therealwolf!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
post_id68,806,465
authorsteem-ua
permlinkre-witness-essentials-cli-update-20190114t164428z
categorywitness-category
json_metadata{"app":"beem\/0.20.14"}
created2019-01-14 16:44:30
last_update2019-01-14 16:44:30
depth1
children0
net_rshares0
last_payout2019-01-21 16:44:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length290
author_reputation23,203,609,903,979
root_title"Witness Essentials: CLI (Update)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-plus ·
SteemPlus upvote
Hi, @therealwolf!

You just got a **0.5%** upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in [here](https://steemit.com/@steem-plus) to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
properties (22)
post_id68,835,235
authorsteem-plus
permlinkwitness-essentials-cli-update---vote-steemplus
categorywitness-category
json_metadata{}
created2019-01-15 10:19:42
last_update2019-01-15 10:19:42
depth1
children0
net_rshares0
last_payout2019-01-22 10:19:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length437
author_reputation247,995,867,762,997
root_title"Witness Essentials: CLI (Update)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@pennsif ·
This post has been included in the latest edition of  [**SOS Daily News**](https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem14january2019-q0a7xprver) - a digest of all you need to know about the State of Steem.

***

* *Editor of the [**The State of Steem SoS Daily News**](https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem14january2019-q0a7xprver).*

* *Promoter of [**The State of Steem SoS Weekly Forums**](https://steemit.com/dtube/@pennsif/k8811wa6).*

* *Editor of the [**weekly listing of steem radio shows, podcasts & social broadcasts**](https://steemit.com/mspwaves/@pennsif/schedule-of-radio-shows-podcasts-and-social-broadcasts-week-beginning-14-january-2019).*

* *Founder of the [**A Dollar A Day**](https://steemit.com/adollaraday/@adollaraday/a-dollar-a-day-charitable-giving-project-ususd-5000-donated-in-8-months-we-made-it) charitable giving project.*

***
properties (22)
post_id68,863,820
authorpennsif
permlinkre-therealwolf-witness-essentials-cli-update-20190116t023422516z
categorywitness-category
json_metadata{"tags":["witness-category"],"links":["https:\/\/steemit.com\/steem\/@pennsif\/sosdailynewsnewsaboutthestateofsteem14january2019-q0a7xprver","https:\/\/steemit.com\/dtube\/@pennsif\/k8811wa6","https:\/\/steemit.com\/mspwaves\/@pennsif\/schedule-of-radio-shows-podcasts-and-social-broadcasts-week-beginning-14-january-2019","https:\/\/steemit.com\/adollaraday\/@adollaraday\/a-dollar-a-day-charitable-giving-project-ususd-5000-donated-in-8-months-we-made-it"],"app":"steemit\/0.1"}
created2019-01-16 02:34:21
last_update2019-01-16 02:34:21
depth1
children0
net_rshares0
last_payout2019-01-23 02:34:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length919
author_reputation1,139,374,949,281,341
root_title"Witness Essentials: CLI (Update)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
Hey, @therealwolf!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
post_id68,883,987
authorutopian-io
permlinkre-witness-essentials-cli-update-20190116t143952z
categorywitness-category
json_metadata{"app":"beem\/0.20.9"}
created2019-01-16 14:39:54
last_update2019-01-16 14:39:54
depth1
children0
net_rshares0
last_payout2019-01-23 14:39:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length593
author_reputation152,913,012,544,965
root_title"Witness Essentials: CLI (Update)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000