`dum <npm_script|bin_script> [...args_to_forward]`: Run npm scripts or scripts in `node_modules/.bin`, like `yarn run`, `npm run`, `npx.
47
+
48
+
If you want to pass flags to `dum` itself, like the `-c` flag to change directory, you should put it before the script name, like `dum -c another/directory script_name --forward some_flag`.
49
+
50
+
Examples:
51
+
46
52
```bash
47
53
dum some-npm-script
48
54
skipped 1 lines
50
56
# Like npx, but mush faster
51
57
dum some-npm-package-cli-name --flags will --be forwarded
52
58
53
-
# Run `npm i` or `yarn` or `pnpm i` depending on the project
54
-
dum install # or `dum i`
55
-
# Like above but add packages
56
-
dum add react vue -D
57
-
58
59
# Change working directory
59
60
dum -c packages/sub-package build
60
61
61
62
# More
62
63
dum --help
64
+
```
65
+
66
+
### Install Packages
67
+
68
+
Dum is not a package manager yet, but we forward `install`, `add`, `remove` commands to npm, pnpm and yarn automatically:
69
+
70
+
```bash
71
+
# Run `npm i` or `yarn` or `pnpm i` depending on the project