az bicep publish
Publish a bicep file to a remote module registry. Azure CLI reference
4 options Its page in the Azure CLI reference
Options
--documentation-uri, --documentationUri, --target--file, -fThe path to the Bicep module file to publish in the file system.--forceAllow overwriting an existing Bicep module version.--with-sourcePublish source code with the module.