You can do it with engine off, I like to take the check valve off the master to make the pedal easier while doing it.
Some may not agree with me but that's how I do it after bench bleeding the master.
Ron