drupal/one_line_installer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drupal/one_line_installer

Composer 安装命令:

composer require drupal/one_line_installer

包简介

A bash installer for AI assisted tools with Drupal best practices.

README 文档

README

Bootstrap a fresh Drupal CMS site with DDEV, Drush, and AI best practices in a single command on macOS or Linux.

Quick Start

bash <(curl -fsSL https://git.drupalcode.org/project/one_line_installer/-/raw/1.0.0/install.sh)

To skip all interactive prompts:

bash <(curl -fsSL https://git.drupalcode.org/project/one_line_installer/-/raw/1.0.0/install.sh) -yolo

The same command works on macOS and Linux — the installer detects your OS automatically.

What it does

  1. Detects your OS (macOS or Linux) and runs the appropriate installer
  2. Installs the required package manager tooling (Homebrew on macOS; apt/dnf repos on Linux)
  3. Installs Docker and waits for the daemon to be ready (if missing)
  4. Installs DDEV (if missing)
  5. Installs mkcert and runs the one-time CA setup (if missing)
  6. Creates a new DDEV project and installs Drupal CMS via Composer
  7. Installs Drush and the drupal/ai_best_practices module
  8. Runs site:install and exports Drupal configuration to web/config/sync
  9. Opens the site in your browser
  10. Installs the GitHub CLI (gh) if missing, walks you through authentication, and pushes the site to a new GitHub repository

The project directory is created as my-drupalcms-site in the current working directory.

Default credentials

FieldValue
Usernameadmin
Passwordadmin
Mailadmin@example.com

Requirements

macOS

  • macOS (Intel or Apple Silicon)
  • Internet connection

Everything else (Homebrew, Docker Desktop, DDEV, mkcert) is installed automatically.

Linux

  • Ubuntu 20.04+ / Debian 11+, or Fedora 38+ / RHEL 9+
  • sudo access
  • Internet connection

Everything else (Docker Engine, DDEV, mkcert) is installed automatically.

Limitations

  • Windows is not supported
  • Requires sudo access for Docker Engine installation (Linux) and mkcert CA setup

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-06-15