CLI & Environment Variables Reference

All 18 subcommands, global options, FASTCI_* environment variables, and GitHub Action parameters verified directly against src/main.c and action.yml.

View llms-full.txt JSON Schema

1. CLI Subcommands (18 Total)

SubcommandDescription & Key Flags
fastci runExecute DAG pipeline. Flags: -f <file>, -j <workers>, -c <cache_dir>, --dry-run, --no-cache, --keep-going, --verify <fast|sample|strict>, --trace <file>, --report <file>, --target <id>, --remote <url>, --remote-ro.
fastci initGenerate a starter fastci.json in the current directory.
fastci validateValidate manifest syntax, limits, and DAG acyclicity (-f fastci.json).
fastci planPrint topological execution order, matrix expansions, and critical-path weights.
fastci wrapWrap any compiler/linker invocation with direct-mode caching (fastci wrap -- gcc -c a.c -o a.o).
fastci ccAlias for compiler-cache wrapper mode (fastci cc gcc ...).
fastci statsDisplay compiler/link cache hit rate, direct-mode hits, misses, and bypass reasons.
fastci cacheManage local CAS: cache stats [--json], cache gc [--max-size-mb N], cache clean.
fastci remote-serveRun self-hosted HTTP/1.1 keep-alive Remote CAS server (--listen, --dir, --token, --max-size-gb).
fastci dist-serveRun distributed compilation coordinator (--listen, --token).
fastci dist-workerRun sandboxed distributed compilation worker (--scheduler, --token, --toolchain, --slots, --sandbox bwrap|none).
fastci doctorInspect OS, CPU SIMD flags (AVX2/SSE4.2/NEON), Fil-C status, and cache health (--json).
fastci depsRun the 10-language SIMD dependency scanner on entry files (--lang, -I <dir>).
fastci hashCompute BLAKE3-256 hex digest of files or stdin.
fastci packCompress files/directories into streaming slibz (.slz) archive.
fastci unpackDecompress a .slz archive to a target directory.
fastci emit-ghaGenerate a GitHub Actions workflow wired with FastCi from fastci.json.
fastci bench / versionRun built-in BLAKE3/SIMD micro-benchmarks (bench) or print version & build info (version).

2. Environment Variables (FASTCI_*)

VariableDefaultEffect
FASTCI_CACHE_DIR.fastci-cacheOverride local CAS storage directory.
FASTCI_VERIFY_INPUTSfastOverride input verification mode: fast | sample | strict.
FASTCI_PP_CACHE0Set 1 to cache preprocessed output on direct-mode misses (helpful on Windows/MSVC).
FASTCI_DISABLE0Set 1 to bypass caching and pass compiler/linker commands straight through.
FASTCI_REMOTE_CACHEUnsetRemote CAS base URL (http:// or https://).
FASTCI_REMOTE_TOKENUnsetBearer authentication token for Remote CAS.
FASTCI_REMOTE_READ_ONLY0Set 1 to disable Remote CAS uploads (mandatory on untrusted PRs).
FASTCI_DIST_URLUnsetDistributed compilation coordinator URL.
FASTCI_DIST_TOKENUnsetBearer token for distributed compilation requests.
FASTCI_DIST_LOCAL_FALLBACK1Fallback transparently to local compiler if remote worker fails.
FASTCI_VERBOSE0Set 1 for detailed cache key / bypass diagnostics on stderr.

3. GitHub Action Inputs (seregonwar/FastCi@v0.3.0)

InputDefaultDescription
versionlatestFastCi release tag to install (e.g. v0.3.0).
variantnativenative or filc (Linux x86_64 memory-safe Fil-C build).
cache-dir.fastci-cachePath persisted with actions/cache@v4.
cache-key-prefixfastciPrefix for GitHub Actions cache keys.
verify-inputssampleSets FASTCI_VERIFY_INPUTS for all subsequent steps.
enable-cmake-launcherfalseExports CMAKE_C/CXX_COMPILER_LAUNCHER=fastci and linker launchers.
enable-rustc-wrapperfalseExports RUSTC_WRAPPER=fastci for Cargo builds.
remote-cache""Sets FASTCI_REMOTE_CACHE.
remote-read-onlyAuto on PRsSets FASTCI_REMOTE_READ_ONLY (defaults to read-only on untrusted PRs).