beetlebug▾
/

jcode serve

Synopsis

jcode serve ?--port N? ?--secret-login?

Description

Runs the daemon on 127.0.0.1. It prints the URL, the state folder, and the one-time code of the first passkey, and then runs until it gets a signal. Run it in the background, with its output in a log file:

jcode serve > jcode.log 2>&1 &
jcode 0.1.0: http://localhost:7717/ state /home/you/.local/state/jcode
one-time code for the first passkey: 78986f0ca2

The daemon writes its port to the file port of the state folder, and the clients read it there. Each agent that was running goes on (States).

Options

Option Description
--port N The port. The default is 7717, or a free port when another program has 7717; 0 takes a free port.
--secret-login Turns on the sign-in with a shared secret (Sign in with a shared secret). The config key secret_login does the same.
--bind ADDRESS Only 127.0.0.1 and localhost: a passkey on another host needs HTTPS, and the daemon has no TLS server.

Errors

Message Cause
this version binds only 127.0.0.1: … A --bind of another address.
couldn't open socket: address already in use Another program has the port.