I have bled the master cylinder after replacement by filling resivoir about 2/3 and repeadedly lightly squeezing and releasing clutch lever. Be sure and use protection of the bike from errant drips of fluid.
If the small bleed hole at bottom of resivoir isn't clogged, and haandlebars positioned to make banjo end highest, a tiny air bubble will exit every time the lever is released.
Keep squeezing and releasing over and over, maybe 100 or more times until no bubbles come out.
Takes some patience but works great if there's no air in the rest of the system.