# Create new Module/Core
This documentation will guide you on how to add a new module to KhaCloud. To get started, follow the steps below:
Create a New Folder
- To create a new module or a new core, start by creating a new folder by copying an existing module or an existing code.
- Name the new folder appropriately, as the new name will be used as a key for the GitHub repository and KhaCloud information.
Execute the
khafn new-repo.shcommand- Inside the new folder, execute the following command:
khafn new-repo.sh. - During the process, the GitHub invitation page will prompt.
- You can use the following code to replace recursively files/folder names to a new name
find /home/ixi/khacloud/projects/module_plugins/ -depth -name '*permessions*' -execdir rename 's/permessions/plugins/g;s/permession/plugin/g;s/Permessions/Plugins/g;s/Permession/Plugin/g' {} \;
- Inside the new folder, execute the following command:
Connect to KhaCloud Dashoboard
- Open an SSH connection to the khacloud-server.
- Execute the following command:
cd_projects - Execute the following command:
git clone https://github.com/kha-cloud/NEW_REPO_KEY, whereNEW_REPO_KEYis the name of the new folder created in Step_1.
- Execute the following command:
- Run the
Pull/Reload Modulestask in KhaCloud
- Open an SSH connection to the khacloud-server.
Congratulations! You have successfully added a new module to KhaCloud.