It is called centrally-planned economy or command economy
A command economy, also known as a centrally planned economy, is an economic system where the government regulates supply and pricing, owning and controlling the production of goods and services. Decisions on production, pricing, and distribution are centrally managed to meet the needs of the population. This system contrasts with a market economy, where individual choices drive economic decisions.
;