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
--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.Dockerfileandnovita.tomlto.old.
Examples
CLI
CLI
CLI
CLI