Template commands: project export, import and creation, and saved templates

Open
#654 0 comments 0 reactions 1 assignee View on GitHub

@engfragui is already working on this.

Since Nov 12, 2026.

Assessment

This issue has not been assessed yet.

Description

Tracks the todoist-cli side of the template work. The MCP side is tracked in todoist/todoist-mcp#678, and the plan for both is in the template tools spec (todoist/specs#368).

Project operations move from td template to td project, using the app's wording ("Export as CSV", "Import from CSV", "Save as template"). td template is only for templates themselves, and "template" is never used for CSV. The old commands stay for one release as hidden aliases that print a deprecation warning.

Commands

Command What it does Replaces
td project export [ref] Exports a project as a CSV file. td template export-file
td project save-as-template [ref] Saves a project as a template. New
td project import [ref] --from-csv <path> Imports a CSV file into an existing project. td template import-file
td project import [ref] --from-template <id> Imports a template into an existing project. td template import-id
td project create --name <name> --from-csv <path> Creates a project from a CSV file. td template create
td project create --from-template <id> Creates a project from a template. New
td template create --from-csv <path> Creates a template from a CSV file. New
td template list / view / update / delete Finds, views, edits or deletes saved templates. New, later

Checklist

  • td project export (CSV for now), replacing td template export-file.
  • td project import --from-csv and --from-template, replacing td template import-file and td template import-id.
  • td project create --from-csv and --from-template, replacing td template create and adding creation from a template.
  • td project save-as-template. Needs saveProjectAsTemplate from todoist/todoist-sdk-typescript#746.
  • td template create --from-csv. Needs addTemplate from todoist/todoist-sdk-typescript#748.
  • td template list, view, update and delete. Later; delete waits on todoist/Todoist#31805 publishing its route (task).
  • Move to the major SDK release from todoist/todoist-sdk-typescript#750, including the method names listed in src/lib/permissions.ts and src/lib/api/core.ts.
  • Remove td template export-url, only if Doist/Issues#21076 decides to drop the shareable link. Also take exportTemplateAsUrl off the read-only method list in src/lib/permissions.ts and the progress messages in src/lib/api/core.ts.

Reference

Details

  • Options per source. td project import needs exactly one --from-… option. --file-name only applies with --from-csv, and --locale only with --from-template. With --from-…, td project create rejects the options its routes don't accept (--color, --favorite, --parent, --description), pointing to td project update instead of ignoring them. --workspace and --folder are new for --from-template; --folder needs --workspace, as the API's folder_id does.
  • td template create changes meaning. Today td template create --name <name> --file <path> creates a project from a CSV. For one release, --file keeps doing that, with a deprecation warning pointing to td project create --from-csv, while --from-csv creates a template. The different option names keep old scripts from silently creating templates. After that release, --file fails with an error.
  • Help text. td template --help points to td project import --from-template and td project create --from-template, since someone thinking "templates" looks there first. Wording that calls the CSV a template ("CSV template file", "Template written to", "Exporting template...") changes to CSV.
  • Read-only mode. src/lib/permissions.ts lists read-only SDK methods by name, so the renamed exportProjectAsCsv must be added there, or read-only logins get blocked from exporting.
  • Differences from the MCP. The MCP's add-template tool covers both td project save-as-template and td template create --from-csv, and can also start from a blank template. The CLI keeps two commands, because a command lives under what it acts on, and a template from scratch isn't planned here.

Nothing here blocks the MCP: both build on the same SDK releases, and the MCP doesn't use the CLI.

Dominant language
TypeScript
Stars
331
Forks
19
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Doist/todoist-cli

All issues in Doist/todoist-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.