How the Init Command Works
Init Command
Section titled “Init Command”The init command copies a Devsync template to your current directory, setting up everything you need to start building your portfolio.
-
Check for template flag: First, it checks if the
--templateflag is provided. If it is, the command splits the string by/and cleans it up. -
Clone the repository: If the
--templateflag is not provided, it clones the default template:https://github.com/jannael/devsync-default-template. -
Clean Git history: Deletes the
.gitdirectory to ensure a clean Git history, separate from the template’s history. -
Initialize new repository: Initializes a new Git repository and makes the first commit, allowing you to add your own remote origin.
What Gets Created
Section titled “What Gets Created”After running init, you’ll have:
DEVSYNC.json- Your portfolio configuration- Template source files - Your portfolio code
- GitHub Actions workflow - Auto-updates on
DEVSYNC.jsonchanges - Agent skills - AI helper for portfolio operations
Next Steps
Section titled “Next Steps”- Create a GitHub repository with your username
- Add remote origin:
git remote add origin https://github.com/[username]/[username].git - Push your changes:
git push -u origin main - Fill in
DEVSYNC.jsonwith your information - Push to see your portfolio update automatically