CLI Reference
This is the CLI reference for jvln, the command line tool for establishing tunnel connections with the server. Run jvln --help at any time to view this reference in the terminal.
For installation instructions or to find out how to open your first tunnel, see Getting Started.
Starts the Jvln daemon. The daemon is responsible for proxying traffic and managing tunnel connections with the server.
jvln armOptions
Section titled “Options”| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--log-level |
LogVerbosityLevel |
No | info | Configure verbose output for detailed logging. (info|debug|trace) |
disarm
Section titled “disarm”Stops the Jvln daemon. By stopping the daemon, all active tunnel connections will be closed, as the connection with the server will be lost. However, tunnel connections will not be forgotten, so they will be re-established the next time the daemon is started.
jvln disarmOptions
Section titled “Options”| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--log-level |
LogVerbosityLevel |
No | info | Configure verbose output for detailed logging. (info|debug|trace) |
retrieve
Section titled “retrieve”Operations for terminating tunnel connections.
retrieve http
Section titled “retrieve http”Closes and forgets an existing HTTP tunnel. The server will no longer forward HTTP traffic to the port specified.
jvln retrieve tcp --server <ServerAddress> --port <ushort>Options
Section titled “Options”| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
-s --server |
ServerAddress |
Yes | — | Jvln server to connect with. |
-p --port |
ushort |
Yes | — | Local port that requests are being be forwarded to. |
--log-level |
LogVerbosityLevel |
No | info | Configure verbose output for detailed logging. (info|debug|trace) |
Examples
Section titled “Examples”# closes a tunnel available at jvln.sh that forwards http traffic to local tcp port 3000jvln retrieve http --server jvln.sh --port 3000status
Section titled “status”Retrives the current status of the Jvln daemon.
jvln statusOptions
Section titled “Options”| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--log-level |
LogVerbosityLevel |
No | info | Configure verbose output for detailed logging. (info|debug|trace) |
target
Section titled “target”Establishes a secure connection with a Jvln server.
jvln target --server <ServerAddress> [--code <string>]Options
Section titled “Options”| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
-s --server |
ServerAddress |
Yes | — | Jvln server to connect with. |
--log-level |
LogVerbosityLevel |
No | info | Configure verbose output for detailed logging. (info|debug|trace) |
Examples
Section titled “Examples”# connects to jvln.shjvln target --server jvln.sh --code AABBCCOperations for establishing tunnel connections.
throw http
Section titled “throw http”Creates a tunnel for forwarding HTTP connections. The server will generate a unique identifier for the tunnel and make it available for HTTP connections at that subdomain.
jvln throw http --server <ServerAddress> --port <ushort>Options
Section titled “Options”| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
-s --server |
ServerAddress |
Yes | — | Jvln server to connect with. |
-p --port |
ushort |
Yes | — | Local port requests should be forwarded to. |
--http2-mode |
Http2HandlingMode |
No | refuse | Mode for handling HTTP/2 requests. (refuse|h2c-forward) |
--log-level |
LogVerbosityLevel |
No | info | Configure verbose output for detailed logging. (info|debug|trace) |
Examples
Section titled “Examples”# opens a tunnel available at jvln.sh, forwarding http traffic to local tcp port 3000jvln throw http --server jvln.sh --port 3000
# opens a tunnel available at jvln.sh, forwarding http traffic to local tcp port 3000, including raw HTTP/2 requests as h2cjvln throw http --server jvln.sh --port 3000 --http2-mode h2c-forward