diff --git a/docs/commands/functions.md b/docs/commands/functions.md index 66fb53a976a..98679425a06 100644 --- a/docs/commands/functions.md +++ b/docs/commands/functions.md @@ -34,7 +34,7 @@ netlify functions ```bash netlify functions:create --name function-xyz -netlify functions:build --name function-abc --timeout 30s +netlify functions:build --functions build/to/directory --src source/directory ``` --- diff --git a/src/commands/functions/functions.mjs b/src/commands/functions/functions.mjs index 9d67555285e..9d40545b4f6 100644 --- a/src/commands/functions/functions.mjs +++ b/src/commands/functions/functions.mjs @@ -39,7 +39,7 @@ The ${name} command will help you manage the functions in this site`, ) .addExamples([ 'netlify functions:create --name function-xyz', - 'netlify functions:build --name function-abc --timeout 30s', + 'netlify functions:build --functions build/to/directory --src source/directory', ]) .action(functions) }