Skip to content

Commit

Permalink
add help on how to start the daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
ecdsa committed May 14, 2020
1 parent 58ee975 commit 8a1d32b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
45 changes: 43 additions & 2 deletions cmdline.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@


Command Line
============


Electrum has a powerful command line. This page will show you a few basic principles.

Note that this page has been updated for Electrum 4.0.


Using the inline help
---------------------
Expand All @@ -25,6 +25,47 @@ To see the documentation for a command, type:
electrum help <command>
How to use the daemon
---------------------

By default, commands are sent to an Electrum daemon.
Here is how to start and stop the daemon:

.. code-block:: bash
electrum daemon -d
electrum getinfo
electrum stop
Some commands require a wallet. Here is how to load a wallet in the daemon:

.. code-block:: bash
electrum load_wallet # this will load the default wallet
electrum load_wallet -w /path/to/wallet/file
electrum list_wallets
Once the wallet is loaded, wallet operations are possible, such as:

.. code-block:: bash
electrum listaddresses
electrum payto <address> <amount>
Some commands do not require network access, and can be executed without a running daemon.
This is done with the --offline flag:

.. code-block:: bash
electrum -o listaddresses
electrum -o payto <address> <amount>
electrum -o -w /path/to/wallet/file listaddresses
Magic words
-----------

Expand Down
4 changes: 2 additions & 2 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Advanced users
tor
gpg-check

Using the Daemon
----------------
Daemon and Command Line
-----------------------

.. toctree::
:maxdepth: 2
Expand Down

0 comments on commit 8a1d32b

Please sign in to comment.