Revision code bundle

Get-EdgeworkerRevisionCodeBundle

Synopsis

Download the combined code bundle.

Syntax

name-file (Default)

Get-EdgeworkerRevisionCodeBundle -EdgeWorkerName <String> -RevisionID <String> [-OutputFile <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

name-directory

Get-EdgeworkerRevisionCodeBundle -EdgeWorkerName <String> -RevisionID <String> [-OutputDirectory <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

id-directory

Get-EdgeworkerRevisionCodeBundle -EdgeWorkerID <Int32> -RevisionID <String> [-OutputDirectory <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

id-file

Get-EdgeworkerRevisionCodeBundle -EdgeWorkerID <Int32> -RevisionID <String> [-OutputFile <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Downloads the combined code bundle that contains the code and dependencies that the EdgeWorker executes.

You can save the bundle as a .tgz file (by default) and optionally specify the filename with the -OutputFile parameter. Alternatively, you can extract the files into the -OutputDirectory. You can specify an EdgeWorker by its name or ID.

This operation requires that your OS have the tar command configured (*nix, Windows 10 1803 and later).

Parameters

-AccountSwitchKey

Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Run the Get-AccountSwitchKey command to list the account switch keys available to you.

Type: String Parameter Sets: (All) Aliases: None Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False

-EdgeRCFile

EdgeRC file to authenticate your command. Defaults to ~/.edgerc.

Type: String Parameter Sets: (All) Aliases: None Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False

-EdgeWorkerID

Unique identifier for an EdgeWorker.

Type: Int32 Parameter Sets: id-directory, id-file Aliases: None Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False

-EdgeWorkerName

Name of the Edge Worker.

Type: String Parameter Sets: name-file, name-directory Aliases: None Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False

-OutputDirectory

Directory to extract bundle contents into.

Type: String Parameter Sets: name-directory, id-directory Aliases: None Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False

-OutputFile

TGZ filename to save bundle contents to.

Type: String Parameter Sets: name-file, id-file Aliases: None Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False

-RevisionID

Unique identifier for an EdgeWorkers revision.

Type: String Parameter Sets: (All) Aliases: None Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False

-Section

EdgeRC section to retrieve authentication credentials from. Defaults to default.

Type: String Parameter Sets: (All) Aliases: None Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object

Related links


Did this page help you?