Skip to content

Commit e91051e

Browse files
biruwonkhendrikse
andauthored
fix: functions:build example (#5618)
* Fix for functions:build example I was creating a plugin and running the example command is not working as `timeout` and `name` does not exist for the functions:build command * chore: update docs --------- Co-authored-by: Karin Hendrikse <30577427+khendrikse@users.noreply.github.com>
1 parent 8ae1456 commit e91051e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/commands/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ netlify functions
3434

3535
```bash
3636
netlify functions:create --name function-xyz
37-
netlify functions:build --name function-abc --timeout 30s
37+
netlify functions:build --functions build/to/directory --src source/directory
3838
```
3939

4040
---

src/commands/functions/functions.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The ${name} command will help you manage the functions in this site`,
3939
)
4040
.addExamples([
4141
'netlify functions:create --name function-xyz',
42-
'netlify functions:build --name function-abc --timeout 30s',
42+
'netlify functions:build --functions build/to/directory --src source/directory',
4343
])
4444
.action(functions)
4545
}

0 commit comments

Comments
 (0)