diff --git a/README.md b/README.md index e772fde..9c6b999 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,12 @@ docker compose run protonmail-bridge init Wait for the bridge to startup, then you will see a prompt appear for [Proton Mail Bridge interactive shell](https://proton.me/support/bridge-cli-guide). Use the `login` command and follow the instructions to add your account into the bridge. Then use `info` to see the configuration information (username and password). After that, use `exit` to exit the bridge. You may need `CTRL+C` to exit the docker entirely. +If you want to access the cli again later without initializing keys (for example to call `info` again), use this command: + +``` +docker compose run protonmail-bridge debug +``` + ## Run To run the container, use the following command. diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 1931087..a03b639 100644 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -4,6 +4,7 @@ set -ex # Initialize if [[ $1 == init ]]; then + echo "Entering 'init' mode" # Initialize pass gpg --generate-key --batch /protonmail/gpgparams @@ -18,7 +19,14 @@ if [[ $1 == init ]]; then # Login /protonmail/proton-bridge --cli $@ +elif [[ $1 == debug ]]; then + echo "Entering 'debug' mode" + + # Debug mode - call CLI directly + /protonmail/proton-bridge --cli + else + echo "Entering 'default' mode" # socat will make the conn appear to come from 127.0.0.1 # ProtonMail Bridge currently expects that.