onionshare/cli
2021-09-10 13:38:00 -07:00
..
onionshare_cli Change version to 2.4.dev1, to make a dev release 2021-09-10 13:38:00 -07:00
tests Fixes typos about Linux as platform name 2021-09-02 08:31:30 +05:30
poetry.lock ClientAuthV3 fixes 2021-08-27 15:52:29 +10:00
pyproject.toml Version bump to 2.4 2021-09-10 12:45:21 -07:00
README.md remove duplicated comma 2021-08-31 11:59:07 +02:00
setup.py Version bump to 2.4 2021-09-10 12:45:21 -07:00

╭───────────────────────────────────────────╮
│    *            ▄▄█████▄▄            *    │
│               ▄████▀▀▀████▄     *         │
│              ▀▀█▀       ▀██▄              │
│      *      ▄█▄          ▀██▄             │
│           ▄█████▄         ███        -+-  │
│             ███         ▀█████▀           │
│             ▀██▄          ▀█▀             │
│         *    ▀██▄       ▄█▄▄     *        │
│ *             ▀████▄▄▄████▀               │
│                 ▀▀█████▀▀                 │
│             -+-                     *     │
│   ▄▀▄               ▄▀▀ █                 │
│   █ █     ▀         ▀▄  █                 │
│   █ █ █▀▄ █ ▄▀▄ █▀▄  ▀▄ █▀▄ ▄▀▄ █▄▀ ▄█▄   │
│   ▀▄▀ █ █ █ ▀▄▀ █ █ ▄▄▀ █ █ ▀▄█ █   ▀▄▄   │
│                                           │
│          https://onionshare.org/          │
╰───────────────────────────────────────────╯

Installing OnionShare CLI

First, make sure you have tor and python3 installed. In Linux, install it through your package manager. In macOS, install it with Homebrew: brew install tor. Second, OnionShare is written in python, and you can install the command line version use python's package manager pip.

Requirements

Debian/Ubuntu (APT):

sudo apt-get install tor python3-pip

Arch (Pacman):

sudo pacman -S tor python-pip

CentOS, Red Hat, and Fedora (Yum):

sudo yum install tor python3 python3-wheel

macOS (Homebrew):

brew install tor python
sudo easy_install pip

Main

Installation

Install OnionShare CLI:

pip install --user onionshare-cli

Set path

When you install programs with pip and use the --user flag, it installs them into ~/.local/bin, which isn't in your path by default. To add ~/.local/bin to your path automatically for the next time you reopen the terminal or source your shell configuration file, do the following:

First, discover what shell you are using:

echo $SHELL

Then apply the path to your shell file:

bash:

echo "PATH=\$PATH:~/.local/bin" >> ~/.bashrc
source ~/.bashrc

zsh:

echo "PATH=\$PATH:~/.local/bin" >> ~/.zshrc
source ~/.zshrc

Usage

Then run it with:

onionshare-cli --help

Developing OnionShare CLI

You must have python3 and poetry installed.

Install dependencies with poetry:

poetry install

To run from the source tree:

poetry run onionshare-cli

To run tests:

poetry run pytest -v ./tests

Build a wheel package

poetry build

This will create dist/onionshare_cli-$VERSION-py3-none-any.whl.