Add a `netlify clean` command
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 474
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 53
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by tracing existing Netlify CLI command entry points and reviewing how framework-info could declare commands; clarify whether cache clearing and publish-directory removal are separate options, then define completion criteria and tests for the selected scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100