Skip to main content

tpl CLI placeholder

Project description

tpl-deploy

Minimal, cross-platform template tool for deployment, registering, managing, and instantiating project templates from HTTP endpoints. Works with Visual Studio and VS Code on Windows, macOS, and Linux.

Install

pip install tpl-deploy

Usage

tpl <target> <project_name> [key=value ...]

Examples

tpl console my_app
tpl github:cpp.gui my_gui arch=x64

Commands

Create

tpl new <target> <project_name> [key=value ...]

Config

tpl config show
tpl config set-default-editor "<command>"
tpl config set-editor <language> <os> "<command>"
tpl config remove-editor <language> <os>
tpl config set-alias <remote> <alias> <canonical_id>
tpl config remove-alias <remote> <alias>

Remotes

tpl register <remote> <url>
tpl unregister <remote>
tpl update <remote>
tpl list

Editor configuration

Editor commands support the following tokens:

Token Value
${project_dir} Absolute path to the created project folder
${project_name} Project name (safe identifier)
${open_file} Absolute path to the file marked OpenInEditor in the template (empty string if none)
${code} code
${devenv} devenv

Examples

# VS Code — open folder in new window, jump to main file
tpl config set-default-editor "code --new-window ${project_dir} ${open_file}"

# Visual Studio — open solution, edit main file
tpl config set-editor cpp windows "devenv ${project_dir} /edit ${open_file}"

Behavior

  • No prompts
  • No auto-numbering
  • Fails if destination exists
  • Fetches only when needed

Philosophy

  • Deterministic
  • No hidden behavior
  • No auto-repair

Visual Studio Integration

On Windows, tpl automatically registers downloaded templates with Visual Studio so they appear in the New Project dialog.

Registration runs on tpl remote add and tpl update. Unregistration runs on tpl remote remove.

Requirements

  • Windows
  • Visual Studio 2019, 2022, or 2026 with the C++ workload installed (vswhere must find it)

Template location

Templates are copied to:

<Documents>\<VS folder>\Templates\ProjectTemplates\<remote>.<template>.zip

Where <Documents> is resolved via the Windows shell API (handles OneDrive and folder redirects).

Supported VS versions

VS Version Documents folder
Visual Studio 2019 Visual Studio 2019
Visual Studio 2022 Visual Studio 2022
Visual Studio 2026 Visual Studio 18

If the installed version is not in this table, registration is skipped with a warning.


See also

  • ARCHITECTURE.md
  • IMPLEMENTATION.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tpl_deploy-0.1.6.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tpl_deploy-0.1.6-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file tpl_deploy-0.1.6.tar.gz.

File metadata

  • Download URL: tpl_deploy-0.1.6.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tpl_deploy-0.1.6.tar.gz
Algorithm Hash digest
SHA256 2dd93b05392c6ab8129d107166fee9bd27681ee47d20c7e2567305fcfb359609
MD5 36edbbee34beb267f9a50b76918b6fc7
BLAKE2b-256 216151a746f9c9abd38d2315d1e12e15e09f21ffeca333a0569ccebe85577807

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpl_deploy-0.1.6.tar.gz:

Publisher: cd.yaml on croicu/tpl-deploy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tpl_deploy-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: tpl_deploy-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tpl_deploy-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a71ccb80b8a6b22defbbeea81b378079c8ae14106b5af448d52c9e3b44318669
MD5 aa2121f9590f64edc8c285805da14e4c
BLAKE2b-256 c50548023884d8f337139847d0831959245682887f6116ad7715c2b213ce9521

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpl_deploy-0.1.6-py3-none-any.whl:

Publisher: cd.yaml on croicu/tpl-deploy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page