Initialize a new Tailor Platform project using the create-sdk scaffolding tool. This command detects your package manager and runs the appropriate create command with the specified template.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tailor-platform/sdk/llms.txt
Use this file to discover all available pages before exploring further.
Command Syntax
Arguments
Project name for the new application. If not provided, you’ll be prompted interactively.
Options
Template name to use for project initialization. Available templates are provided by
@tailor-platform/sdk.Alias: -tCommon Options
The following common options are also available:--env-file/-e- Path to environment file (error if not found)--env-file-if-exists- Path to environment file (ignored if not found)--verbose- Enable verbose logging (show stack traces on error)
Usage Examples
Initialize with Interactive Prompts
Initialize with Project Name
Initialize with Specific Template
Implementation Details
Theinit command:
- Detects your package manager (npm, yarn, pnpm, or bun) from the
npm_config_user_agentenvironment variable - Falls back to npm if detection fails
- Runs the appropriate create command:
<package-manager> create @tailor-platform/sdk@<version> - Passes through the project name and template arguments
The SDK version used for initialization matches the version of your installed
tailor-sdk CLI, ensuring compatibility.