<p>I figured out a solution, just use curl in the terminal which communicates the commands via binary data.</p>

CC BY-SA 4.0
2019-05-08T17:57:45.333Z
2019-05-08T17:57:45.333Z
Fontaine
<p>I am having issues utilizing bitcoin-cli via terminal. For example:</p>

<p><code>DIRECT-8A-HP-OfficeJet-4650:~ peter$ bitcoin-cli deriveaddresses "wpkh(xpub6Dy2ikUu5mXbDdhw2vAP1C4eiQM8rTz1NiWQt2BzGi83iHC2gEgTSD54JveyuHF9VLAqNkCGnee1jdBL7nA3JNorbqjSSS8DEV6Hn3PuNBt/*)#mn5jvyc3" 99
error code: -8
error message:
Range must be specified as end or as [begin,end]
DIRECT-8A-HP-OfficeJet-4650:~ peter$</code></p>

<p>However the exact same text in the Bitcoin Core console works without issue.</p>

<p>What am I doing wrong?</p>

CC BY-SA 4.0
2019-05-08T11:45:29.897Z
Are you running bitcoin-cli on a printer?
chytrik
CC BY-SA 4.0
2019-05-08T11:50:39.673Z
Haha, no, I have to disguise the hotspot I create at work.. I am living under harsh conditions ;)
Fontaine
<json-rpc><bitcoin-cli>
Issuing bitcoin-cli commands via terminal
Fontaine
# Issuing bitcoin-cli commands via terminal

(Asked by: username_0 on 2019-05-08)

I am having issues utilizing bitcoin-cli via terminal. For example:

`DIRECT-8A-HP-OfficeJet-4650:~ peter$ bitcoin-cli deriveaddresses "wpkh(xpub6Dy2ikUu5mXbDdhw2vAP1C4eiQM8rTz1NiWQt2BzGi83iHC2gEgTSD54JveyuHF9VLAqNkCGnee1jdBL7nA3JNorbqjSSS8DEV6Hn3PuNBt/*)#mn5jvyc3" 99
error code: -8
error message:
Range must be specified as end or as [begin,end]
DIRECT-8A-HP-OfficeJet-4650:~ peter$`

However the exact same text in the Bitcoin Core console works without issue.

What am I doing wrong?

**Tags:** json-rpc, bitcoin-cli

> **Comments:**
> **username_1**: Are you running bitcoin-cli on a printer?  
> **username_0**: Haha, no, I have to disguise the hotspot I create at work.. I am living under harsh conditions ;)  

---

## 1 answers

### Answer by username_0 on 2019-05-08. Score: 0 | Accepted answer

I figured out a solution, just use curl in the terminal which communicates the commands via binary data.


---

