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 pulsar-release
repo sync --no-tags --no-clone-bundle --force-sync -c
-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-cos.sh #device
Just replace #device with your device name
EG . build-cos.sh berkeley
OR
. build/envsetup.sh
lunch cos_<device>-userdebug
brunch <device>