It isnot work to how to install API of blockstack-core

$ blockstack setup_wallet
$ blockstack api start

where is blockstack cmd?

It sounds like you’re trying to use the blockstack-core binary -

the api is more for use with nginx, so you can make http(s) requests to the blockstack-core server via proxy.

$ blockstack setup_wallet

blockstack: command not found