profile
viewpoint

Ask questionsAdd a `netlify clean` command

Is your feature request related to a problem? Please describe.

In development I often need to clean the cache, and it's annoying having to do this manually.

Describe the solution you'd like

A netlify clean command that clears the Nelify cache, as well as (possibly optionally) the publish directory. Better still would be a way for frameworks to declare their own clean commands too in framework-info.

Describe alternatives you've considered

Doing it manually

Can you submit a pull request?

Yes

netlify/cli

Answer questions ascorbic

what do you mean by Netlify cache? Is it everything under <project-dir>/.netlify except the state.json file?

@erezrokah Yes, exactly that.

I think it's simplest to just have 1. Clears .netlify cache by default, and runs framework-specific clean commands if implemented, and/or a command in the toml

useful!
source:https://uonfu.com/
answerer
Matt Kane ascorbic @VelaLabs @netlify UK mk.gg Principal engineer @netlify
Github User Rank List