Skip to content

Comments

Add first-run setup script and improve env sync#61

Merged
Bakuutin merged 3 commits intodevfrom
sync-envs
Feb 12, 2026
Merged

Add first-run setup script and improve env sync#61
Bakuutin merged 3 commits intodevfrom
sync-envs

Conversation

@skywinder
Copy link
Collaborator

@skywinder skywinder commented Feb 4, 2026

Summary

  • Add scripts/setup.sh for streamlined first-run experience with automatic secret generation
  • Fix token-create command to output both MYCELIA_CLIENT_ID and MYCELIA_TOKEN
  • Improve sync-env.sh to detect first-run and suggest setup.sh
  • Update README Quick Start to use ./scripts/setup.sh --start
  • Add legend to .env.example clarifying variable types ([AUTO], [OPTIONAL], [CLI-ONLY])

New First-Run Experience

git clone https://github.com/mycelia-tech/mycelia.git
cd mycelia
./scripts/setup.sh --start

Setup Script Options

Flag Description
--start Start services after setup
--with-tokens Generate API tokens (for CLI/Python daemon users)
--force Overwrite existing .env without prompting

Test Plan

  • Run ./scripts/setup.sh --help to verify help output
  • Run ./scripts/setup.sh on fresh clone to verify .env creation and SECRET_KEY generation
  • Run ./scripts/sync-env.sh --dry-run to verify sync detection
  • Verify README Quick Start instructions are accurate

skywinder and others added 2 commits February 4, 2026 03:05
- Updated DEVELOPMENT.md to include new environment variables for development mode and their effects.
- Added a new script (sync-env.sh) to synchronize .env with .env.example, allowing for easy management of environment variables.
- Add scripts/setup.sh for streamlined first-run experience
- Fix token-create to output both MYCELIA_CLIENT_ID and MYCELIA_TOKEN
- Improve sync-env.sh to detect first-run and suggest setup.sh
- Update README Quick Start to use setup.sh --start
- Add legend to .env.example ([AUTO], [OPTIONAL], [CLI-ONLY])

Co-authored-by: Cursor <cursoragent@cursor.com>
@skywinder skywinder requested a review from Bakuutin February 4, 2026 08:26
@Bakuutin Bakuutin merged commit 2f02984 into dev Feb 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants