Skip to Main content

tuyen swa deploy

Deploy application files to Azure Static Web Apps

Usage

tuyen swa deploy [OPTIONS] --app-path <APP_PATH> --token <TOKEN>

Options

-a, --app-path <APP_PATH>

Path to the application directory to deploy (e.g. "build" or "dist")
Aliases: app

--api-path <API_PATH>

Path to the API directory to deploy alongside the app (optional)
Aliases: api

--data-api-path <DATA_API_PATH>

Path to the Data API configuration directory (optional)
Aliases: data-api

--chunk-size <CHUNK_SIZE>

Upload chunk size in megabytes for the deployment package (default: 100 MB)
Default values: 100

-t, --token <TOKEN>

Azure Static Web Apps deployment token for authentication
Aliases: api-token

--output <OUTPUT>

Save the deployment package to this path instead of a temp directory (optional)
Aliases: out

--require-index-html <REQUIRE_INDEX_HTML>

Require an "index.html" file in the app directory (default: true)
Default values: true
Possible values: true, false

--require-settings-file <REQUIRE_SETTINGS_FILE>

Require a "staticwebapp.config.json" file in the app directory (default: true)
Default values: true
Possible values: true, false

-h, --help

Print help.