[RFR] Introduce rebuld argument

- [x] Add a `rebuild` command parameter
- [x] Update tests
- [x] Update doc