Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/commands/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,29 @@

**Arguments**

- functionName - Name of the function to stream logs for
- functionNames - Names of the functions to stream logs for

Check warning on line 68 in docs/commands/logs.md

View workflow job for this annotation

GitHub Actions / lint-docs

[vale] reported by reviewdog 🐶 [base.spelling] Spellcheck: did you really mean 'functionNames'? Raw Output: {"message": "[base.spelling] Spellcheck: did you really mean 'functionNames'?", "location": {"path": "docs/commands/logs.md", "range": {"start": {"line": 68, "column": 3}}}, "severity": "WARNING"}

**Flags**

- `filter` (*string*) - For monorepos, specify the name of the application to run the command in
- `level` (*string*) - Log levels to stream. Choices are: trace, debug, info, warn, error, fatal
- `since` (*string*) - Start of the historical log window. Accepts a duration (e.g. 10m, 1h, 24h, 2d) or an ISO 8601 timestamp
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[total nitpick] aren't from and to more standard option names than since/until?

- `url` (*string*) - Show logs for the deploy behind the given URL. Supports deploy permalinks and branch subdomains
- `debug` (*boolean*) - Print debugging information
- `auth` (*string*) - Netlify auth token - can be used to run this command without logging in
- `until` (*string*) - End of the historical log window. Accepts a duration or an ISO 8601 timestamp (defaults to now)

**Examples**

```bash
netlify logs:function
netlify logs:function my-function
netlify logs:function my-function other-function
netlify logs:function my-function -l info warn
netlify logs:function my-function --since 1h
netlify logs:function my-function --since 24h
netlify logs:function my-function --since 2026-04-14T00:00:00Z --until 2026-04-15T00:00:00Z
netlify logs:function --url https://my-branch--my-site.netlify.app --since 30m
```

---
Expand Down
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
"p-map": "7.0.3",
"p-wait-for": "6.0.0",
"parallel-transform": "1.2.0",
"parse-duration": "^2.1.6",
"parse-github-url": "1.0.3",
"pg": "8.20.0",
"prettyjson": "1.2.5",
Expand Down
26 changes: 26 additions & 0 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading