https://kedro.org/ logo
#questions
Title
# questions
z

Zihao Xu

01/29/2024, 4:27 PM
Hi team, is there a quick way to rename an entire
kedro
project using a cli command? IF not, what are the best practices around this? Thank you !
n

Nok Lam Chan

01/29/2024, 4:40 PM
Usually you can create a new project and just copy over the modules.
If you don't want this, renaming the project isn't too much different from how you rename other Python projects. Use the "refactor" functions that IDE offers. The only extra thing that you need to look out for is
pyproject.toml
which has project specific information (names of your package, project etc)
๐Ÿ‘ 2
d

Deepyaman Datta

01/29/2024, 4:42 PM
What do you need to change? There aren't that many references in the starter. Most likely, you have package references, which I've usually handled through find and replace (maybe IDEs have some nice support).
n

Nok Lam Chan

01/29/2024, 4:43 PM
(always make sure you commit before you start doing this refactoring)
z

Zihao Xu

01/30/2024, 6:42 PM
Thanks for the suggestions Nok and Deepyaman!
The nature of our project changed a bit so wanting to basically rename the entire thing, but donโ€™t wanna break the code
๐Ÿ‘๐Ÿผ 1