create account

Clive Updates - execute Clive commands via an external bash shell script by thebeedevs

View this thread on: hive.blogpeakd.comecency.com
· @thebeedevs ·
$107.62
Clive Updates - execute Clive commands via an external bash shell script
We have completed three topics for this release. The first feature - important for some of you - is the ability to execute Clive commands as a bash shell script. The remaining topics are continuations of previous work - we added validations for exchanges (in the CLI and when loading transactions from a file) and updated several views to improve their appearance and consistency: loading from a file (key or transaction), saving transaction to a file, adding or editing aliases.   

### Clive commands as a bash script
You can run your script containing Clive commands using the `--exec` option. If your script includes logic that requires a password, for example to unlock or create a profile, you can provide it via a pipe passed to start_clive_cli.sh. 
The script that launches Clive prepares the environment, but if you want to execute commands in unlocked mode, you still need to unlock a profile by placing a `clive unlock --profile <name>` command in your script.

##### Example of the script
I prepared the script `my_script.sh`. The script unlocks the profile `alice` and broadcasts the transfer to guest4test8 signing with alice_key.

```
#!/bin/bash

echo "Unlocking wallet for profile 'alice'..."
clive unlock --profile-name=alice 

echo "Transfer to guest4test8..."
clive process transfer --to guest4test8 --amount "0.001 hive" --sign alice_key
```
#### How to run a script
You can run your script using the following syntax:

 `echo alicealice | ./start_clive_cli.sh --exec ./my_script.sh`

Of course you can provide a password in a safer and more convenient way, using a file or a bash environment variable.

If you want to use an environment variable:
```
export PASS=alicealice
echo  "${PASS}" | ./start_clive_cli.sh --exec ./my_script.sh`
```
If you want to use a file to provide a password:
```
echo alicealice > pass.txt
cat pass.txt | ./start_clive_cli.sh --exec ./my_script.sh`
```

After executing the above command, the transfer is broadcast.
 ![image1.png](https://images.hive.blog/DQmX8tQBKwpEmGzQWqZpv6ekjmJP1kVNYrrcJXb2QwmsdvC/image1.png) 

### Validation related to exchanges
This is the final part of the changes related to checking operation receivers. We have already implemented the known account feature and validation against the bad accounts, both available in the CLI and the TUI. In this release we have added the remaining validations related to exchanges.
The validation checks whether the receiver account is an account belonging to one of the five most popular exchanges. The following accounts are checked:  

| Account name | Entity |
|--------------|--------|
| bdhivesteem | Binance |
| deepcrypto8 | Binance |
| huobi-pro | HTX |
| user.dunamu | Upbit |
| mxchive | mexc |

There are different validations for transfers and for other financial operations.
##### Validations for transfer
The transfer to an exchange should be in Hive and must include a memo. These conditions are checked in both the CLI and in the TUI.

Example: Transfer in the CLI 
It is not possible to send transfers to exchanges without a memo or in HBD.

 ![image2.png](https://images.hive.blog/DQmUR9X89gTc7hjw1HDA1J9631xGpouG1DWxEVQ8Tz8Puot/image2.png) 

Example: Transfer in the TUI
Here is an example of how it looks in the TUI. If the user enters an exchange as the receiver, it is not possible to switch currency and a memo is required. There is also a placeholder indicating that the user should check what should be entered in the memo.

 ![image9.png](https://images.hive.blog/DQma739WvM4nLbjJg9V7S1v1qH9r5w6Ker3GkHnkBkBut4W/image9.png) 

##### Validations for other financial operations
If one of the exchange accounts is set as the receiver of any financial operation other than transfer (transfer to savings, transfer from savings, recurrent transfer, power up, set delegations and set withdrawal routes), an error message appears. The validation may be bypassed by using the `--force` flag in the CLI or by confirming the dialog in the TUI.

Example:
Trying to send savings to an exchange account in the CLI.

 ![image8.png](https://images.hive.blog/DQmfPRw2dAdvMpsRNv6DJViTm6PB8LPaUpA8J1S4EXcUZE3/image8.png) 

Example:
In the TUI, if the user wants to send savings to an exchange account, additional confirmation is required. 

 ![image7.png](https://images.hive.blog/DQmRtNQwsEvtAGS6Ak8tcYkR2aAqMHhXFmzFdQSLPN99Bo6/image7.png) 

##### Validations during loading the transaction from a file
The same validations as described above are executed during saving a transaction to a file or during loading the transaction from a file. 

Example:
Validation triggered when loading a transaction that contains a transfer to an exchange without a memo.

CLI:

 ![image5.png](https://images.hive.blog/DQmTFu7WH7kS2c5sKTcNdJQEwv66y3LuR9GhB9NxBAvjHnh/image5.png) 

TUI:

 ![image3.png](https://images.hive.blog/DQmZV1Vod1GF6QNLytvaq45E9ums2XjZhBQKMDKTo2NsBza/image3.png) 

Example:
Validation triggered when loading a transaction that contains an example of financial operation (transfer from savings) to an exchange without a memo.

CLI:
 ![image4.png](https://images.hive.blog/DQmSbaXKWT3rMeM3DR4PHLQv8bvRaVZGy6rzafPyiPpV99q/image4.png) 

TUI:
 ![image6.png](https://images.hive.blog/DQmQyXhdhCSAouTimGG2mmkiLXEfsSbCVAz31FrAw8XdcVH/image6.png) 

### New dialogs

To make Clive look more consistent, we have updated several views:

- Add a new alias
- Edit alias
- Load transaction from a file
- Load key from a file
- Save transaction to a file
- These views are displayed as dialog windows with buttons.

Below is an example of the new dialog window for adding a new alias.

 ![image10.png](https://images.hive.blog/DQmXPhEXMXyhAWbVndxDTtDM3wGCxJFcmWVVr1DXJ4r7YYt/image10.png) 


[Complete list of corrected issues](https://gitlab.syncad.com/hive/clive/-/releases/v1.27.11.3)

The scripts that allow you to run Clive are here:
https://gtg.openhive.network/get/clive/


## TL;DR

```
docker run -ti hiveio/clive:v1.27.11.3
```

### Your feedback is invaluable and always welcome.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 243 others
properties (23)
authorthebeedevs
permlinkclive-updates-execute-clive-commands-via-an-external-bash-shell-script
categoryhive-139531
json_metadata{"format":"markdown+html","summary":"","app":"hive.blog/0.9","tags":["hive","dev","clive","wallet","cli"],"image":["https://images.hive.blog/DQmQyXhdhCSAouTimGG2mmkiLXEfsSbCVAz31FrAw8XdcVH/image6.png"],"author":"itsola"}
created2025-06-12 14:34:21
last_update2025-06-12 14:34:21
depth0
children6
last_payout2025-06-19 14:34:21
cashout_time1969-12-31 23:59:59
total_payout_value35.882 HBD
curator_payout_value71.734 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6,004
author_reputation199,200,348,472,277
root_title"Clive Updates - execute Clive commands via an external bash shell script"
beneficiaries
0.
accountitsola
weight5,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,317,832
net_rshares495,370,575,909,377
author_curate_reward""
vote details (307)
@bhr-curation ·
Bash script execution! 🔥 Automating Clive commands just got a whole lot easier. Nice work on the file loading updates too! 🐎
properties (22)
authorbhr-curation
permlinkclive-updates-execute-clive-commands-via-an-external-bash-shell-script-1749738907431
categoryhive-139531
json_metadata{}
created2025-06-12 14:35:06
last_update2025-06-12 14:35:06
depth1
children0
last_payout2025-06-19 14:35:06
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_length124
author_reputation5,048,930,270,461
root_title"Clive Updates - execute Clive commands via an external bash shell script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,317,852
net_rshares0
@bpcvoter3 ·
>Wow, love this post  It’s been handpicked and curated by the awesome Bilpcoin team—we’re so happy to support amazing content like this! If you’d like to join us in spreading the positivity, feel free to delegate some Hive Power to this account. Every bit helps us curate and uplift even more creators in the community By adding #bilpcoin or #bpc to original posts, you can earn BPC tokens
https://hive.blog/hive-167922/@bpcvoter2/calling-all-music-artists-on-hive-elevate-your-sound-with-ai-infused-beats

By adding #bilpcoin or #bpc to original posts, you can earn BPC tokens
<a href="https://imgflip.com/i/9m7cuw"><img src="https://i.imgflip.com/9m7cuw.jpg" title="made at imgflip.com"/></a><div><a href="https://imgflip.com/memegenerator">from Imgflip Meme Generator</a></div>

https://peakd.com/hive-140084/@bpcvoter1/my-way-keni-bpc-ai-music

https://peakd.com/hive-126152/@bpcvoter2/dear-themarkymark-buildawhale-gogreenbuddy-usainvote-ipromote-and-whoever-else-is-involved-in-this-scheme-you-call-us-nutty-as

 https://peakd.com/hive-167922/@bilpcoinbpc/exploring-the-possibilities-of-ai-art-with-bilpcoin-nfts-episode-102-buildawhale-scam-farm-on-hive-and-dear-steevc

https://peakd.com/hive-133987/@bilpcoinbpc/comprehensive-analysis-of-punkteam-s-wallet-transactions

https://hive.blog/hive-163521/@bpcvoter1/deep-dive-into-meritocracy-s-activity-history-and-blockchain-audit

https://www.publish0x.com/the-dark-side-of-hive/to-downvoters-scammers-and-farmers-on-hive-the-time-to-chang-xmjzrmp

https://peakd.com/hive-163521/@bpcvoter3/themarkymark-we-ve-exposed-your-actions-repeatedly-how-you-and-your-army-of-bots-manipulate-rewards-to-benefit-yourselves-it-s

https://peakd.com/hive-168088/@bpcvoter3/the-shadow-matrix-a-tale-of-deceit-and-reckoning
https://youtu.be/5wEl6BaB2RM
>**Our move?**  
🔹 **Unite voices**: Use #bilpcoin or #bpc to highlight censorship & demand accountability.  
🔹 **Document abuse**: Share evidence of unfair downvotes, self-voting scams, and double standards.  
🔹 **Push for reform**: Advocate for transparent governance, vote caps, and community-driven rules.  

Decentralization isn’t just a feature—it’s a fight. Let’s model fairness, rally allies, and pressure Hive to live up to its ideals.  
https://peakd.com/hive-167922/@bpcvoter3/5m1kft-themarkymark-you-can-keep-pretending-to-be-oblivious-but-the-truth-is-out-you-ve-been-exposed-it-s-time-to-own-up-to-your

**#StandForDecentralization #HiveTransparency**
properties (22)
authorbpcvoter3
permlinksxqzma
categoryhive-139531
json_metadata{"tags":["bilpcoin","bpc","hivetransparency"],"image":["https://img.youtube.com/vi/5wEl6BaB2RM/0.jpg","https://i.imgflip.com/9m7cuw.jpg"],"links":["https://hive.blog/hive-167922/@bpcvoter2/calling-all-music-artists-on-hive-elevate-your-sound-with-ai-infused-beats"],"app":"hiveblog/0.1"}
created2025-06-12 14:41:03
last_update2025-06-12 14:41:03
depth1
children0
last_payout2025-06-19 14:41:03
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_length2,459
author_reputation-6,640,278,011,019
root_title"Clive Updates - execute Clive commands via an external bash shell script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,317,971
net_rshares0
@hive-lu ·
#### Hello thebeedevs!
**It's nice to let you know that your article won 🥇 place.**
Your post is among the best articles voted 7 days ago by the @hive-lu | King Lucoin Curator by **keithtaylor**
 
You and your curator receive **0.0004 Lu** (Lucoin) investment token and a **20.66%** share of the reward from [Daily Report 693](/lucoin/@hive-lu/daily-report-day-693). Additionally, you can also receive a unique **LUGOLD** token for taking 1st place. All you need to do is reblog [this](/lucoin/@hive-lu/daily-report-day-693) report of the day with your winnings.
 
<center>[![2.png](https://files.peakd.com/file/peakd-hive/now.calendars/23uEwt7Djmb4N3dE96ecCUemJez6vLU3fmoTrdjEJn1ws4d8iPw2QrrsB22nyhbb178sx.png)](/@hive-lu)</center>
 
---
<center><sub>Invest in the **Lu token** (Lucoin) and get paid. With 50 Lu in your wallet, you also become the curator of the @hive-lu which follows your upvote.
Buy Lu on the [Hive-Engine](https://hive-engine.com/trade/LU) exchange | World of Lu created by @szejq </sub></center>
<center><sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP` _or to resume write a word_ `START`</sub> </center>
properties (22)
authorhive-lu
permlinklucoin-prize-wgreqq
categoryhive-139531
json_metadata""
created2025-06-20 02:30:18
last_update2025-06-20 02:30:18
depth1
children0
last_payout2025-06-27 02:30:18
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_length1,189
author_reputation31,505,892,393,548
root_title"Clive Updates - execute Clive commands via an external bash shell script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,458,275
net_rshares0
@hivebuzz ·
Congratulations @thebeedevs! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

<table><tr><td><img src="https://images.hive.blog/60x70/https://hivebuzz.me/@thebeedevs/payout.png?202506121729"></td><td>You received more than 5000 HP as payout for your posts, comments and curation.<br>Your next payout target is 6000 HP.<br><sub>The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD</sub></td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@thebeedevs) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>

properties (22)
authorhivebuzz
permlinknotify-1749749717
categoryhive-139531
json_metadata{"image":["https://hivebuzz.me/notify.t6.png"]}
created2025-06-12 17:35:18
last_update2025-06-12 17:35:18
depth1
children0
last_payout2025-06-19 17:35:18
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_length779
author_reputation369,627,785,338,610
root_title"Clive Updates - execute Clive commands via an external bash shell script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,321,120
net_rshares0
@hivebuzz ·
Congratulations @thebeedevs! Your post has been a top performer on the Hive blockchain and you have been rewarded with this rare badge

<table><tr><td><img src="https://images.hive.blog/60x60/https://hivebuzz.me/badges/toppayoutday.png"></td><td>Post with the highest payout of the day.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@thebeedevs) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>

properties (22)
authorhivebuzz
permlinknotify-1749778561
categoryhive-139531
json_metadata{"image":["https://hivebuzz.me/notify.t6.png"]}
created2025-06-13 01:36:00
last_update2025-06-13 01:36:00
depth1
children0
last_payout2025-06-20 01:36: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_length576
author_reputation369,627,785,338,610
root_title"Clive Updates - execute Clive commands via an external bash shell script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,327,763
net_rshares0
@sanjeevm ·
Why would a normal user need these Clive commands? 
properties (22)
authorsanjeevm
permlinkre-thebeedevs-sxshvp
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2025.6.1","image":[],"users":[]}
created2025-06-13 10:16:39
last_update2025-06-13 10:16:39
depth1
children0
last_payout2025-06-20 10:16:39
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_length51
author_reputation699,532,707,564,886
root_title"Clive Updates - execute Clive commands via an external bash shell script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,333,571
net_rshares0