Skip to content

Commit

Permalink
add CLI example usages to README
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Sep 3, 2024
1 parent 4dbca79 commit 1cf4482
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,34 +190,6 @@ API usage
`other code samples <http://pyftpdlib.readthedocs.io/en/latest/tutorial.html>`__

Command line usage
==================

Anonymous server, listening on port 2121, sharing the current directory:

.. code-block:: sh
$ python3 -m pyftpdlib
[I 13-04-2024 17:55:18] >>> starting FTP server on 0.0.0.0:2121, pid=6412 <<<
Anonymous server with write permissions:

.. code-block:: sh
$ python3 -m pyftpdlib -w
Specify a user with write permission:

.. code-block:: sh
$ python3 -m pyftpdlib -w -u alice -P password
Listen on localhost, port 21 (requires root) and share a given directory:

.. code-block:: sh
$ sudo python3 -m pyftpdlib -i localhost -p 21 -d /home/bob
Donate
======

Expand Down

0 comments on commit 1cf4482

Please sign in to comment.