Netlify CLI logs command
Stream logs from your project
Usage
netlify logsFlags
filter(string) - For monorepos, specify the name of the application to run the command indebug(boolean) - Print debugging informationauth(string) - Netlify auth token - can be used to run this command without logging in
| Subcommand | description |
|---|---|
logs:deploy | Stream the logs of deploys currently being built to the console |
logs:function | Stream netlify function logs to the console |
Examples
netlify logs:deploynetlify logs:functionnetlify logs:function my-functionlogs:deploy
Section titled “logs:deploy”Stream the logs of deploys currently being built to the console
Usage
netlify logs:deployFlags
filter(string) - For monorepos, specify the name of the application to run the command indebug(boolean) - Print debugging informationauth(string) - Netlify auth token - can be used to run this command without logging in
logs:function
Section titled “logs:function”Stream netlify function logs to the console
Usage
netlify logs:functionArguments
- functionName - Name of the function to stream logs for
Flags
filter(string) - For monorepos, specify the name of the application to run the command inlevel(string) - Log levels to stream. Choices are: trace, debug, info, warn, error, fataldebug(boolean) - Print debugging informationauth(string) - Netlify auth token - can be used to run this command without logging in
Examples
netlify logs:functionnetlify logs:function my-functionnetlify logs:function my-function -l info warn