There are a few different ways that coffee beans can be procured. The most common method is through commercial farms, which grow and harvest coffee beans on a large scale. These farms typically sell their coffee beans to distributors, who then in turn sell the beans to retailers. Retailers may either roast the beans themselves or sell them pre-roasted.
Another way to get coffee beans is through home roasting. This involves buying green (unroasted) coffee beans and roasting them at home in small batches. Home roasters can buy their green coffee beans from online retailers or specialty stores. Some people also choose to grow their own coffee trees and process the beans themselves; however, this is much less common than the other methods mentioned above.