This is a command-by-command reference for abstack.
See also:
- CLI guide for workflow explanations.
- CLI cookbook for recipe-style examples.
- Stdlib guide for bundled template reference.
abstack <command> [options]
Commands:
helpbuildsyncfmtcomposedockerstdlibtui
Runtime callback/log behavior:
- CLI callback events are printed to screen as tagged lines (for example,
[build] ...). - Callback events are persisted to
.abstack/logs/abstack-cli.log. - Wait-heavy non-interactive external commands show a spinner by default.
- Set
ABSTACK_NO_SPINNER=1to disable spinner output.
Backward-compatible mode:
abstack <file.abs> [build-options]
Equivalent to:
abstack build <file.abs> [build-options]
abstack build <file.abs> [--out-dir <dir>] [--compose-file <file>]
[--service-regex <pattern>] [--clean] [--dry-run]
[--stdlib-profile <name>] [--list-stdlib-profiles]
Options:
--out-dir <dir>: output directory (generatedby default).--compose-file <file>: custom compose output path.--service-regex <pattern>: include only matching services.--clean: remove stale generated artifacts before writing.--dry-run: print compose output and skip file writes.--stdlib-profile <name>: link bundled stdlib templates before validation/lowering.--list-stdlib-profiles: print available profiles and exit.
Exit behavior:
0on success.- non-zero on parse/semantic/lowering/emission errors.
abstack sync --input-dir <dir> [--file-regex <pattern>]
[--service-regex <pattern>] [--out-dir <dir>]
[--compose-file <file>] [--clean]
[--stdlib-profile <name>] [--list-stdlib-profiles]
Options:
--input-dir <dir>: required recursive source root.--file-regex <pattern>: source file matcher (default.*\\.abs$).--service-regex <pattern>: service selector.--out-dir <dir>: output directory.--compose-file <file>: custom compose output path.--clean: remove stale generated artifacts before writing.--stdlib-profile <name>: link bundled stdlib templates before validation/lowering.--list-stdlib-profiles: print available profiles and exit.
Behavior:
- Merges all selected
.absfiles into one plan. - Namespaces template/service IDs by source file.
- Remaps in-file dependencies to namespaced IDs.
abstack fmt <file-or-dir> [--file-regex <pattern>] [--check] [--stdout]
Options:
--file-regex <pattern>: directory mode selector (default.*\\.abs$).--check: report drift and return non-zero if formatting is needed.--stdout: print formatted output (single-file mode only).
Exit behavior:
0when formatting is clean/successful.1for--checkwhen at least one file needs formatting.- non-zero on parse errors or invalid options.
abstack compose [--abs <file.abs> | --input-dir <dir>] [sync/build options]
[--compose-file <file>] [--stdlib-profile <name>]
[--list-stdlib-profiles] -- <docker compose args...>
Generation options:
--abs <file.abs>: generate from one file first.--input-dir <dir>+ sync options: generate from many files first.--file-regex <pattern>--service-regex <pattern>--out-dir <dir>--compose-file <file>--clean--stdlib-profile <name>--list-stdlib-profiles
Important:
--separator is required before compose arguments.- If generation flags are omitted, compose file must already exist.
--stdlib-profilerequires--absor--input-dir.
abstack docker <subcommand> [options]
abstack docker ls [--all] [--filter <regex>] [--watch <seconds>]
Options:
--all: include stopped containers.--filter <regex>: regex on ID/name/image/status.--watch <seconds>: refresh table continuously.
abstack docker inspect <container>
abstack docker logs <container> [--tail <lines>] [--follow]
Options:
--tail <lines>: default200.--follow: stream logs.
abstack docker shell <container> [--shell <command>] [--user <user>]
Options:
--shell <command>: defaultsh.--user <user>: run command as specified user.
abstack docker stats [--all]
abstack stdlib [list]
Behavior:
- Prints bundled stdlib profiles and descriptions.
- Equivalent profile listing is also available through
--list-stdlib-profileson build/sync/compose.
abstack tui
Requirements:
- Binary must be built with curses support.
- If not available, command exits with a clear error message.
Invalid regex: check escaping/anchors in--file-regexand--service-regex.No services matched selection criteria: widen service regex or inspect namespacing.Compose file not found: runbuild/sync, or pass explicit--compose-file.- Docker daemon permission errors: ensure Docker socket/daemon access for current user.
Unknown stdlib profile: runabstack stdlib list.- Inspect callback traces:
.abstack/logs/abstack-cli.log.