netlify / netlify/cli

Add a `netlify clean` command

Open
#2,964 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area: command: build area: command: deploy area: command: dev area: dx type: feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.