Netlify CLI logs command
View logs from your project
Usage
netlify logsFlags
edge-function(string) - Filter to specific edge functions by name or pathfilter(string) - For monorepos, specify the name of the application to run the command infollow(boolean) - Stream logs in real time instead of showing historical logsfunction(string) - Filter to specific functions by namejson(boolean) - Output logs as JSON Lineslevel(string) - Log levels to include. Choices are: trace, debug, info, warn, error, fatalsince(string) - Start of the historical log window. Accepts a duration (e.g. 10m, 1h, 24h) or an ISO 8601 timestamp. Defaults to 10msource(functions | edge-functions | deploy) - Log sources to include. Defaults to functions and edge-functionsuntil(string) - End of the historical log window. Accepts a duration or an ISO 8601 timestamp (defaults to now)url(string) - Show logs for the deploy behind the given URL. Supports deploy permalinks and branch subdomainsdebug(boolean) - Print debugging informationauth(string) - Netlify auth token - can be used to run this command without logging in
Examples
netlify logsnetlify logs --since 1hnetlify logs --source functions --function checkout --since 24hnetlify logs --source edge-functions --since 30mnetlify logs --source deploy --source functions --since 1hnetlify logs --follownetlify logs --follow --source functions --source edge-functionsnetlify logs --json --since 1hnetlify logs --url https://my-branch--my-site.netlify.app --since 1h