Abstrax

Command reference

A single-page listing of every Abstrax command and its flags. Each command links to its detailed documentation. For global flags that apply to every command, see Global flags.

Global flags

Flag Description
--json Output machine-readable JSON
--json-stream Output NDJSON progress events plus a final result line (mutually exclusive with --json)
--dry-run Show what would happen without making changes
--yes Skip confirmation prompts for destructive commands
--quiet Reduce output
--verbose Increase output, including the underlying commands run
--no-color Disable coloured output
--allow-blocked-plugin Allow execution of registry-blocked plugins (repeatable)
--action Run a stable action (user.add, plugin.deploy.now, …). Root only.
--payload JSON object for --action (- reads stdin). Root only.
--help, -h Show help for a command
--version, -v Show the version (root command only)

Top-level commands

Command Root Description Docs
abstrax version No Print version, commit, build date commands
abstrax self update [version] Yes Update the CLI from GitHub releases self
abstrax doctor No Inspect the system commands
abstrax log [path] No Tail a log file (defaults to the Abstrax log) commands
abstrax help No Show help for any command commands
abstrax completion <shell> No Generate a shell autocompletion script commands

abstrax log [path] flags: --lines (default 50), --follow/-f (default true). abstrax self update flags: --allow-breaking, --plugins. The help and completion commands are provided automatically by the command framework.

self

See Self.

Command Root Key flags
self update [version] Yes --allow-breaking, --plugins

user

See Users.

Command Root Key flags
user add <name> Yes --create-home, --no-create-home, --grant-sudo, --groups, --shell, --uid, --system, --password, --disabled-password, --comment
user remove <name> Yes --delete-home, --keep-home, --remove-cron, --kill-processes, --force, --if-unused
user grant-sudo <name> Yes
user revoke-sudo <name> Yes
user set-groups <name> <groups> Yes
user add-groups <name> <groups> Yes
user remove-groups <name> <groups> Yes
user set-shell <name> <shell> Yes
user lock <name> Yes --password-only
user unlock <name> Yes
user sessions <name> No
user logout <name> Yes --session, --all
user info <name> No
user list No --system, --regular, --sudo

ssh-key

See SSH keys.

Command Root Key flags
ssh-key add <user> <key> No* --name, --comment, --expires, --from, --from-file, --force
ssh-key remove <user> <key-id> No* --fingerprint, --force
ssh-key list <user> No* --managed-only
ssh-key info <user> <key-id> No*

* No root check in code, but managing another user's keys usually needs root.

ssh

See SSH configuration.

Command Root Key flags
ssh config show No
ssh config set-port <port> Yes --allow-firewall, --close-old-port
ssh config set-timeout <seconds> Yes
ssh config disable-root-login Yes
ssh config enable-root-login Yes --keys-only
ssh config disable-password-auth Yes
ssh config enable-password-auth Yes
ssh reload Yes
ssh restart Yes

package

See Packages.

Command Root Key flags
package install <name> Yes --version
package remove <name> Yes --purge
package update Yes
package upgrade Yes --security-only
package upgrades No --security-only
package auto-updates status No Security updates only; never auto-reboots
package auto-updates enable Yes Installs backend if missing; Abstrax-owned config
package auto-updates disable Yes Turns off Abstrax config; package stays installed
package search <query> No
package info <name> No
package list No

service

See Services.

Command Root Description
service start <name> Yes Start a service
service stop <name> Yes Stop a service
service restart <name> Yes Restart a service
service reload <name> Yes Reload a service
service enable <name> Yes Enable at boot
service disable <name> Yes Disable at boot
service status <name> No Show status

cron

See Cron.

Command Root Key flags
cron add <id> Yes --command, --schedule, frequency flags, --user, --output, --error-output, --append-output, --discard-output, --working-dir, --env, --enabled, --disabled
cron remove <id> Yes
cron modify <id> Yes --user, --command, --schedule, --output, --error-output, --append-output, --discard-output, --no-output, --working-dir, --env
cron list No
cron info <id> No
cron run <id> Yes --timeout, --use-job-output
cron enable <id> No
cron disable <id> No

Frequency flags: --every-minute, --every-five-minutes, --every-ten-minutes, --every-fifteen-minutes, --every-thirty-minutes, --hourly, --daily, --weekly, --monthly, --yearly.

daemon

See Daemons.

Command Root Key flags
daemon add <name> Yes --command, --directory, --user, --processes, --autostart, --autorestart, --install-supervisor, --startsecs, --startretries, --stopsignal, --stopwaitsecs, --exitcodes, --stdout-logfile, --stderr-logfile, --environment
daemon remove <name> Yes --stop, --delete-logs, --force
daemon modify <name> Yes --command, --directory, --user, --processes, --autostart, --autorestart, --startsecs, --startretries, --stopsignal, --stopwaitsecs, --exitcodes, --stdout-logfile, --stderr-logfile, --environment, --unset-environment, --clear-environment
daemon start <name> Yes
daemon stop <name> Yes
daemon restart <name> Yes
daemon status <name> No
daemon info <name> No
daemon list No --all
daemon logs <name> No --lines, --follow, --stderr, --stdout, --process

config

See Config.

Command Root Description
config show No Show effective configuration
config get <key> No Get one configuration value
config set <key> <values...> Yes Replace a list value
config add <key> <value> Yes Append to a list value
config remove <key> <value> Yes Remove from a list value
config reset [key] Yes Reset to defaults

project

See Projects.

Command Root Key flags
project add <name> Yes --path, --nginx (default false; required for a vhost), --apache, --no-vhost, --shared-logs, --domains, --port, --web-root, --user, --group, --ssl (requires --nginx), --email, --redirect-http, --php, --node, --ruby, --static, --php-version, --node-version, --ruby-version, --public-dir, --proxy-port
project remove <name> Yes --remove-vhost, --remove-ssl, --delete-files, --keep-files, --force
project modify <name> Yes --path, --domains, --clear-domains, --add-domain, --remove-domain, --php-version, --node-version, --ruby-version, --public-dir, --proxy-port, --shared-logs. Empty flag values clear stored fields
project runtime set <name> Yes Exactly one of --php, --node, --ruby, --static; --php-version, --node-version, --ruby-version, --public-dir, --proxy-port
project list No
project info <name> No Includes SSL metadata and redirect count when set
project enable <name> Yes Persists vhost_disabled in state
project disable <name> Yes Persists vhost_disabled in state
project reload <name> Yes
project inspect <name> No Stable v1 JSON API (web_server, vhost, ssl, logs, timestamps)
project vhost add <name> Yes --domains, --port, --web-root
project vhost remove <name> Yes Removes vhost; keeps project files and state
project redirect list <project> No
project redirect add <project> <source> <destination> Yes --code (301, 302, 307, 308)
project redirect modify <project> <id> Yes --source, --destination, --code
project redirect remove <project> <id> Yes
project service restart <project> <service> Yes
project service reload <project> <service> Yes

web

See Web server.

Command Root Key flags
web install Yes --apache (not implemented), --enable, --start
web ip show No Current server IP response
web ip set Yes --return (404, 403, or 444)
web ip clear Yes
web test No
web reload Yes
web restart Yes

ssl

See Certificates.

Command Root Key flags
ssl install Yes Install Certbot and the nginx plugin
ssl add <project> Yes --domains, --email, --staging, --redirect-http
ssl remove <project> Yes
ssl renew Yes --project
ssl status [project] No project_name, certificate_name, expiry, days_remaining, status (valid / expiring / expired / missing), redirect_http, staging

mysql

See MySQL.

Command Root Key flags
mysql config set Yes --host, --port, --user, --password, --socket
mysql config show No
mysql test No
mysql status No
mysql install Yes --version, --root-password
mysql reset-root-password Yes --root-password
mysql remote enable Yes --bind (default 0.0.0.0). Asks for confirmation. Does not open the firewall.
mysql remote disable Yes Removes Abstrax's drop-in only
mysql remote status No Reports the running server's bind_address
mysql database add <name> No --charset, --collation, --if-not-exists
mysql database remove <name> No
mysql database list No
mysql user add <name> No --host, --password, --grant-db, --privileges, --preset (password generated if --password omitted)
mysql user password <name> No --host, --password (password generated if --password omitted)
mysql user remove <name> No --host (localhost also drops 127.0.0.1)
mysql user list No --grants, --exclude-system
mysql user info <name> No --host
mysql grant <user> <database> No --privileges, --preset, --host
mysql revoke <user> <database> No --host

Privilege presets: readonly, app, admin.

cache

See Cache.

Command Root Key flags
cache install <driver> Yes --version, --port, --bind, --memory, --enable, --start
cache remove <driver> Yes --purge
cache start <driver> Yes
cache stop <driver> Yes
cache restart <driver> Yes
cache status [driver] No installed, version, port/bind when known
cache config <driver> No* --port, --bind, --memory, --maxmemory-policy, --requirepass, --clear-requirepass (changing settings needs root)

Drivers: redis, valkey, memcached. On EL10, redis without --enable-required-repos falls back to Valkey.

firewall

See Firewall.

Command Root Key flags
firewall status No --json may include defaults
firewall defaults No Incoming/outgoing/routed/ping policy
firewall defaults set Yes --incoming, --outgoing (UFW only), --force
firewall ping allow|block Yes Inbound ICMP echo requests
firewall install Yes installs ufw or firewalld
firewall enable Yes --allow-ssh, --ssh-port
firewall disable Yes
firewall allow <port> Yes --protocol, --from, --comment
firewall deny <port> Yes --protocol, --from, --comment, --force
firewall allow-ip <ip-or-cidr> Yes --to, --port (destination), --protocol, --comment
firewall deny-ip <ip-or-cidr> Yes --comment
firewall rule list No Includes source_port, UFW group, and pending while UFW is inactive
firewall rule remove <id|group> Yes --force; UFW group removes IPv4 and IPv6 copies
firewall remove service <name> Yes --force, firewalld
firewall remove port <port[/proto]> Yes --force, firewalld

repo

See Repositories.

Command Root Key flags
repo enable <epel|crb|remi> Yes --enable-required-repos (required on RHEL/Oracle for EPEL/Remi)

Global flag --enable-required-repos also applies to commands that need Remi/EPEL (for example project add with PHP, ssl install on RHEL/Oracle).

server

See Server.

Command Root Key flags
server status No
server cpu No
server memory No
server disk No --path
server load No
server services No --failed
server reboot Yes --delay, --yes
server reboot-required No

plugin

See Plugins.

Command Root Key flags
plugin list No
plugin info <name> No
plugin search <query> No
plugin install Yes (registry only) --manifest, --path
plugin update <name> Yes --path (local plugins)
plugin remove <name> Yes

Blocked plugins can also be allowed via plugins.allow_blocked in /etc/abstrax/config.json. See Plugin security.

Action names

Every command maps to a stable action name used in JSON output (the action field) and as a job API for a hosted agent. Agents run those actions with root --action / --payload flags; see How plugins work. Examples: user.add, firewall.enable, project.add, plugin.deploy.now. See the JSON output reference for the result shape.