rbenv change ruby version code example Example 1: rbenv switch ruby version rbenv global 2.6.6 Example 2: install rbenv brew install rbenv ruby-build