Proposition 2
Tag 09WW, permanent. Cite it as [Bourbaki, Tag 09WW].
Lie Groups and Lie Algebras, chapter I, § 4. Nilpotent Lie algebras
Subalgebras, quotient algebras and central extensions of a nilpotent Lie algebra are nilpotent. A finite product of nilpotent Lie algebras is a nilpotent Lie algebra. Let be a Lie algebra, a subalgebra of , an ideal of , and the canonical mapping of onto . If is nilpotent, then for some integer , hence and and hence and are nilpotent. If is nilpotent and is contained in the centre of , then for some integer , hence and therefore , so that is nilpotent. Finally, the assertion concerning products follows for example from the assertion (a) (d) of Proposition 1.
Definition 1 and Proposition 2 show that nilpotent Lie algebras are precisely the algebras obtained from commutative Lie algebras by a sequence of central extensions.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.