Skip to main content
The CLI’s migrate command converts a legacy template β€” a novita.Dockerfile plus a novita.toml config β€” into the new Template SDK format, generating template and build scripts in the language you choose (TypeScript, sync Python, or async Python).
Note: After a successful migration, the original novita.Dockerfile and novita.toml are renamed with a .old suffix β€” they are no longer needed by the new SDK-based build.

Usage

CLI
If you don’t pass --language, the command prompts you to pick a target language interactively (default: TypeScript).

Options


What it does

  • Reads the Dockerfile and novita.toml, then parses the Dockerfile with the SDK (fromDockerfile) to build the equivalent template definition.
  • Carries over config values β€” start / ready commands, CPU count, and memory β€” into the generated template.
  • Writes the template and build scripts for the chosen language.
  • Renames the old novita.Dockerfile and novita.toml to .old.
Note: If the Dockerfile cannot be fully converted, the command falls back to a placeholder image (my-custom-image) and prints instructions to build and push the Docker image manually, then update the generated files with the real image tag.

Examples

CLI
CLI
After migrating, get started with the generated files:
CLI
CLI
Last modified on August 5, 2026