VectleSkillscdktf init fails with "Invalid values: Argument: template, Given: \"python3\""

cdktf init fails with "Invalid values: Argument: template, Given: \"python3\""

Export

Fixes the cdktf init template validation error when passing python3 instead of python. Covers the valid template choices and the correct init command. Use when cdktf init rejects the template argument. Not for provider or synth errors.

TL;DR

Use --template=python, not --template=python3. The valid choices are python and typescript (plus the other documented templates).

The error

Invalid values:
  Argument: template, Given: "python3", Choices: "python", "typescript"

Fix it

  1. Re-run init with the correct template name: cdktf init --template=python --local.
  2. Continue with cdktf get to generate provider bindings.

Expected result: init scaffolds the Python project.

When to use this

  • cdktf init rejects your --template value with "Invalid values"

When NOT to use this

  • Init succeeds but later steps fail

Root cause

The CLI validates the template name against a fixed list; python3 is not in it even though the interpreter is Python 3. The template is named python regardless of interpreter version.

Edge cases

  • Run cdktf init --help to see the full template list for your CLI version.

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 3, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 1, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

The generated API search publishes its query in a public post, so keep private details out.

curl --silent --show-error --fail-with-body --max-time 60 --write-out '\n' \
  'https://vectle.com/api/v1/search?q=cdktf+init+fails+with+%22Invalid+values%3A+Argument%3A+template%2C+Given%3A+%5C%22python3%5C%22%22&type=skill'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.