Looks like you're the one whose military knowledge is lacking. Your oath was to defend the Constitution first, and obey the CiC second. Remember that? Obviously not (or you're one of those who remembers only what suits your purpose when it happens to suit your purpose).
Since the CiC has acted outside the Constitution, he should according to your oath be arrested and tried. Ideally at Gitmo.
You are being intellectually dishonest. Here is the oath:
"I, _____, do solemnly swear (or affirm) that I will support and defend the Constitution of the United States against all enemies, foreign and domestic; that I will bear true faith and allegiance to the same; and that I will obey the orders of the President of the United States and the orders of the officers appointed over me, according to regulations and the Uniform Code of Military Justice. So help me God." (Title 10, US Code; Act of 5 May 1960 replacing the wording first adopted in 1789, with amendment effective 5 October 1962).
Nowhere in that oath appears the context you have attempted to interject into it. That swearing to support and defend the Consitution APPEARS before following the orders of the President sets some sort of echelon of precedence is just pure BS.
Regardless, it is irrelevant since the President has not ordered the military to do anything that is unconstitutional. But you can trot out your accusation if it makes you happy. I haven't had target practice in awhile.