Is it possible to analyze the blockchain through some command line?
If you want to analyze the blockchain, you need to have the
txindex flag set. Otherwise you won't be able to query transactions not related to your wallet.
Further, the preferred software depends on your specific task and on what exactly you want to analyze.