def METHOD_NAME(
    self,
    base="sam",
    s3_bucket=None,
    template_file=None,
    s3_prefix=None,
    output_template_file=None,
    use_json=False,
    force_upload=False,
    kms_key_id=None,
    metadata=None,
):
    command_list = self.base_command(base=base)
    command_list = command_list + ["package"]
    if s3_bucket:
        command_list = command_list + ["--s3-bucket", str(s3_bucket)]
    if template_file:
        command_list = command_list + ["--template-file", str(template_file)]
    if s3_prefix:
        command_list = command_list + ["--s3-prefix", str(s3_prefix)]
    if output_template_file:
        command_list = command_list + ["--output-template-file", str(output_template_file)]
    if kms_key_id:
        command_list = command_list + ["--kms-key-id", str(kms_key_id)]
    if use_json:
        command_list = command_list + ["--use-json"]
    if force_upload:
        command_list = command_list + ["--force-upload"]
    if metadata:
        command_list = command_list + ["--metadata", json.dumps(metadata)]
    return command_list