The web gui is very comfortable. You can use mitmproxy instead.
1）Run the proxy server $ mitmweb –listen-port 44700
Make sure that 44700 port is open in firewall. You can specify the IP of proxy with –listen-host flag. I.E. –listen-host 192.168.0.10 or try –listen-host 0.0.0.0 if can not access remotely.
2）Configure in the remote device the IP and port proxy.
3）Open browser in the remote device and go to http://mitm.it, is a local page, in a local DNS, that you can download and install the certs.
If android, you must specify a pin lock screen.
mv mitmproxy-ca-cert.pem /usr/local/share/ca-certificates/mitmproxy.crt
4）Open web gui, by default in port 8081 in your browser: http://127.0.0.1:8081/#/flows
5）Enjoy networks intercepts.
linux – How to configure mitmproxy to intercept https? – Server Fault