Preheat oven to 375°F (190°C).
In a skillet, cook onion and garlic until soft. Add beans or tofu, cumin, and salt. Cook for 5–7 minutes.
Warm tortillas in a dry pan for 20–30 seconds per side to prevent cracking.
Spread a thin layer of green sauce on the bottom of a baking dish.
Add 2–3 tablespoons filling to each tortilla, roll tightly, and place seam-side down in the dish.
Pour remaining sauce evenly over the enchiladas.
Sprinkle vegan cheese on top if using.
Bake for 20–25 minutes until sauce is bubbling and cheese is melted.
Let rest for 5 minutes before serving.
Optional: Blend jalapeño sauce ingredients until smooth and drizzle on top.