cli icon indicating copy to clipboard operation
cli copied to clipboard

Stream back deploy & function logs

Open DavidWells opened this issue 6 years ago • 3 comments

Add ability for user to see deploy logs in CLI. Also the ability for user to see function logs in the CLI (potentially separate issue)

We could stream back deploy logs on netlify watch and netlify deploy

Notes:

If this requires adding leaking firebase client into the CLI, we should put this feature off until a bespoke logs API is usable via https://open-api.netlify.com/#/default

Fallback potentially looks like: https://github.com/netlify/cli/issues/70 ?

Future/potential alt API:

Potentially a master netlify logs command

DavidWells avatar Sep 19 '18 20:09 DavidWells

This functionality was initially implemented in https://github.com/netlify/cli/pull/762 but later reverted because of NodeJS compatibility issues. I'm think maybe we can precompile incompatible code and include that. Opening again to investigate further.

RaeesBhatti avatar May 08 '20 09:05 RaeesBhatti

@RaeesBhatti That would be an amazing feature (that competition already has implemented), would be nice to give it a second shot I think 😃

Jolg42 avatar Oct 01 '21 08:10 Jolg42

I would love to see this!

whitep4nth3r avatar Mar 07 '22 10:03 whitep4nth3r

This has been added in [email protected] 🎉

  • netlify logs:deploy to have an interactive selector for currently active builds
  • netlify logs:functions to have an interactive selector for all functions on a site
  • netlify logs:functions my-function-name to instantly stream the logs for a given function, in this case my-function-name

sarahetter avatar Nov 17 '23 13:11 sarahetter