# fresh-cli

> Remove and reinstall your dependencies.

Latest version **1.1.2** (published 2019-01-04) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install fresh-cli
pnpm add fresh-cli
yarn add fresh-cli
bun add fresh-cli
```

Provides the command `fresh`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2019-01-04 |
| First published | 2017-07-19 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 4 |
| Unpacked size | 20.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Seth Holladay |
| Maintainers | sholladay |
| Keywords | cli-app, cli, rm, remove, clean, delete, install, reinstall, latest, node-modules, modules, deps, dependency, dependencies, package-lock, lockfile, safe, reliable, deterministic, reproducible |

## Links

- npm: https://www.npmjs.com/package/fresh-cli
- Repository: https://github.com/sholladay/fresh-cli
- Issues: https://github.com/sholladay/fresh-cli/issues
- npm.io page: https://npm.io/package/fresh-cli

## Dependencies (4)

- [del](https://npm.io/package/del.md) ^3.0.0
- [ora](https://npm.io/package/ora.md) ^1.3.0
- [meow](https://npm.io/package/meow.md) ^3.7.0
- [pkg-dir](https://npm.io/package/pkg-dir.md) ^2.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2019-01-04
- 1.1.1 — 2017-07-23
- 1.1.0 — 2017-07-19
- 1.0.0 — 2017-07-19

## README

# fresh-cli [![Build status for Fresh CLI](https://img.shields.io/circleci/project/sholladay/fresh-cli/master.svg "Build Status")](https://circleci.com/gh/sholladay/fresh-cli "Builds") [![Build status for Fresh CLI on Windows](https://ci.appveyor.com/api/projects/status/ll2n2qydyaeygiju/branch/master?svg=true "Windows Build Status")](https://ci.appveyor.com/project/sholladay/fresh-cli "Windows Builds")

> Remove and reinstall your dependencies.

## Why?

 - Cross-platform support.
 - Works from any directory.
 - More reliable than `npm update`.
 - Includes nested dependencies, too.
 - Quick to type and easy to use.
 - Removes safely (cannot `rm -rf /`).

[npm](https://github.com/npm/npm) does a much better job creating a dependency tree from scratch than modifying an existing one without breaking anything. By reinstalling `node_modules`, you put yourself in a more well-known, consistent state.

This project works around many bugs:

 - [sindresorhus/find-up#16](https://github.com/sindresorhus/find-up/issues/16)
 - [npm/npm#17805](https://github.com/npm/npm/issues/17805)

Please add your own bugs to the list!

## Install

```sh
npm install fresh-cli --global
```

## Usage

```console
$ fresh --help

  Usage
    $ fresh [cwd]

  Example
    $ fresh
    $ fresh my-project
```

## Contributing

See our [contributing guidelines](https://github.com/sholladay/fresh-cli/blob/master/CONTRIBUTING.md "The guidelines for participating in this project.") for more details.

1. [Fork it](https://github.com/sholladay/fresh-cli/fork).
2. Make a feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. [Submit a pull request](https://github.com/sholladay/fresh-cli/compare "Submit code to this project for review.").

## License

[MPL-2.0](https://github.com/sholladay/fresh-cli/blob/master/LICENSE "The license for fresh-cli.") © [Seth Holladay](https://seth-holladay.com "Author of fresh-cli.")

Go make something, dang it.

---
_Source: https://npm.io/package/fresh-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
