πŸš€ DevMagic Installation Scripts

Main DevMagic Installation

Install DevMagic dev container to your project:

curl -fsSL https://devmagic.run/install | bash

Or view the script: https://devmagic.run/install (curl/wget only)

Additional Installation Scripts

Quick setup scripts for common development tools. Run with curl:

Dev Container

Alias for the main DevMagic installer β€” generates a complete dev container setup (devcontainer.json, docker-compose.yml, Dockerfile) from the templates, with your project name and container user baked in

Requirements:
  • curl
  • Docker + VS Code (to actually use the generated container)
What it does:
  1. Download the devcontainer templates
  2. Fill in your project folder name (sanitized) and container user
  3. Write ready-to-use files into .devcontainer/
Install with pnpm (default):
curl -fsSL https://devmagic.run/install/devcontainer | bash

View script: https://devmagic.run/install/devcontainer (curl/wget only)

Prettier

Install and configure Prettier with Husky and lint-staged for automatic code formatting

Requirements:
  • Node.js project with package.json
  • Git repository (for Husky)
What it does:
  1. Install Prettier with exact version
  2. Create .prettierrc and .prettierignore files
  3. Create .editorconfig file
  4. Install and configure Husky
  5. Install and configure lint-staged
  6. Add lint-staged configuration to package.json
  7. Create GitHub Actions workflow for format checking
Install with pnpm (default):
curl -fsSL https://devmagic.run/install/prettier | bash
Or with another package manager:
# npm
curl -fsSL https://devmagic.run/install/prettier?pm=npm | bash

# yarn
curl -fsSL https://devmagic.run/install/prettier?pm=yarn | bash

# bun
curl -fsSL https://devmagic.run/install/prettier?pm=bun | bash

View script: https://devmagic.run/install/prettier (curl/wget only)

Commitlint

Install and configure commitlint with Husky to enforce Conventional Commits on every commit message

Requirements:
  • Node.js project with package.json
  • Git repository (for Husky)
What it does:
  1. Install commitlint and the Conventional Commits preset with exact versions
  2. Create commitlint.config.js (ES module or CommonJS, matching your package.json)
  3. Install and initialize Husky (skipped if .husky already exists)
  4. Create a Husky commit-msg hook that runs commitlint
  5. Create GitHub Actions workflow that checks the commits of every pull request
Install with pnpm (default):
curl -fsSL https://devmagic.run/install/commitlint | bash
Or with another package manager:
# npm
curl -fsSL https://devmagic.run/install/commitlint?pm=npm | bash

# yarn
curl -fsSL https://devmagic.run/install/commitlint?pm=yarn | bash

# bun
curl -fsSL https://devmagic.run/install/commitlint?pm=bun | bash

View script: https://devmagic.run/install/commitlint (curl/wget only)

Project Templates

Ready-to-use config files for new projects, downloaded into the current directory. Existing files are never overwritten unless you add ?force=1 to the URL.

EditorConfig

Sensible .editorconfig defaults (2-space indent, LF, UTF-8) with per-language tweaks for Python/shell/nu, Markdown, F#, PHP/Laravel, Rust, Dockerfiles and more

Files it creates:
  • .editorconfig
Install:
curl -fsSL https://devmagic.run/install/editorconfig | bash

View the generated installer: https://devmagic.run/install/editorconfig (curl/wget only)

Prettier config

Just the Prettier configuration files (defaults-first .prettierrc plus a .prettierignore for common artifacts) β€” use the prettier script instead for the full setup with Husky and lint-staged

Files it creates:
  • .prettierrc
  • .prettierignore
Install:
curl -fsSL https://devmagic.run/install/prettier-config | bash

View the generated installer: https://devmagic.run/install/prettier-config (curl/wget only)

Gitignore (Node)

A .gitignore for Node/TypeScript projects (dependencies, builds, coverage, env files, pnpm store, editor leftovers)

Files it creates:
  • .gitignore
Install:
curl -fsSL https://devmagic.run/install/gitignore | bash

View the generated installer: https://devmagic.run/install/gitignore (curl/wget only)

Changelog (git-cliff)

Conventional-commits changelog generation with git-cliff β€” the cliff.toml config plus a GitHub Actions workflow that keeps CHANGELOG.md updated on every push to main

Files it creates:
  • cliff.toml
  • .github/workflows/changelog.yml
Notes:
  • The changelog links use your repository URL, auto-detected from git remote origin β€” if detection fails, edit the URL placeholder in cliff.toml
  • Optional: add package.json scripts: "changelog": "git-cliff -o CHANGELOG.md" and "changelog:unreleased": "git-cliff --unreleased"
  • Local generation needs git-cliff (e.g. pnpm add -D git-cliff); the GitHub workflow needs nothing extra
Install:
curl -fsSL https://devmagic.run/install/changelog | bash

View the generated installer: https://devmagic.run/install/changelog (curl/wget only)

← Back to DevMagic