gem build <GEMSPEC_FILE>

Build a gem from a gemspec

Arguments

NameDescription
GEMSPEC_FILEGemspec file name to build a gem for

Options

NameDescription
--platform <PLATFORM>Specify the platform of gem to build
--forceSkip validation of the spec
--strictConsider warnings as errors when validating the spec
-o, --output <FILE>Output gem with the given filename
-C <PATH>Run as if gem build was started in <PATH> instead of the current working directory