Go to fastlane.tools (put fastlane.tools in your browser) and follow the installation guide. We won't repeat the steps here because fastlane is still in active development, and the probability that the installation process changes before this book is published is very high.