# 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:

  1. 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.
  2. Execute the khafn new-repo.sh command

    • 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' {} \;
  3. 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, where NEW_REPO_KEY is the name of the new folder created in Step_1.
    • Run the Pull/Reload Modules task in KhaCloud

Congratulations! You have successfully added a new module to KhaCloud.