fix(functions): support `--all` flag to download all functions by Rooffeell · Pull Request #5005 · supabase/cli

@Rooffeell

Previously, the command would download all functions when no argument was provided, which could be unexpected. Now, it requires the `--all` flag for that behavior and returns an error if no function name is given without the flag.
The validation that required a function name unless --all flag was used is unnecessary because the command already accepts zero or one argument. Removing this validation aligns with the updated command description that allows downloading all functions when no name is provided.
The slug argument was being incorrectly set from args even when the
downloadAll flag was true, causing unexpected behavior. This ensures
the slug remains empty when downloading all functions.

@Rooffeell Rooffeell changed the title fix(functions): require explicit flag to download all functions fix(functions): support --all flag to download all functions

Mar 28, 2026