Save and reuse deployment configurations to standardize your team's workflow.

Availability

Deployment templates are available on the Business plan only.

Creating a Template

  • Go to Dashboard > Deployment Templates
  • Click Create Template
  • Configure the template settings:
  • SettingDescription
    NameTemplate identifier (used with %%INLINECODE_0%% flag)
    DescriptionOptional description for your team
    Project Typenode, python, go, php, ruby, rust, dotnet, static
    PortContainer port to expose
    TTLDefault time-to-live
    Exec CommandCustom startup command
    CredentialsHTTP Basic Auth (user:pass)
    RegionDeployment region
    IP AllowlistDefault IP restrictions
    Custom DomainDefault custom domain pattern

    Using Templates from the CLI

    Reference a template by name when creating an environment:

    prev create . --template staging

    All template settings are applied automatically. You can override any individual setting with CLI flags:

    prev create . --template staging --ttl 14d --region eu

    Example Templates

    Staging Template

    Name: staging
    Type: node
    Port: 3000
    TTL: 7d
    Region: us

    Client Demo Template

    Name: client-demo
    Type: static
    TTL: 14d
    Credentials: demo:clientpass
    Region: us

    Secure Testing Template

    Name: secure-test
    Type: node
    Port: 3000
    TTL: 24h
    IP Allowlist: 10.0.0.0/8
    Region: eu