Skip to main content

pa app export

Exports the specified Power App

Usage

m365 pa app export [options]

Options

-n, --name <name>

The name (GUID) of the Power Apps app to export.

-e, --environmentName <environmentName>

The name of the environment for which to export the app.

--packageDisplayName [packageDisplayName]

The display name to use in the exported package.

-d, --packageDescription [packageDescription]

The description to use in the exported package.

-c, --packageCreatedBy [packageCreatedBy]

The name of the person to be used as the creator of the exported package.

-s, --packageSourceEnvironment [packageSourceEnvironment]

The name of the source environment from which the exported package was taken.

-p, --path [path]

The path to save the exported package to. If not specified the app will be exported in the current working directory.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Export the specified Power App as a ZIP file

m365 pa app export --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d

Export the specified Power App as a ZIP file with a custom package name

m365 pa app export --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --packageDisplayName "Assets app"

Export the specified Power App as a ZIP file with the package displayname, package description, the one who created it, the package source environment and the path

m365 pa app export --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --packageDisplayName "Assets app" --packageDescription "App to track assets of people" --packageCreatedBy "John Doe" --packageSourceEnvironment "Contoso" --path "C:/Users/John/Documents"

Response

The command won't return a response on success.

CTRL + M