Is it really inflation or higher prices due to higher than normal demand? When the demand goes up the market clearing prices naturally increase (until more efficient suppliers join the game)
A shift of both demand and supply, resulting in increased prices, is one way inflation can happen.
What is important in CPI inflation are the prices consumers pay.
How that fits into bigger picture money supply * money velocity is a different conversation