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