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.
1. CLI Subcommands (18 Total)
| Subcommand | Description & Key Flags |
|---|---|
fastci run | Execute 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 init | Generate a starter fastci.json in the current directory. |
fastci validate | Validate manifest syntax, limits, and DAG acyclicity (-f fastci.json). |
fastci plan | Print topological execution order, matrix expansions, and critical-path weights. |
fastci wrap | Wrap any compiler/linker invocation with direct-mode caching (fastci wrap -- gcc -c a.c -o a.o). |
fastci cc | Alias for compiler-cache wrapper mode (fastci cc gcc ...). |
fastci stats | Display compiler/link cache hit rate, direct-mode hits, misses, and bypass reasons. |
fastci cache | Manage local CAS: cache stats [--json], cache gc [--max-size-mb N], cache clean. |
fastci remote-serve | Run self-hosted HTTP/1.1 keep-alive Remote CAS server (--listen, --dir, --token, --max-size-gb). |
fastci dist-serve | Run distributed compilation coordinator (--listen, --token). |
fastci dist-worker | Run sandboxed distributed compilation worker (--scheduler, --token, --toolchain, --slots, --sandbox bwrap|none). |
fastci doctor | Inspect OS, CPU SIMD flags (AVX2/SSE4.2/NEON), Fil-C status, and cache health (--json). |
fastci deps | Run the 10-language SIMD dependency scanner on entry files (--lang, -I <dir>). |
fastci hash | Compute BLAKE3-256 hex digest of files or stdin. |
fastci pack | Compress files/directories into streaming slibz (.slz) archive. |
fastci unpack | Decompress a .slz archive to a target directory. |
fastci emit-gha | Generate a GitHub Actions workflow wired with FastCi from fastci.json. |
fastci bench / version | Run built-in BLAKE3/SIMD micro-benchmarks (bench) or print version & build info (version). |
2. Environment Variables (FASTCI_*)
| Variable | Default | Effect |
|---|---|---|
FASTCI_CACHE_DIR | .fastci-cache | Override local CAS storage directory. |
FASTCI_VERIFY_INPUTS | fast | Override input verification mode: fast | sample | strict. |
FASTCI_PP_CACHE | 0 | Set 1 to cache preprocessed output on direct-mode misses (helpful on Windows/MSVC). |
FASTCI_DISABLE | 0 | Set 1 to bypass caching and pass compiler/linker commands straight through. |
FASTCI_REMOTE_CACHE | Unset | Remote CAS base URL (http:// or https://). |
FASTCI_REMOTE_TOKEN | Unset | Bearer authentication token for Remote CAS. |
FASTCI_REMOTE_READ_ONLY | 0 | Set 1 to disable Remote CAS uploads (mandatory on untrusted PRs). |
FASTCI_DIST_URL | Unset | Distributed compilation coordinator URL. |
FASTCI_DIST_TOKEN | Unset | Bearer token for distributed compilation requests. |
FASTCI_DIST_LOCAL_FALLBACK | 1 | Fallback transparently to local compiler if remote worker fails. |
FASTCI_VERBOSE | 0 | Set 1 for detailed cache key / bypass diagnostics on stderr. |
3. GitHub Action Inputs (seregonwar/FastCi@v0.3.0)
| Input | Default | Description |
|---|---|---|
version | latest | FastCi release tag to install (e.g. v0.3.0). |
variant | native | native or filc (Linux x86_64 memory-safe Fil-C build). |
cache-dir | .fastci-cache | Path persisted with actions/cache@v4. |
cache-key-prefix | fastci | Prefix for GitHub Actions cache keys. |
verify-inputs | sample | Sets FASTCI_VERIFY_INPUTS for all subsequent steps. |
enable-cmake-launcher | false | Exports CMAKE_C/CXX_COMPILER_LAUNCHER=fastci and linker launchers. |
enable-rustc-wrapper | false | Exports RUSTC_WRAPPER=fastci for Cargo builds. |
remote-cache | "" | Sets FASTCI_REMOTE_CACHE. |
remote-read-only | Auto on PRs | Sets FASTCI_REMOTE_READ_ONLY (defaults to read-only on untrusted PRs). |