To get started with the Cosmic-OS sources, you'll need to get familiar with Git and Repo.
repo init -u https://github.com/Cosmic-OS/platform_manifest.git -b n7.1
repo sync --no-tags --no-clone-bundle --force-sync
-j# -Set jobs by just replacing # with what you wish
This will initialize the new repository and begin the initial sync. This can take a while!
Initialize the ROM environment with the envsetup.sh script. By entering command (i).
. build.sh #device
Just replace #device with your device name
EG .build-cos.sh angler
OR
. build/envsetup.sh
lunch cos_<device>-userdebug
brunch <device>