EdgeWorker version
New-EdgeWorkerVersion
Synopsis
Create a new version.
Syntax
New-EdgeWorkerVersion -EdgeWorkerName <String> -CodeDirectory <String> [-Version <Version>] [-Patch] [-Minor] [-Major] [-Description <String>] [-SaveBundleTo <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]New-EdgeWorkerVersion -EdgeWorkerName <String> -CodeBundle <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]New-EdgeWorkerVersion -EdgeWorkerID <Int32> -CodeBundle <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]New-EdgeWorkerVersion -EdgeWorkerID <Int32> -CodeDirectory <String> [-Version <Version>] [-Patch] [-Minor] [-Major] [-Description <String>] [-SaveBundleTo <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Creates a new version of an EdgeWorker based on either the .tgz -CodeBundle or a point to a directory with the -CodeDirectory parameter. If you opt for the directory option, all files in the directory (except the existing .tgz files) will be included in the bundle. You can specify an EdgeWorker by either its name or ID.
Parameters
‑AccountSwitchKey | An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey. |
‑CodeBundleConditionally required | The location of a local TGZ file containing your Edge Worker code. |
‑CodeDirectoryConditionally required | A local directory containing your Edge Worker code. Note: Requires that your operating system contains the |
‑Description | Update the description in your bundle.json. |
‑EdgeRCFile | Your EdgeGrid resource file to authenticate your command. Defaults to |
‑EdgeWorkerIDConditionally required | Your EdgeWorker's ID. |
‑EdgeWorkerNameConditionally required | Your Edge Worker's name. |
‑Major | Auto-increment the major version of your EdgeWorker bundle, e.g. 1.0.0 becomes 2.0.0. |
‑Minor | Auto-increment the minor version of your EdgeWorker bundle, e.g. 1.0.0 becomes 1.1.0. |
‑Patch | Auto-increment the patch version of your EdgeWorker bundle, e.g. 1.0.0 becomes 1.0.1. |
‑SaveBundleTo | Save the created .tgz bundle to this path. Otherwise a temporary file will be created, which your system will auto-delete. |
‑Section | The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to |
‑Version | Your EdgeWorker's version, either an integer or the word |
