Skip to main content

bud clean

$ bud clean --help
Clean project artifacts and caches

━━━ Usage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

$ bud clean

━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

--basedir,--cwd #0 Set project base directory
--clean Clean artifacts and distributables prior to compilation
--color Colorize output
--debug Enable debug mode
--dry Run in dry mode
--filter #0 Limit command to particular bud instances
--ignore-errors,--ignoreErrors Ignore errors
--input,-i,--@src,--src #0 Source directory (relative to project)
--log Enable logging
--mode #0 Compilation mode
--output,-o,--@dist,--dist #0 Distribution directory (relative to project)
--notify Enable notification (default on macOS, experimental on other platforms)
--publicPath #0 Public path to serve assets from
--silent,-s silence stdout
--storage #0 Storage directory (relative to project)
--use #0 Enable an extension
--verbose Log verbose output
@cache,cache empty @cache
@dist,dist,output empty @dist
@storage,storage empty @storage

━━━ Details ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

`bud clean` empties the `@dist` and `@storage` directories. `bud clean @dist`
empties the `@dist` directory. `bud clean @storage` empties the `@storage`
directory. `bud clean cache` empties the `@storage/cache` directory.

━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Clean all
$ bud clean

Clean dist
$ bud clean output

Clean storage
$ bud clean storage