{"id":23380480,"url":"https://github.com/dariuszwit/wp-automation-script","last_synced_at":"2026-05-09T06:11:54.584Z","repository":{"id":268579258,"uuid":"902394097","full_name":"dariuszwit/wp-automation-script","owner":"dariuszwit","description":"A Bash script for automating WordPress installation, managing plugins, themes, and creating admin users using WP-CLI.","archived":false,"fork":false,"pushed_at":"2024-12-18T22:53:58.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T03:49:48.882Z","etag":null,"topics":["automation","bash-script","dev-tools","plugin-manager","theme-installer","wordpress","wp-cli","wp-setup"],"latest_commit_sha":null,"homepage":"https://linis.it","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dariuszwit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-12T13:35:15.000Z","updated_at":"2024-12-18T22:54:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"620f922b-68e6-45dc-a411-debf994c2c88","html_url":"https://github.com/dariuszwit/wp-automation-script","commit_stats":null,"previous_names":["dariuszwit/wp-automation-script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dariuszwit/wp-automation-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariuszwit%2Fwp-automation-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariuszwit%2Fwp-automation-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariuszwit%2Fwp-automation-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariuszwit%2Fwp-automation-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dariuszwit","download_url":"https://codeload.github.com/dariuszwit/wp-automation-script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariuszwit%2Fwp-automation-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32809149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bash-script","dev-tools","plugin-manager","theme-installer","wordpress","wp-cli","wp-setup"],"created_at":"2024-12-21T20:16:09.840Z","updated_at":"2026-05-09T06:11:54.579Z","avatar_url":"https://github.com/dariuszwit.png","language":"Shell","funding_links":["https://buymeacoffee.com/dariuszwit"],"categories":[],"sub_categories":[],"readme":"## Support Me\nIf you find this script useful, you can support me here:\n[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-donate-yellow)](https://buymeacoffee.com/dariuszwit)\n\n# WordPress Installation and Configuration Script\n\nThis script automates the process of installing WordPress, adding themes, managing plugins, and creating multiple administrator users. It leverages WP-CLI for interacting with WordPress.\n\n---\n\n## **Features**\n1. **WordPress Installation**:\n   - Downloads WordPress core if not installed.\n   - Generates `wp-config.php` with database credentials.\n\n2. **Theme Installation**:\n   - Installs and activates the **Divi** theme (`divi.zip`) from the script directory.\n\n3. **Plugin Management**:\n   - Installs and updates plugins listed in a provided configuration file.\n   - Uninstalls plugins from a provided list.\n\n4. **User Management**:\n   - Creates multiple administrator users with credentials from the configuration file.\n\n---\n\n## **Requirements**\n1. **WP-CLI**: The script automatically downloads WP-CLI if it's not present.\n2. **PHP**: Ensure PHP is installed and available from the command line.\n3. **Database Access**: MySQL credentials for creating a connection.\n4. **Files**:\n   - `lin-wp-install-plugins-config.txt`: Configuration file.\n   - `lin-wp-plugins-list.txt`: List of plugins to install.\n   - `lin-wp-plugins-to-uninstall.txt`: List of plugins to remove.\n   - `divi.zip`: Theme file located in the script directory.\n\n---\n\n## **Configuration File**\nCreate a file named `lin-wp-install-plugins-config.txt` with the following structure:\n\n```txt\nWP_PATH=/path/to/wordpress\nDB_NAME=your_db_name\nDB_USER=your_db_user\nDB_PASSWORD=your_db_password\nDB_HOST=localhost\nPLUGINS_FILE=lin-wp-plugins-list.txt\nTO_UNINSTALL_FILE=lin-wp-plugins-to-uninstall.txt\nWP_ADMINS=admin1:password1:email1@example.com,admin2:password2:email2@example.com\n```\n\n- **WP_PATH**: The directory where WordPress will be installed.\n- **DB_NAME, DB_USER, DB_PASSWORD, DB_HOST**: MySQL credentials.\n- **PLUGINS_FILE**: File containing a list of plugins to install.\n- **TO_UNINSTALL_FILE**: File containing a list of plugins to uninstall.\n- **WP_ADMINS**: Comma-separated list of administrators with the format `username:password:email`.\n\n---\n\n## **Usage**\n1. Place the script in the desired directory.\n2. Place `divi.zip`, `lin-wp-install-plugins-config.txt`, `lin-wp-plugins-list.txt`, and `lin-wp-plugins-to-uninstall.txt` in the same directory.\n3. Make the script executable:\n   ```bash\n   chmod +x lin-wp-install-plugins.sh\n   ```\n4. Run the script:\n   ```bash\n   ./lin-wp-install-plugins.sh\n   ```\n\n---\n\n## **Files**\n- `lin-wp-install-plugins.sh`: Main script.\n- `lin-wp-install-plugins-config.txt`: Configuration file.\n- `lin-wp-plugins-list.txt`: Plugins to install.\n- `lin-wp-plugins-to-uninstall.txt`: Plugins to remove.\n- `divi.zip`: Divi theme.\n\n---\n\n## **Example Plugin Files**\n### **lin-wp-plugins-list.txt**\n```txt\nwordpress-seo # SEO plugin\nupdraftplus # Backup plugin\nwordfence # Security plugin\n```\n\n### **lin-wp-plugins-to-uninstall.txt**\n```txt\nhello-dolly\nakismet\n```\n\n---\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n\n\n\n## Support Me\nIf you find this script useful, you can support me here:\n[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-donate-yellow)](https://buymeacoffee.com/dariuszwit)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdariuszwit%2Fwp-automation-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdariuszwit%2Fwp-automation-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdariuszwit%2Fwp-automation-script/lists"}