One English rule is to hyphenate two or more words when they come before a noun they modify and act as a single idea, called a compound adjective. This is the most common use of the hyphen I've seen. For example:
A non-cloud platform
Some cloud-based platforms
What happens when there are three adjectives before a noun? Should I hyphenate all three? This example looks awful, but maybe that's because it's joining two compound adjectives that we usually see by themselves:
Non-cloud-based platform
That compound adjective would look better without the two hyphens.
For most groups of three or more hyphenated words, they tend to form expressions that behave like compound adjectives, e.g. up-to-date, hit-or-miss, trial-and-error, etc. but they would also look alright as phrases by themselves. The three-word compound adjective in my example doesn't fall into that category.