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.5.tar.gz (20.3 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.5-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tpl_deploy-0.1.5.tar.gz
  • Upload date:
  • Size: 20.3 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.5.tar.gz
Algorithm Hash digest
SHA256 eaaeb49f2908d819cedde6ad9dfbe7924d94db65ba7ef0a08f2cdb1dad9b2b6f
MD5 64a0dfc350281c92d1429f7093c92c7d
BLAKE2b-256 cbe6e8185c655ec5d0d57f53b5315207823059bb91ea95ab376c5cb1b90c38b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpl_deploy-0.1.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: tpl_deploy-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d75cb97116a3613d5de354bf86a72f45753dec3e4ca52944d09b0c347f1bea76
MD5 bbd7cd736c868efec98f41d033523b5b
BLAKE2b-256 205b9ddc5ad06d04324c05353b6d6f369ff41bf5a7ae8a0145b40157a510802d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tpl_deploy-0.1.5-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