The exportschema subcommand, part of the cqload command line utility, exports an entire schema to a text file. You can then use the importschema subcommand to import the schema into another schema repository.
To export a partial schema, use the exportintegration subcommand.