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.
  • Required: Yes.
  • Alias: app.

--api-path <API_PATH>

  • Path to the API directory to deploy alongside the app.
  • Alias: api.

--data-api-path <DATA_API_PATH>

  • Path to the Data API configuration directory.
  • Alias: data-api.

--chunk-size <CHUNK_SIZE>

  • Upload chunk size in megabytes for the deployment package.
  • Default value: 100.

-t, --token <TOKEN>

  • Azure Static Web Apps deployment token for authentication.
  • Required: Yes.
  • Alias: api-token.

--output <OUTPUT>

  • Save the deployment package to this path instead of a temp directory.
  • Alias: out.

--require-index-html <REQUIRE_INDEX_HTML>

  • Require an "index.html" file to exist in the app directory before deploying.
  • Default value: true.
  • Possible values: true, false.

--require-settings-file <REQUIRE_SETTINGS_FILE>

  • Require a "staticwebapp.config.json" file to exist in the app directory before deploying.
  • Default value: true.
  • Possible values: true, false.

-h, --help

  • Print help.