{
  "Id": "ActionTemplates-6",
  "Name": "Download file",
  "Description": "Downloads a file from the internet to the local machine.",
  "ActionType": "Octopus.Script",
  "Version": 3,
  "CommunityActionTemplateId": null,
  "Properties": {
    "Octopus.Action.Script.Syntax": "PowerShell",
    "Octopus.Action.Script.ScriptSource": "Inline",
    "Octopus.Action.RunOnServer": "false",
    "Octopus.Action.Script.ScriptBody": "Write-Verbose \"Downloading file $FileUrl, to the destination $FilePath\" -Verbose\r\n$client = new-object System.Net.WebClient\r\n$client.DownloadFile($FileUrl, $FilePath)\r\nWrite-Verbose \"File downloadded\" -Verbose\r\n",
    "Octopus.Action.Script.ScriptFileName": null,
    "Octopus.Action.Package.FeedId": null,
    "Octopus.Action.Package.PackageId": null
  },
  "Parameters": [
    {
      "Id": "3e6a8f44-5791-4571-8e90-025f6776c6d0",
      "Name": "FileUrl",
      "Type": "String",
      "Label": "File Url",
      "HelpText": "Url of the file you want to download",
      "DefaultValue": "",
      "DisplaySettings": {
        "Octopus.ControlType": "SingleLineText"
      },
      "Links": {}
    },
    {
      "Id": "1b67fd5f-f626-40f4-80bb-f10fe681abf3",
      "Name": "FilePath",
      "Type": "String",
      "Label": "File Destination Path",
      "HelpText": "Destination path of the file on disk",
      "DefaultValue": "",
      "DisplaySettings": {
        "Octopus.ControlType": "SingleLineText"
      },
      "Links": {}
    }
  ],
  "LastModifiedBy": "ahmedig",
  "$Meta": {
    "ExportedAt": "2017-03-07T05:12:43.174Z",
    "OctopusVersion": "3.11.2",
    "Type": "ActionTemplate"
  }
}
Create the file download step
Create the file download step
