CmdID / aws / aws cloudfront
aws cloudfront publish-function
Publishes a CloudFront function by copying the function code from the DEVELOPMENT stage to LIVE. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--if-matchThe current version (ETag value) of the function that you are publishing, which you can get using DescribeFunction.--nameThe name of the function that you are publishing.