<p>For the upcoming Bitcoin Core 0.18 release, the <code>generate</code> command has been deprecated and its functionality disabled. For the following major release, 0.19.0, the <code>generate</code> command has been removed entirely. This removal is already in the master branch of Bitcoin Core's source code. If you have built that branch from source, then the <code>generate</code> command does not exist.</p>

<p>Use <code>generatetoaddress</code> instead.</p>

CC BY-SA 4.0
2019-03-16T16:29:01.487Z
It works! Thanks a lot ! Next time I'll search more carefully~Thank you for your patience.
jia tan
CC BY-SA 4.0
2019-03-16T15:40:59.260Z
2019-03-16T15:40:59.260Z
Ava Chow
<p><a href="https://i.sstatic.net/Ubb9G.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Ubb9G.png" alt="enter image description here"></a></p>

<p>As the picture shows,I am really confuesd.</p>

CC BY-SA 4.0
2019-03-16T15:35:43.353Z
What version of Bitcoin Core are you using?
Ava Chow
<bitcoin-cli><command-line-options>
Method not found when I use bitcoin-cli to generate blocks under regtest mode
jia tan
# Method not found when I use bitcoin-cli to generate blocks under regtest mode

(Asked by: username_0 on 2019-03-16)

[![enter image description here](https://i.sstatic.net/Ubb9G.png)](https://i.sstatic.net/Ubb9G.png)

As the picture shows,I am really confuesd.

**Tags:** bitcoin-cli, command-line-options

> **Comments:**
> **username_1**: What version of Bitcoin Core are you using?  

---

## 1 answers

### Answer by username_1 on 2019-03-16. Score: 7

For the upcoming Bitcoin Core 0.18 release, the `generate` command has been deprecated and its functionality disabled. For the following major release, 0.19.0, the `generate` command has been removed entirely. This removal is already in the master branch of Bitcoin Core's source code. If you have built that branch from source, then the `generate` command does not exist.

Use `generatetoaddress` instead.

> **Comments:**
> **username_0**: It works! Thanks a lot ! Next time I'll search more carefully~Thank you for your patience.  

---

