Thinly slice 2 cups of mushrooms. In the meantime, preheat the air fryer for 5 minutes at 390°F (200°C).
Add 3 tbsp garlic flakes to the mushrooms. Season with 1 tsp salt, 1 tsp black pepper, 2 tbsp olive oil, and rosemary sprigs. Cook them in the air fryer for 5 minutes at 390°F (200°C).
Add ½ cup shredded cheese to mushrooms and cook for another minute. Apply cream cheese onto both halves of the baguette. Put cooked mushrooms on both sides of the baguette. Season with 1 tsp chili flakes.