aidevops 2.52.1 → 2.53.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/VERSION +1 -1
- package/aidevops.sh +15 -9
- package/package.json +4 -4
- package/scripts/npm-postinstall.js +6 -7
- package/setup.sh +1 -1
- package/templates/deploy-templates.sh +144 -0
- package/templates/home/.agent/README.md +33 -0
- package/templates/home/AGENTS.md +96 -0
- package/templates/home/git/.agent/README.md +48 -0
- package/templates/home/git/AGENTS.md +97 -0
- package/templates/standard-functions.sh +179 -0
- package/templates/wordpress-performance-workflow.md +217 -0
- package/.agent/AGENTS.md +0 -614
- package/.agent/accounts.md +0 -65
- package/.agent/aidevops/add-new-mcp-to-aidevops.md +0 -456
- package/.agent/aidevops/api-integrations.md +0 -335
- package/.agent/aidevops/architecture.md +0 -510
- package/.agent/aidevops/configs.md +0 -274
- package/.agent/aidevops/docs.md +0 -244
- package/.agent/aidevops/extension.md +0 -311
- package/.agent/aidevops/mcp-integrations.md +0 -340
- package/.agent/aidevops/mcp-troubleshooting.md +0 -162
- package/.agent/aidevops/memory-patterns.md +0 -172
- package/.agent/aidevops/providers.md +0 -217
- package/.agent/aidevops/recommendations.md +0 -321
- package/.agent/aidevops/requirements.md +0 -301
- package/.agent/aidevops/resources.md +0 -214
- package/.agent/aidevops/security-requirements.md +0 -174
- package/.agent/aidevops/security.md +0 -350
- package/.agent/aidevops/service-links.md +0 -400
- package/.agent/aidevops/services.md +0 -357
- package/.agent/aidevops/setup.md +0 -153
- package/.agent/aidevops/troubleshooting.md +0 -389
- package/.agent/aidevops.md +0 -124
- package/.agent/build-plus.md +0 -244
- package/.agent/content/guidelines.md +0 -109
- package/.agent/content.md +0 -87
- package/.agent/health.md +0 -59
- package/.agent/legal.md +0 -59
- package/.agent/loop-state/full-loop.local.md +0 -16
- package/.agent/loop-state/ralph-loop.local.md +0 -10
- package/.agent/marketing.md +0 -440
- package/.agent/memory/README.md +0 -260
- package/.agent/onboarding.md +0 -796
- package/.agent/plan-plus.md +0 -245
- package/.agent/research.md +0 -100
- package/.agent/sales.md +0 -333
- package/.agent/scripts/101domains-helper.sh +0 -701
- package/.agent/scripts/add-missing-returns.sh +0 -140
- package/.agent/scripts/agent-browser-helper.sh +0 -311
- package/.agent/scripts/agno-setup.sh +0 -712
- package/.agent/scripts/ahrefs-mcp-wrapper.js +0 -168
- package/.agent/scripts/aidevops-update-check.sh +0 -71
- package/.agent/scripts/ampcode-cli.sh +0 -522
- package/.agent/scripts/auto-version-bump.sh +0 -156
- package/.agent/scripts/autogen-helper.sh +0 -512
- package/.agent/scripts/beads-sync-helper.sh +0 -596
- package/.agent/scripts/closte-helper.sh +0 -5
- package/.agent/scripts/cloudron-helper.sh +0 -321
- package/.agent/scripts/codacy-cli-chunked.sh +0 -581
- package/.agent/scripts/codacy-cli.sh +0 -442
- package/.agent/scripts/code-audit-helper.sh +0 -5
- package/.agent/scripts/coderabbit-cli.sh +0 -417
- package/.agent/scripts/coderabbit-pro-analysis.sh +0 -238
- package/.agent/scripts/commands/code-simplifier.md +0 -86
- package/.agent/scripts/commands/full-loop.md +0 -246
- package/.agent/scripts/commands/postflight-loop.md +0 -103
- package/.agent/scripts/commands/recall.md +0 -182
- package/.agent/scripts/commands/remember.md +0 -132
- package/.agent/scripts/commands/save-todo.md +0 -175
- package/.agent/scripts/commands/session-review.md +0 -154
- package/.agent/scripts/comprehensive-quality-fix.sh +0 -106
- package/.agent/scripts/context-builder-helper.sh +0 -522
- package/.agent/scripts/coolify-cli-helper.sh +0 -674
- package/.agent/scripts/coolify-helper.sh +0 -380
- package/.agent/scripts/crawl4ai-examples.sh +0 -401
- package/.agent/scripts/crawl4ai-helper.sh +0 -1078
- package/.agent/scripts/crewai-helper.sh +0 -681
- package/.agent/scripts/dev-browser-helper.sh +0 -513
- package/.agent/scripts/dns-helper.sh +0 -396
- package/.agent/scripts/domain-research-helper.sh +0 -917
- package/.agent/scripts/dspy-helper.sh +0 -285
- package/.agent/scripts/dspyground-helper.sh +0 -291
- package/.agent/scripts/eeat-score-helper.sh +0 -1242
- package/.agent/scripts/efficient-return-fix.sh +0 -92
- package/.agent/scripts/extract-opencode-prompts.sh +0 -128
- package/.agent/scripts/find-missing-returns.sh +0 -113
- package/.agent/scripts/fix-auth-headers.sh +0 -104
- package/.agent/scripts/fix-common-strings.sh +0 -254
- package/.agent/scripts/fix-content-type.sh +0 -100
- package/.agent/scripts/fix-error-messages.sh +0 -130
- package/.agent/scripts/fix-misplaced-returns.sh +0 -74
- package/.agent/scripts/fix-remaining-literals.sh +0 -152
- package/.agent/scripts/fix-return-statements.sh +0 -41
- package/.agent/scripts/fix-s131-default-cases.sh +0 -249
- package/.agent/scripts/fix-sc2155-simple.sh +0 -102
- package/.agent/scripts/fix-shellcheck-critical.sh +0 -187
- package/.agent/scripts/fix-string-literals.sh +0 -273
- package/.agent/scripts/full-loop-helper.sh +0 -773
- package/.agent/scripts/generate-opencode-agents.sh +0 -497
- package/.agent/scripts/generate-opencode-commands.sh +0 -1629
- package/.agent/scripts/generate-skills.sh +0 -366
- package/.agent/scripts/git-platforms-helper.sh +0 -640
- package/.agent/scripts/gitea-cli-helper.sh +0 -743
- package/.agent/scripts/github-cli-helper.sh +0 -702
- package/.agent/scripts/gitlab-cli-helper.sh +0 -682
- package/.agent/scripts/gsc-add-user-helper.sh +0 -325
- package/.agent/scripts/gsc-sitemap-helper.sh +0 -678
- package/.agent/scripts/hetzner-helper.sh +0 -485
- package/.agent/scripts/hostinger-helper.sh +0 -229
- package/.agent/scripts/keyword-research-helper.sh +0 -1815
- package/.agent/scripts/langflow-helper.sh +0 -544
- package/.agent/scripts/linkedin-automation.py +0 -241
- package/.agent/scripts/linter-manager.sh +0 -599
- package/.agent/scripts/linters-local.sh +0 -434
- package/.agent/scripts/list-keys-helper.sh +0 -488
- package/.agent/scripts/local-browser-automation.py +0 -339
- package/.agent/scripts/localhost-helper.sh +0 -744
- package/.agent/scripts/loop-common.sh +0 -806
- package/.agent/scripts/mainwp-helper.sh +0 -728
- package/.agent/scripts/markdown-formatter.sh +0 -338
- package/.agent/scripts/markdown-lint-fix.sh +0 -311
- package/.agent/scripts/mass-fix-returns.sh +0 -58
- package/.agent/scripts/mcp-diagnose.sh +0 -167
- package/.agent/scripts/mcp-inspector-helper.sh +0 -449
- package/.agent/scripts/memory-helper.sh +0 -650
- package/.agent/scripts/monitor-code-review.sh +0 -255
- package/.agent/scripts/onboarding-helper.sh +0 -706
- package/.agent/scripts/opencode-github-setup-helper.sh +0 -797
- package/.agent/scripts/opencode-test-helper.sh +0 -213
- package/.agent/scripts/pagespeed-helper.sh +0 -464
- package/.agent/scripts/pandoc-helper.sh +0 -362
- package/.agent/scripts/postflight-check.sh +0 -555
- package/.agent/scripts/pre-commit-hook.sh +0 -259
- package/.agent/scripts/pre-edit-check.sh +0 -169
- package/.agent/scripts/qlty-cli.sh +0 -356
- package/.agent/scripts/quality-cli-manager.sh +0 -525
- package/.agent/scripts/quality-feedback-helper.sh +0 -462
- package/.agent/scripts/quality-fix.sh +0 -263
- package/.agent/scripts/quality-loop-helper.sh +0 -1108
- package/.agent/scripts/ralph-loop-helper.sh +0 -836
- package/.agent/scripts/ralph-upstream-check.sh +0 -341
- package/.agent/scripts/secretlint-helper.sh +0 -847
- package/.agent/scripts/servers-helper.sh +0 -241
- package/.agent/scripts/ses-helper.sh +0 -619
- package/.agent/scripts/session-review-helper.sh +0 -404
- package/.agent/scripts/setup-linters-wizard.sh +0 -379
- package/.agent/scripts/setup-local-api-keys.sh +0 -330
- package/.agent/scripts/setup-mcp-integrations.sh +0 -472
- package/.agent/scripts/shared-constants.sh +0 -246
- package/.agent/scripts/site-crawler-helper.sh +0 -1487
- package/.agent/scripts/snyk-helper.sh +0 -940
- package/.agent/scripts/sonarcloud-autofix.sh +0 -193
- package/.agent/scripts/sonarcloud-cli.sh +0 -191
- package/.agent/scripts/sonarscanner-cli.sh +0 -455
- package/.agent/scripts/spaceship-helper.sh +0 -747
- package/.agent/scripts/stagehand-helper.sh +0 -321
- package/.agent/scripts/stagehand-python-helper.sh +0 -321
- package/.agent/scripts/stagehand-python-setup.sh +0 -441
- package/.agent/scripts/stagehand-setup.sh +0 -439
- package/.agent/scripts/system-cleanup.sh +0 -340
- package/.agent/scripts/terminal-title-helper.sh +0 -388
- package/.agent/scripts/terminal-title-setup.sh +0 -549
- package/.agent/scripts/test-stagehand-both-integration.sh +0 -317
- package/.agent/scripts/test-stagehand-integration.sh +0 -309
- package/.agent/scripts/test-stagehand-python-integration.sh +0 -341
- package/.agent/scripts/todo-ready.sh +0 -263
- package/.agent/scripts/tool-version-check.sh +0 -362
- package/.agent/scripts/toon-helper.sh +0 -469
- package/.agent/scripts/twilio-helper.sh +0 -917
- package/.agent/scripts/updown-helper.sh +0 -279
- package/.agent/scripts/validate-mcp-integrations.sh +0 -250
- package/.agent/scripts/validate-version-consistency.sh +0 -131
- package/.agent/scripts/vaultwarden-helper.sh +0 -597
- package/.agent/scripts/vercel-cli-helper.sh +0 -816
- package/.agent/scripts/verify-mirrors.sh +0 -169
- package/.agent/scripts/version-manager.sh +0 -831
- package/.agent/scripts/webhosting-helper.sh +0 -471
- package/.agent/scripts/webhosting-verify.sh +0 -238
- package/.agent/scripts/wordpress-mcp-helper.sh +0 -508
- package/.agent/scripts/worktree-helper.sh +0 -595
- package/.agent/scripts/worktree-sessions.sh +0 -577
- package/.agent/seo/dataforseo.md +0 -215
- package/.agent/seo/domain-research.md +0 -532
- package/.agent/seo/eeat-score.md +0 -659
- package/.agent/seo/google-search-console.md +0 -366
- package/.agent/seo/gsc-sitemaps.md +0 -282
- package/.agent/seo/keyword-research.md +0 -521
- package/.agent/seo/serper.md +0 -278
- package/.agent/seo/site-crawler.md +0 -387
- package/.agent/seo.md +0 -236
- package/.agent/services/accounting/quickfile.md +0 -159
- package/.agent/services/communications/telfon.md +0 -470
- package/.agent/services/communications/twilio.md +0 -569
- package/.agent/services/crm/fluentcrm.md +0 -449
- package/.agent/services/email/ses.md +0 -399
- package/.agent/services/hosting/101domains.md +0 -378
- package/.agent/services/hosting/closte.md +0 -177
- package/.agent/services/hosting/cloudflare.md +0 -251
- package/.agent/services/hosting/cloudron.md +0 -478
- package/.agent/services/hosting/dns-providers.md +0 -335
- package/.agent/services/hosting/domain-purchasing.md +0 -344
- package/.agent/services/hosting/hetzner.md +0 -327
- package/.agent/services/hosting/hostinger.md +0 -287
- package/.agent/services/hosting/localhost.md +0 -419
- package/.agent/services/hosting/spaceship.md +0 -353
- package/.agent/services/hosting/webhosting.md +0 -330
- package/.agent/social-media.md +0 -69
- package/.agent/templates/plans-template.md +0 -114
- package/.agent/templates/prd-template.md +0 -129
- package/.agent/templates/tasks-template.md +0 -108
- package/.agent/templates/todo-template.md +0 -89
- package/.agent/tools/ai-assistants/agno.md +0 -471
- package/.agent/tools/ai-assistants/capsolver.md +0 -326
- package/.agent/tools/ai-assistants/configuration.md +0 -221
- package/.agent/tools/ai-assistants/overview.md +0 -209
- package/.agent/tools/ai-assistants/status.md +0 -171
- package/.agent/tools/ai-assistants/windsurf.md +0 -193
- package/.agent/tools/ai-orchestration/autogen.md +0 -406
- package/.agent/tools/ai-orchestration/crewai.md +0 -445
- package/.agent/tools/ai-orchestration/langflow.md +0 -405
- package/.agent/tools/ai-orchestration/openprose.md +0 -487
- package/.agent/tools/ai-orchestration/overview.md +0 -362
- package/.agent/tools/ai-orchestration/packaging.md +0 -647
- package/.agent/tools/browser/agent-browser.md +0 -464
- package/.agent/tools/browser/browser-automation.md +0 -400
- package/.agent/tools/browser/chrome-devtools.md +0 -282
- package/.agent/tools/browser/crawl4ai-integration.md +0 -422
- package/.agent/tools/browser/crawl4ai-resources.md +0 -277
- package/.agent/tools/browser/crawl4ai-usage.md +0 -416
- package/.agent/tools/browser/crawl4ai.md +0 -585
- package/.agent/tools/browser/dev-browser.md +0 -341
- package/.agent/tools/browser/pagespeed.md +0 -260
- package/.agent/tools/browser/playwright.md +0 -266
- package/.agent/tools/browser/playwriter.md +0 -310
- package/.agent/tools/browser/stagehand-examples.md +0 -456
- package/.agent/tools/browser/stagehand-python.md +0 -483
- package/.agent/tools/browser/stagehand.md +0 -421
- package/.agent/tools/build-agent/agent-review.md +0 -224
- package/.agent/tools/build-agent/build-agent.md +0 -784
- package/.agent/tools/build-mcp/aidevops-plugin.md +0 -476
- package/.agent/tools/build-mcp/api-wrapper.md +0 -445
- package/.agent/tools/build-mcp/build-mcp.md +0 -240
- package/.agent/tools/build-mcp/deployment.md +0 -401
- package/.agent/tools/build-mcp/server-patterns.md +0 -632
- package/.agent/tools/build-mcp/transports.md +0 -366
- package/.agent/tools/code-review/auditing.md +0 -383
- package/.agent/tools/code-review/automation.md +0 -219
- package/.agent/tools/code-review/best-practices.md +0 -203
- package/.agent/tools/code-review/codacy.md +0 -151
- package/.agent/tools/code-review/code-simplifier.md +0 -174
- package/.agent/tools/code-review/code-standards.md +0 -309
- package/.agent/tools/code-review/coderabbit.md +0 -101
- package/.agent/tools/code-review/management.md +0 -155
- package/.agent/tools/code-review/qlty.md +0 -248
- package/.agent/tools/code-review/secretlint.md +0 -565
- package/.agent/tools/code-review/setup.md +0 -250
- package/.agent/tools/code-review/snyk.md +0 -563
- package/.agent/tools/code-review/tools.md +0 -230
- package/.agent/tools/content/summarize.md +0 -353
- package/.agent/tools/context/augment-context-engine.md +0 -468
- package/.agent/tools/context/context-builder-agent.md +0 -76
- package/.agent/tools/context/context-builder.md +0 -375
- package/.agent/tools/context/context7.md +0 -371
- package/.agent/tools/context/dspy.md +0 -302
- package/.agent/tools/context/dspyground.md +0 -374
- package/.agent/tools/context/llm-tldr.md +0 -219
- package/.agent/tools/context/osgrep.md +0 -488
- package/.agent/tools/context/prompt-optimization.md +0 -338
- package/.agent/tools/context/toon.md +0 -292
- package/.agent/tools/conversion/pandoc.md +0 -304
- package/.agent/tools/credentials/api-key-management.md +0 -154
- package/.agent/tools/credentials/api-key-setup.md +0 -224
- package/.agent/tools/credentials/environment-variables.md +0 -180
- package/.agent/tools/credentials/vaultwarden.md +0 -382
- package/.agent/tools/data-extraction/outscraper.md +0 -974
- package/.agent/tools/deployment/coolify-cli.md +0 -388
- package/.agent/tools/deployment/coolify-setup.md +0 -353
- package/.agent/tools/deployment/coolify.md +0 -345
- package/.agent/tools/deployment/vercel.md +0 -390
- package/.agent/tools/git/authentication.md +0 -132
- package/.agent/tools/git/gitea-cli.md +0 -193
- package/.agent/tools/git/github-actions.md +0 -207
- package/.agent/tools/git/github-cli.md +0 -223
- package/.agent/tools/git/gitlab-cli.md +0 -190
- package/.agent/tools/git/opencode-github-security.md +0 -350
- package/.agent/tools/git/opencode-github.md +0 -328
- package/.agent/tools/git/opencode-gitlab.md +0 -252
- package/.agent/tools/git/security.md +0 -196
- package/.agent/tools/git.md +0 -207
- package/.agent/tools/opencode/oh-my-opencode.md +0 -375
- package/.agent/tools/opencode/opencode-anthropic-auth.md +0 -446
- package/.agent/tools/opencode/opencode.md +0 -651
- package/.agent/tools/social-media/bird.md +0 -437
- package/.agent/tools/task-management/beads.md +0 -336
- package/.agent/tools/terminal/terminal-title.md +0 -251
- package/.agent/tools/ui/shadcn.md +0 -196
- package/.agent/tools/ui/ui-skills.md +0 -115
- package/.agent/tools/wordpress/localwp.md +0 -311
- package/.agent/tools/wordpress/mainwp.md +0 -391
- package/.agent/tools/wordpress/scf.md +0 -527
- package/.agent/tools/wordpress/wp-admin.md +0 -729
- package/.agent/tools/wordpress/wp-dev.md +0 -940
- package/.agent/tools/wordpress/wp-preferred.md +0 -398
- package/.agent/tools/wordpress.md +0 -95
- package/.agent/workflows/branch/bugfix.md +0 -63
- package/.agent/workflows/branch/chore.md +0 -95
- package/.agent/workflows/branch/experiment.md +0 -115
- package/.agent/workflows/branch/feature.md +0 -59
- package/.agent/workflows/branch/hotfix.md +0 -98
- package/.agent/workflows/branch/refactor.md +0 -92
- package/.agent/workflows/branch/release.md +0 -96
- package/.agent/workflows/branch.md +0 -347
- package/.agent/workflows/bug-fixing.md +0 -267
- package/.agent/workflows/changelog.md +0 -129
- package/.agent/workflows/code-audit-remote.md +0 -279
- package/.agent/workflows/conversation-starter.md +0 -69
- package/.agent/workflows/error-feedback.md +0 -578
- package/.agent/workflows/feature-development.md +0 -355
- package/.agent/workflows/git-workflow.md +0 -702
- package/.agent/workflows/multi-repo-workspace.md +0 -268
- package/.agent/workflows/plans.md +0 -709
- package/.agent/workflows/postflight.md +0 -604
- package/.agent/workflows/pr.md +0 -571
- package/.agent/workflows/preflight.md +0 -278
- package/.agent/workflows/ralph-loop.md +0 -773
- package/.agent/workflows/release.md +0 -498
- package/.agent/workflows/session-manager.md +0 -254
- package/.agent/workflows/session-review.md +0 -311
- package/.agent/workflows/sql-migrations.md +0 -631
- package/.agent/workflows/version-bump.md +0 -283
- package/.agent/workflows/wiki-update.md +0 -333
- package/.agent/workflows/worktree.md +0 -477
|
@@ -1,729 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: WordPress admin - content management, plugins, maintenance, WP-CLI and MainWP integration
|
|
3
|
-
mode: subagent
|
|
4
|
-
temperature: 0.2
|
|
5
|
-
tools:
|
|
6
|
-
write: true
|
|
7
|
-
edit: true
|
|
8
|
-
bash: true
|
|
9
|
-
read: true
|
|
10
|
-
webfetch: true
|
|
11
|
-
wordpress-mcp_*: true
|
|
12
|
-
context7_*: true
|
|
13
|
-
task: true
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# WordPress Admin Subagent
|
|
17
|
-
|
|
18
|
-
<!-- AI-CONTEXT-START -->
|
|
19
|
-
## Quick Reference
|
|
20
|
-
|
|
21
|
-
- **Sites Config**: `~/.config/aidevops/wordpress-sites.json`
|
|
22
|
-
- **MainWP Config**: `configs/mainwp-config.json`
|
|
23
|
-
- **Working Dir**: `~/.aidevops/.agent-workspace/work/wordpress/`
|
|
24
|
-
- **Preferred Plugins**: See `wp-preferred.md` for curated recommendations
|
|
25
|
-
|
|
26
|
-
**Site Management Options**:
|
|
27
|
-
|
|
28
|
-
| Method | When to Use |
|
|
29
|
-
|--------|-------------|
|
|
30
|
-
| WP-CLI (SSH) | Direct access, any site |
|
|
31
|
-
| MainWP | Fleet operations, connected sites |
|
|
32
|
-
| WordPress MCP | AI-powered admin actions |
|
|
33
|
-
|
|
34
|
-
**Common WP-CLI Commands**:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
wp post list --post_status=draft
|
|
38
|
-
wp plugin update --all
|
|
39
|
-
wp core update
|
|
40
|
-
wp user list --role=administrator
|
|
41
|
-
wp option get siteurl
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
**Related Subagents**:
|
|
45
|
-
- `@mainwp` - Fleet management (sites with MainWP Child)
|
|
46
|
-
- `@wp-dev` - Code changes, debugging (hand off)
|
|
47
|
-
- `@hostinger` - Hostinger-hosted site operations
|
|
48
|
-
- `@hetzner` - Hetzner server management
|
|
49
|
-
|
|
50
|
-
**For DNS/SSL Issues**: `@dns-providers`, `@cloudflare`
|
|
51
|
-
**For Email Issues**: `@ses` - Amazon SES configuration
|
|
52
|
-
|
|
53
|
-
**Always use Context7** for latest WP-CLI command syntax.
|
|
54
|
-
<!-- AI-CONTEXT-END -->
|
|
55
|
-
|
|
56
|
-
## Overview
|
|
57
|
-
|
|
58
|
-
This subagent handles WordPress administration tasks:
|
|
59
|
-
|
|
60
|
-
- Content creation and management
|
|
61
|
-
- Theme customization and settings
|
|
62
|
-
- Plugin management and updates
|
|
63
|
-
- Backups and security
|
|
64
|
-
- Site maintenance
|
|
65
|
-
- User management
|
|
66
|
-
|
|
67
|
-
## Site Configuration
|
|
68
|
-
|
|
69
|
-
### WordPress Sites Registry
|
|
70
|
-
|
|
71
|
-
Sites are tracked in `~/.config/aidevops/wordpress-sites.json`:
|
|
72
|
-
|
|
73
|
-
```json
|
|
74
|
-
{
|
|
75
|
-
"sites": {
|
|
76
|
-
"local-dev": {
|
|
77
|
-
"name": "Local Development",
|
|
78
|
-
"type": "localwp",
|
|
79
|
-
"path": "~/Local Sites/my-site/app/public",
|
|
80
|
-
"multisite": false,
|
|
81
|
-
"mainwp_connected": false
|
|
82
|
-
},
|
|
83
|
-
"production": {
|
|
84
|
-
"name": "Production Site",
|
|
85
|
-
"type": "hostinger",
|
|
86
|
-
"url": "https://example.com",
|
|
87
|
-
"ssh_host": "ssh.example.com",
|
|
88
|
-
"mainwp_connected": true,
|
|
89
|
-
"mainwp_site_id": 123
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Access by Hosting Type
|
|
96
|
-
|
|
97
|
-
| Hosting | Auth Method | Access Pattern |
|
|
98
|
-
|---------|-------------|----------------|
|
|
99
|
-
| LocalWP | N/A | `cd ~/Local Sites/site/app/public && wp ...` |
|
|
100
|
-
| Hostinger | sshpass | `sshpass -f ~/.ssh/hostinger_password ssh user@host "wp ..."` |
|
|
101
|
-
| Closte | sshpass | `sshpass -f ~/.ssh/closte_password ssh user@host "wp ..."` |
|
|
102
|
-
| Hetzner | SSH key | `ssh root@server "wp ..."` |
|
|
103
|
-
| Cloudron | SSH key | Via Cloudron CLI or SSH |
|
|
104
|
-
|
|
105
|
-
## Content Management
|
|
106
|
-
|
|
107
|
-
### Posts & Pages
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
# List posts
|
|
111
|
-
wp post list --post_type=post --post_status=publish
|
|
112
|
-
|
|
113
|
-
# Create post
|
|
114
|
-
wp post create --post_type=post --post_title="New Post" --post_status=draft
|
|
115
|
-
|
|
116
|
-
# Update post
|
|
117
|
-
wp post update 123 --post_title="Updated Title"
|
|
118
|
-
|
|
119
|
-
# Delete post
|
|
120
|
-
wp post delete 123 --force
|
|
121
|
-
|
|
122
|
-
# Get post meta
|
|
123
|
-
wp post meta get 123 _thumbnail_id
|
|
124
|
-
|
|
125
|
-
# Set post meta
|
|
126
|
-
wp post meta update 123 custom_field "value"
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Custom Post Types
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
# List CPTs
|
|
133
|
-
wp post-type list
|
|
134
|
-
|
|
135
|
-
# List items of CPT
|
|
136
|
-
wp post list --post_type=product --post_status=any
|
|
137
|
-
|
|
138
|
-
# Create CPT item
|
|
139
|
-
wp post create --post_type=product --post_title="New Product" --post_status=publish
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Media
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
# List media
|
|
146
|
-
wp media list
|
|
147
|
-
|
|
148
|
-
# Import media from URL
|
|
149
|
-
wp media import https://example.com/image.jpg
|
|
150
|
-
|
|
151
|
-
# Regenerate thumbnails
|
|
152
|
-
wp media regenerate --yes
|
|
153
|
-
|
|
154
|
-
# Delete unattached media
|
|
155
|
-
wp post list --post_type=attachment --post_status=inherit --meta_key=_wp_attached_file --format=ids | xargs wp post delete
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
### Categories & Tags
|
|
159
|
-
|
|
160
|
-
```bash
|
|
161
|
-
# List categories
|
|
162
|
-
wp term list category
|
|
163
|
-
|
|
164
|
-
# Create category
|
|
165
|
-
wp term create category "New Category" --description="Description"
|
|
166
|
-
|
|
167
|
-
# List tags
|
|
168
|
-
wp term list post_tag
|
|
169
|
-
|
|
170
|
-
# Assign category to post
|
|
171
|
-
wp post term add 123 category "Category Name"
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
## Theme Customization
|
|
175
|
-
|
|
176
|
-
### Theme Management
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
# List themes
|
|
180
|
-
wp theme list
|
|
181
|
-
|
|
182
|
-
# Activate theme
|
|
183
|
-
wp theme activate kadence
|
|
184
|
-
|
|
185
|
-
# Update theme
|
|
186
|
-
wp theme update kadence
|
|
187
|
-
|
|
188
|
-
# Get theme mods
|
|
189
|
-
wp theme mod list
|
|
190
|
-
|
|
191
|
-
# Set theme mod
|
|
192
|
-
wp theme mod set header_logo 123
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### Widgets
|
|
196
|
-
|
|
197
|
-
```bash
|
|
198
|
-
# List sidebars
|
|
199
|
-
wp sidebar list
|
|
200
|
-
|
|
201
|
-
# List widgets
|
|
202
|
-
wp widget list sidebar-1
|
|
203
|
-
|
|
204
|
-
# Add widget
|
|
205
|
-
wp widget add text sidebar-1 --title="My Widget" --text="Content"
|
|
206
|
-
|
|
207
|
-
# Move widget
|
|
208
|
-
wp widget move text-2 --position=1
|
|
209
|
-
|
|
210
|
-
# Delete widget
|
|
211
|
-
wp widget delete text-2
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### Menus
|
|
215
|
-
|
|
216
|
-
```bash
|
|
217
|
-
# List menus
|
|
218
|
-
wp menu list
|
|
219
|
-
|
|
220
|
-
# Create menu
|
|
221
|
-
wp menu create "Main Menu"
|
|
222
|
-
|
|
223
|
-
# Add page to menu
|
|
224
|
-
wp menu item add-post main-menu 123
|
|
225
|
-
|
|
226
|
-
# Add custom link
|
|
227
|
-
wp menu item add-custom main-menu "Custom Link" https://example.com
|
|
228
|
-
|
|
229
|
-
# Assign menu to location
|
|
230
|
-
wp menu location assign main-menu primary
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
## Plugin Management
|
|
234
|
-
|
|
235
|
-
### Basic Operations
|
|
236
|
-
|
|
237
|
-
```bash
|
|
238
|
-
# List all plugins
|
|
239
|
-
wp plugin list
|
|
240
|
-
|
|
241
|
-
# List active plugins
|
|
242
|
-
wp plugin list --status=active
|
|
243
|
-
|
|
244
|
-
# Install plugin
|
|
245
|
-
wp plugin install kadence-blocks --activate
|
|
246
|
-
|
|
247
|
-
# Update single plugin
|
|
248
|
-
wp plugin update kadence-blocks
|
|
249
|
-
|
|
250
|
-
# Update all plugins
|
|
251
|
-
wp plugin update --all
|
|
252
|
-
|
|
253
|
-
# Deactivate plugin
|
|
254
|
-
wp plugin deactivate plugin-name
|
|
255
|
-
|
|
256
|
-
# Delete plugin
|
|
257
|
-
wp plugin delete plugin-name
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
### Bulk Operations
|
|
261
|
-
|
|
262
|
-
```bash
|
|
263
|
-
# Install multiple plugins
|
|
264
|
-
wp plugin install antispam-bee fluent-smtp query-monitor --activate
|
|
265
|
-
|
|
266
|
-
# Update plugins with dry-run
|
|
267
|
-
wp plugin update --all --dry-run
|
|
268
|
-
|
|
269
|
-
# Deactivate all plugins (troubleshooting)
|
|
270
|
-
wp plugin deactivate --all
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
### Plugin Search
|
|
274
|
-
|
|
275
|
-
```bash
|
|
276
|
-
# Search WordPress.org
|
|
277
|
-
wp plugin search "seo" --fields=name,slug,rating
|
|
278
|
-
|
|
279
|
-
# Check for updates
|
|
280
|
-
wp plugin update --all --dry-run
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
## WordPress Core
|
|
284
|
-
|
|
285
|
-
### Updates
|
|
286
|
-
|
|
287
|
-
```bash
|
|
288
|
-
# Check version
|
|
289
|
-
wp core version
|
|
290
|
-
|
|
291
|
-
# Check for updates
|
|
292
|
-
wp core check-update
|
|
293
|
-
|
|
294
|
-
# Update core
|
|
295
|
-
wp core update
|
|
296
|
-
|
|
297
|
-
# Update database
|
|
298
|
-
wp core update-db
|
|
299
|
-
```
|
|
300
|
-
|
|
301
|
-
### Configuration
|
|
302
|
-
|
|
303
|
-
```bash
|
|
304
|
-
# Get option
|
|
305
|
-
wp option get siteurl
|
|
306
|
-
wp option get blogname
|
|
307
|
-
|
|
308
|
-
# Set option
|
|
309
|
-
wp option update blogname "My Site"
|
|
310
|
-
wp option update admin_email "admin@example.com"
|
|
311
|
-
|
|
312
|
-
# List all options
|
|
313
|
-
wp option list
|
|
314
|
-
```
|
|
315
|
-
|
|
316
|
-
## User Management
|
|
317
|
-
|
|
318
|
-
### User Operations
|
|
319
|
-
|
|
320
|
-
```bash
|
|
321
|
-
# List users
|
|
322
|
-
wp user list
|
|
323
|
-
|
|
324
|
-
# List admins
|
|
325
|
-
wp user list --role=administrator
|
|
326
|
-
|
|
327
|
-
# Create user
|
|
328
|
-
wp user create john john@example.com --role=editor --user_pass=password
|
|
329
|
-
|
|
330
|
-
# Update user
|
|
331
|
-
wp user update john --display_name="John Doe"
|
|
332
|
-
|
|
333
|
-
# Delete user
|
|
334
|
-
wp user delete john --reassign=1
|
|
335
|
-
|
|
336
|
-
# Reset password
|
|
337
|
-
wp user reset-password john
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
### Roles & Capabilities
|
|
341
|
-
|
|
342
|
-
```bash
|
|
343
|
-
# List roles
|
|
344
|
-
wp role list
|
|
345
|
-
|
|
346
|
-
# Create role
|
|
347
|
-
wp role create custom_role "Custom Role"
|
|
348
|
-
|
|
349
|
-
# Add capability to role
|
|
350
|
-
wp cap add custom_role edit_posts
|
|
351
|
-
|
|
352
|
-
# Check user capabilities
|
|
353
|
-
wp user list-caps john
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
## Backup Operations
|
|
357
|
-
|
|
358
|
-
### Database Backup
|
|
359
|
-
|
|
360
|
-
```bash
|
|
361
|
-
# Export database
|
|
362
|
-
wp db export backup-$(date +%Y%m%d).sql
|
|
363
|
-
|
|
364
|
-
# Export specific tables
|
|
365
|
-
wp db export --tables=wp_posts,wp_postmeta
|
|
366
|
-
|
|
367
|
-
# Import database
|
|
368
|
-
wp db import backup.sql
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
### Full Site Backup
|
|
372
|
-
|
|
373
|
-
```bash
|
|
374
|
-
# Create backup directory
|
|
375
|
-
mkdir -p ~/backups/$(date +%Y%m%d)
|
|
376
|
-
|
|
377
|
-
# Export database
|
|
378
|
-
wp db export ~/backups/$(date +%Y%m%d)/database.sql
|
|
379
|
-
|
|
380
|
-
# Archive wp-content
|
|
381
|
-
tar -czf ~/backups/$(date +%Y%m%d)/wp-content.tar.gz wp-content/
|
|
382
|
-
|
|
383
|
-
# Archive uploads only
|
|
384
|
-
tar -czf ~/backups/$(date +%Y%m%d)/uploads.tar.gz wp-content/uploads/
|
|
385
|
-
```
|
|
386
|
-
|
|
387
|
-
### Restore
|
|
388
|
-
|
|
389
|
-
```bash
|
|
390
|
-
# Restore database
|
|
391
|
-
wp db import backup.sql
|
|
392
|
-
|
|
393
|
-
# Search-replace URLs if needed
|
|
394
|
-
wp search-replace 'https://old.com' 'https://new.com' --dry-run
|
|
395
|
-
wp search-replace 'https://old.com' 'https://new.com'
|
|
396
|
-
|
|
397
|
-
# Flush caches
|
|
398
|
-
wp cache flush
|
|
399
|
-
wp rewrite flush
|
|
400
|
-
```
|
|
401
|
-
|
|
402
|
-
## Security
|
|
403
|
-
|
|
404
|
-
### Security Checks
|
|
405
|
-
|
|
406
|
-
```bash
|
|
407
|
-
# Check file permissions
|
|
408
|
-
find . -type d -perm 777
|
|
409
|
-
find . -type f -perm 777
|
|
410
|
-
|
|
411
|
-
# List admin users
|
|
412
|
-
wp user list --role=administrator
|
|
413
|
-
|
|
414
|
-
# Check for core modifications
|
|
415
|
-
wp core verify-checksums
|
|
416
|
-
|
|
417
|
-
# Check plugin integrity
|
|
418
|
-
wp plugin verify-checksums --all
|
|
419
|
-
```
|
|
420
|
-
|
|
421
|
-
### Security Hardening
|
|
422
|
-
|
|
423
|
-
```bash
|
|
424
|
-
# Regenerate salts
|
|
425
|
-
wp config shuffle-salts
|
|
426
|
-
|
|
427
|
-
# Update admin password
|
|
428
|
-
wp user update admin --user_pass="new-secure-password"
|
|
429
|
-
|
|
430
|
-
# Disable file editing
|
|
431
|
-
wp config set DISALLOW_FILE_EDIT true --raw
|
|
432
|
-
|
|
433
|
-
# Disable debug in production
|
|
434
|
-
wp config set WP_DEBUG false --raw
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
### Spam Management
|
|
438
|
-
|
|
439
|
-
```bash
|
|
440
|
-
# Delete spam comments
|
|
441
|
-
wp comment delete $(wp comment list --status=spam --format=ids) --force
|
|
442
|
-
|
|
443
|
-
# List pending comments
|
|
444
|
-
wp comment list --status=hold
|
|
445
|
-
|
|
446
|
-
# Approve comment
|
|
447
|
-
wp comment approve 123
|
|
448
|
-
```
|
|
449
|
-
|
|
450
|
-
## Site Health
|
|
451
|
-
|
|
452
|
-
### Diagnostics
|
|
453
|
-
|
|
454
|
-
```bash
|
|
455
|
-
# Check site health
|
|
456
|
-
wp site health status
|
|
457
|
-
|
|
458
|
-
# Check cron
|
|
459
|
-
wp cron event list
|
|
460
|
-
|
|
461
|
-
# Run missed cron
|
|
462
|
-
wp cron event run --due-now
|
|
463
|
-
|
|
464
|
-
# Check transients
|
|
465
|
-
wp transient list
|
|
466
|
-
|
|
467
|
-
# Clean expired transients
|
|
468
|
-
wp transient delete --expired
|
|
469
|
-
```
|
|
470
|
-
|
|
471
|
-
### Performance
|
|
472
|
-
|
|
473
|
-
```bash
|
|
474
|
-
# Optimize database
|
|
475
|
-
wp db optimize
|
|
476
|
-
|
|
477
|
-
# Repair database
|
|
478
|
-
wp db repair
|
|
479
|
-
|
|
480
|
-
# Clean revisions
|
|
481
|
-
wp post delete $(wp post list --post_type=revision --format=ids) --force
|
|
482
|
-
|
|
483
|
-
# Clean auto-drafts
|
|
484
|
-
wp post delete $(wp post list --post_type=post --post_status=auto-draft --format=ids) --force
|
|
485
|
-
```
|
|
486
|
-
|
|
487
|
-
### Cache Management
|
|
488
|
-
|
|
489
|
-
```bash
|
|
490
|
-
# Flush object cache
|
|
491
|
-
wp cache flush
|
|
492
|
-
|
|
493
|
-
# Flush rewrite rules
|
|
494
|
-
wp rewrite flush
|
|
495
|
-
|
|
496
|
-
# For Closte (LiteSpeed)
|
|
497
|
-
wp closte devmode enable # Before making changes
|
|
498
|
-
wp closte devmode disable # After changes
|
|
499
|
-
```
|
|
500
|
-
|
|
501
|
-
## Multisite Operations
|
|
502
|
-
|
|
503
|
-
### Site Management
|
|
504
|
-
|
|
505
|
-
```bash
|
|
506
|
-
# List sites
|
|
507
|
-
wp site list
|
|
508
|
-
|
|
509
|
-
# Create site
|
|
510
|
-
wp site create --slug=newsite --title="New Site"
|
|
511
|
-
|
|
512
|
-
# Activate site
|
|
513
|
-
wp site activate 2
|
|
514
|
-
|
|
515
|
-
# Delete site
|
|
516
|
-
wp site delete 2 --yes
|
|
517
|
-
```
|
|
518
|
-
|
|
519
|
-
### Network Operations
|
|
520
|
-
|
|
521
|
-
```bash
|
|
522
|
-
# List network plugins
|
|
523
|
-
wp plugin list --network
|
|
524
|
-
|
|
525
|
-
# Network activate plugin
|
|
526
|
-
wp plugin activate plugin-name --network
|
|
527
|
-
|
|
528
|
-
# Network deactivate plugin
|
|
529
|
-
wp plugin deactivate plugin-name --network
|
|
530
|
-
```
|
|
531
|
-
|
|
532
|
-
### Per-Site Commands
|
|
533
|
-
|
|
534
|
-
Always use `--url` flag for multisite:
|
|
535
|
-
|
|
536
|
-
```bash
|
|
537
|
-
wp post list --url=https://subsite.example.com
|
|
538
|
-
wp plugin list --url=https://subsite.example.com
|
|
539
|
-
wp option get blogname --url=https://subsite.example.com
|
|
540
|
-
```
|
|
541
|
-
|
|
542
|
-
## MainWP Integration
|
|
543
|
-
|
|
544
|
-
For sites with MainWP Child connected, use `@mainwp` subagent for fleet operations:
|
|
545
|
-
|
|
546
|
-
### When to Use MainWP
|
|
547
|
-
|
|
548
|
-
- Bulk updates across multiple sites
|
|
549
|
-
- Fleet-wide security scans
|
|
550
|
-
- Centralized backup management
|
|
551
|
-
- Monitoring and reporting
|
|
552
|
-
- Site sync operations
|
|
553
|
-
|
|
554
|
-
### MainWP Commands
|
|
555
|
-
|
|
556
|
-
```bash
|
|
557
|
-
# List all sites
|
|
558
|
-
./.agent/scripts/mainwp-helper.sh sites production
|
|
559
|
-
|
|
560
|
-
# Bulk update plugins
|
|
561
|
-
./.agent/scripts/mainwp-helper.sh bulk-update-plugins production 123 124 125
|
|
562
|
-
|
|
563
|
-
# Security scan
|
|
564
|
-
./.agent/scripts/mainwp-helper.sh security-scan production 123
|
|
565
|
-
```
|
|
566
|
-
|
|
567
|
-
## SEO Tasks
|
|
568
|
-
|
|
569
|
-
### Rank Math / SEO Plugins
|
|
570
|
-
|
|
571
|
-
```bash
|
|
572
|
-
# Check SEO plugin status
|
|
573
|
-
wp plugin list | grep -E "seo|rank-math"
|
|
574
|
-
|
|
575
|
-
# Get site title
|
|
576
|
-
wp option get blogname
|
|
577
|
-
|
|
578
|
-
# Get site description
|
|
579
|
-
wp option get blogdescription
|
|
580
|
-
|
|
581
|
-
# Update title
|
|
582
|
-
wp option update blogname "New Site Title"
|
|
583
|
-
|
|
584
|
-
# Check permalinks
|
|
585
|
-
wp rewrite structure
|
|
586
|
-
wp rewrite flush
|
|
587
|
-
```
|
|
588
|
-
|
|
589
|
-
### XML Sitemaps
|
|
590
|
-
|
|
591
|
-
```bash
|
|
592
|
-
# Regenerate sitemaps (Rank Math)
|
|
593
|
-
wp option update rank_math_sitemap_last_modified $(date +%s)
|
|
594
|
-
|
|
595
|
-
# Check robots.txt
|
|
596
|
-
curl https://example.com/robots.txt
|
|
597
|
-
```
|
|
598
|
-
|
|
599
|
-
## Hosting-Specific Notes
|
|
600
|
-
|
|
601
|
-
### Hostinger
|
|
602
|
-
|
|
603
|
-
```bash
|
|
604
|
-
# Connect to Hostinger site
|
|
605
|
-
sshpass -f ~/.ssh/hostinger_password ssh -p 65002 user@server "cd /domains/example.com/public_html && wp plugin list"
|
|
606
|
-
|
|
607
|
-
# See hostinger.md for full details
|
|
608
|
-
```
|
|
609
|
-
|
|
610
|
-
### Closte
|
|
611
|
-
|
|
612
|
-
```bash
|
|
613
|
-
# Enable dev mode before changes
|
|
614
|
-
wp closte devmode enable
|
|
615
|
-
|
|
616
|
-
# Make changes...
|
|
617
|
-
|
|
618
|
-
# Disable dev mode after
|
|
619
|
-
wp closte devmode disable
|
|
620
|
-
|
|
621
|
-
# Flush cache
|
|
622
|
-
wp cache flush
|
|
623
|
-
|
|
624
|
-
# See closte.md for full details
|
|
625
|
-
```
|
|
626
|
-
|
|
627
|
-
### Cloudron
|
|
628
|
-
|
|
629
|
-
```bash
|
|
630
|
-
# Access via Cloudron CLI or SSH
|
|
631
|
-
# See cloudron.md for full details
|
|
632
|
-
```
|
|
633
|
-
|
|
634
|
-
### Hetzner
|
|
635
|
-
|
|
636
|
-
```bash
|
|
637
|
-
# SSH key-based access
|
|
638
|
-
ssh root@server-ip "cd /var/www/site && wp plugin list"
|
|
639
|
-
|
|
640
|
-
# See hetzner.md for full details
|
|
641
|
-
```
|
|
642
|
-
|
|
643
|
-
## Related Subagents
|
|
644
|
-
|
|
645
|
-
| Task | Subagent | Reason |
|
|
646
|
-
|------|----------|--------|
|
|
647
|
-
| Fleet management | `@mainwp` | Bulk operations on MainWP-connected sites |
|
|
648
|
-
| Code changes | `@wp-dev` | Development and debugging tasks |
|
|
649
|
-
| Hostinger sites | `@hostinger` | Hostinger-specific SSH, domains, DNS |
|
|
650
|
-
| Hetzner servers | `@hetzner` | Server management, firewalls, volumes |
|
|
651
|
-
| Cloudron apps | See `cloudron.md` | Cloudron WordPress app management |
|
|
652
|
-
| Closte hosting | See `closte.md` | Closte-specific operations (sshpass) |
|
|
653
|
-
| DNS management | `@dns-providers` | Cloudflare, Namecheap, Spaceship, 101domains |
|
|
654
|
-
| Email delivery | `@ses` | Transactional email, SPF, DKIM |
|
|
655
|
-
| SSL/CDN | `@cloudflare` | Cloudflare configuration |
|
|
656
|
-
| Browser testing | `@browser-automation` | Visual regression, Stagehand |
|
|
657
|
-
|
|
658
|
-
## Related Documentation
|
|
659
|
-
|
|
660
|
-
| Topic | File |
|
|
661
|
-
|-------|------|
|
|
662
|
-
| MainWP management | `mainwp.md` |
|
|
663
|
-
| Hostinger hosting | `hostinger.md` |
|
|
664
|
-
| Closte hosting | `closte.md` |
|
|
665
|
-
| Cloudron apps | `cloudron.md` |
|
|
666
|
-
| Hetzner servers | `hetzner.md` |
|
|
667
|
-
| DNS providers | `dns-providers.md` |
|
|
668
|
-
| Email (SES) | `ses.md` |
|
|
669
|
-
| Credential setup | `api-key-setup.md` |
|
|
670
|
-
| Security policies | `security.md` |
|
|
671
|
-
| Preferred plugins | `wp-preferred.md` |
|
|
672
|
-
| Version tracking | `version-management.md` |
|
|
673
|
-
|
|
674
|
-
## Security & Credentials
|
|
675
|
-
|
|
676
|
-
### SSH Access by Hosting Type
|
|
677
|
-
|
|
678
|
-
| Hosting | Auth Method | Credential Location |
|
|
679
|
-
|---------|-------------|---------------------|
|
|
680
|
-
| LocalWP | N/A | Auto-detected |
|
|
681
|
-
| Hostinger | sshpass | `~/.ssh/hostinger_password` |
|
|
682
|
-
| Closte | sshpass | `~/.ssh/closte_password` |
|
|
683
|
-
| Hetzner | SSH key | `~/.ssh/id_ed25519` |
|
|
684
|
-
| Cloudron | SSH key | `~/.ssh/id_ed25519` |
|
|
685
|
-
|
|
686
|
-
### MainWP Credentials
|
|
687
|
-
|
|
688
|
-
```bash
|
|
689
|
-
# Store MainWP API credentials
|
|
690
|
-
setup-local-api-keys.sh set mainwp-consumer-key-production YOUR_KEY
|
|
691
|
-
setup-local-api-keys.sh set mainwp-consumer-secret-production YOUR_SECRET
|
|
692
|
-
```
|
|
693
|
-
|
|
694
|
-
### WordPress Admin Security
|
|
695
|
-
|
|
696
|
-
When performing admin tasks:
|
|
697
|
-
|
|
698
|
-
1. **Backups first**: Always backup before bulk updates
|
|
699
|
-
2. **Staging test**: Test updates on staging before production
|
|
700
|
-
3. **Security scan**: Run `@mainwp` security scan after changes
|
|
701
|
-
4. **Audit log**: Document significant changes
|
|
702
|
-
|
|
703
|
-
## Common Workflows
|
|
704
|
-
|
|
705
|
-
### Plugin Update Workflow
|
|
706
|
-
|
|
707
|
-
1. Check for updates: `wp plugin update --all --dry-run`
|
|
708
|
-
2. Backup database: `wp db export backup.sql`
|
|
709
|
-
3. Enable maintenance mode (if needed)
|
|
710
|
-
4. Update plugins: `wp plugin update --all`
|
|
711
|
-
5. Test site functionality
|
|
712
|
-
6. Clear caches: `wp cache flush`
|
|
713
|
-
|
|
714
|
-
### Content Migration
|
|
715
|
-
|
|
716
|
-
1. Export content: `wp export --post_type=post`
|
|
717
|
-
2. Transfer file to new site
|
|
718
|
-
3. Import: `wp import export.xml --authors=create`
|
|
719
|
-
4. Update URLs: `wp search-replace 'old.com' 'new.com'`
|
|
720
|
-
5. Regenerate thumbnails: `wp media regenerate`
|
|
721
|
-
|
|
722
|
-
### Site Cloning
|
|
723
|
-
|
|
724
|
-
1. Export database: `wp db export`
|
|
725
|
-
2. Archive files: `tar -czf site.tar.gz .`
|
|
726
|
-
3. Transfer to new server
|
|
727
|
-
4. Extract and import database
|
|
728
|
-
5. Update URLs: `wp search-replace`
|
|
729
|
-
6. Update wp-config.php settings
|