Where is the «magento» command line program located?

It is located in the bin subfolder:
So, if you have set the Magento 2 root directory as the current working directory for your command line interpeter (Bash, for example), then you should call the magento command as bin/magento.

An example:

bin/magento indexer:info