Warlocks learn Inferno, the spell that summons an Infernal, from a level 50 chain in Felwood. Here is every step, the Kroshius fight and the Shard of the Green Flame.
Warlocks in World of Warcraft: Forever learn Inferno, the spell that calls down an Infernal, from a level 50 chain in Felwood. The last quest also rewards the Shard of the Green Flame.
The chain starts with Niby the Almighty and his imp Impsy, and ends with a fight against the elite infernal Kroshius. Here are the steps at a glance:

| Step | Quest | Starts At | What To Do |
|---|---|---|---|
| 1 | What Niby Commands | Niby the Almighty | Speak with Impsy |
| 2 | Flawless Fel Essence | Impsy | Bring 3 essences from Azshara, Felwood and the Blasted Lands |
| 3 | Kroshius' Infernal Core (elite) | Impsy | Defeat Kroshius: Inferno, Shard of the Green Flame |
Find Niby the Almighty near Bloodvenom Falls in Felwood. "What Niby Commands" simply sends you to his imp, Impsy, who waits nearby:

Impsy does most of the talking in this chain, so keep the pair in mind for the later Sunken Temple quest too.
For "Flawless Fel Essence", Impsy wants three Flawless Fel Essences, one from each of three different demon types:

Bring all three back to Impsy for the last quest.
Impsy gives you "Kroshius' Infernal Core" and a Fel Fire. Kroshius lies in a heap to the northeast, in the Shatter Scar Vale. Use the Fel Fire on his remains to bring the fallen infernal back to life.
Impsy fully expects Kroshius to kill you and any friends you bring along, and the quest text means it. Kroshius is a level 55 elite, so this is a group fight for most Warlocks at level 50.
Defeat Kroshius, take his infernal core and bring it to Niby. You learn Inferno and receive the Shard of the Green Flame, an off-hand with +12 Stamina and up to 16 Fire spell damage:

Inferno summons a meteor that deals 200 Fire damage and stuns every enemy in the area for 2 seconds. An Infernal then rises from the crater and fights for you for 5 minutes. The spell is a 2 second cast with a 30 yard range and a 1 hour cooldown, and it needs an Infernal Stone as a reagent. It can only be used outdoors, so it does not work inside most dungeons.
Note: Once your control over the Infernal ends, you have to use Subjugate Demon on it to keep it, or it turns on whoever is nearby. Time it so the fight is over before the 5 minutes run out, or keep a Soul Shard ready.
At level 60, the last demon is the Doomguard, see How To Get The Doomguard As Warlock. The Felwood pair also starts the Sunken Temple Warlock quest, see Trolls Of A Feather Quest Guide.