Skip to content

Static Website Commands

Commands for managing and deploying static websites.

staticwebsite

Manage static websites in your workspace.

Usage

tailor-sdk staticwebsite [command]

Commands

CommandDescription
staticwebsite deployDeploy a static website from a local build directory.
staticwebsite getGet details of a specific static website.
staticwebsite listList all static websites in a workspace.

staticwebsite deploy

Deploy a static website from a local build directory.

Usage

tailor-sdk staticwebsite deploy [options]

Options

OptionAliasDescriptionRequiredDefault
--json-jOutput as JSONNofalse
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-
--profile <PROFILE>-pWorkspace profileNo-
--name <NAME>-nStatic website nameYes-
--dir <DIR>-dPath to the static website filesYes-

staticwebsite list

List all static websites in a workspace.

Usage

tailor-sdk staticwebsite list [options]

Options

OptionAliasDescriptionRequiredDefault
--json-jOutput as JSONNofalse
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-
--profile <PROFILE>-pWorkspace profileNo-

staticwebsite get

Get details of a specific static website.

Usage

tailor-sdk staticwebsite get [options] <name>

Arguments

ArgumentDescriptionRequired
nameStatic website nameYes

Options

OptionAliasDescriptionRequiredDefault
--json-jOutput as JSONNofalse
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-
--profile <PROFILE>-pWorkspace profileNo-

Example:

bash
# Deploy a static website from the dist directory
tailor-sdk staticwebsite deploy --name my-website --dir ./dist

# Deploy with workspace ID
tailor-sdk staticwebsite deploy -n my-website -d ./dist -w ws_abc123

Notes:

  • The deployment process uploads all files from the specified directory
  • Files are uploaded with appropriate MIME types based on file extensions
  • Unsupported file types or invalid files will be skipped with warnings
  • The deployment URL is returned after successful deployment

Example:

bash
# List all static websites
tailor-sdk staticwebsite list

# List with JSON output
tailor-sdk staticwebsite list --json

Example:

bash
# Get details of a static website
tailor-sdk staticwebsite get my-website

# Get with JSON output
tailor-sdk staticwebsite get my-website --json