function-spec doesnt produce full output when piped

Author: xixixaoCreated May 1, 2026Updated Sep 20, 2026

Might be a recent bug, or our output just grew past some limit.

bash
npx convex function-spec | tail -n 1000

shows truncated output, while

bash
npx convex function-spec > test.json; cat test.json

shows full output (so redirection to file works).

I also find the API weird, --file outputs to some file and prints its name. It should take a file name in instead (and can keep the current behavior if not provided).

Source: get-convex/convex-backend