axil(1)axil

NAME

axil - axil(1)

axil command-line tool โ€” HTTP(S) + WebSocket(S) server daemon.

Overview

axil runs the axil server: an HTTP/WebSocket daemon with ordered Xylem module loading, TLS certificate mappings, authentication and PTY/environment handling. It daemonizes into the background by default; pass -d to stay in the foreground. axil -? prints the option synopsis.

Usage

axil [-Adr?] [-C PATH] [-k CERT] [-K PATH] [-p PORT] [-s PORT] [-B BYTES] [-m MODS]

Options

Modules

-m MODS loads dynamic modules through the libxylem module system (xy_load). Each module may register HTTP/WS handlers, commands and on_axil_* hooks (see <ttypt/axil-xy.h>). Multiple modules are colon-separated in a single -m value:

axil -d -p 8888 -m /path/to/libaxil-tty.so:/path/to/libaxil-cgi.so

Repeated -m flags are not additive โ€” only the last value is used. Sibling modules: libaxil-tty (browser terminal / WebSocket PTY support, provides axil_pty()) and libaxil-cgi (CGI fallback for executable ./index.sh).

TLS

-k CERT and -K PATH accept domain:cert:key certificate mappings; -s PORT sets the HTTPS port. A certificates file loaded with -K holds one mapping per line:

example.com:cert.pem:key.pem

Authentication

WebSocket connections authenticate by default: axil_auth_check resolves the QSESSION=<token> cookie to a user. -A bypasses this for development/testing, authenticating every connection as the current user.

Examples

axil -d -p 8888                                  # foreground HTTP server
axil -p 80                                       # daemonized HTTP server
sudo axil -C /var/www -K certs.txt -d           # HTTPS from cert file
axil -d -p 8080 -k example.com:cert.pem:key.pem # single TLS mapping
axil -A -d -p 4242 -m libaxil-auren              # auto-auth WS + module

Notes

See also

axil_main

axil_auth

axil_ws_handler

axil_config

axil_register