Skip to content
Back to skills

2599 Wp Cli Essentials 5bb5b133

BSecurity

```bash wp --ssh=user@host/path/to/wordpress <command> ```

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
code-qualityphpbashdebuggingapidatabase

Works with

  • cli
  • api
  • mcp

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2599-wp-cli-essentials_5bb5b133 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2599 Wp Cli Essentials 5bb5b133?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2599 Wp Cli Essentials 5bb5b133
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2599-wp-cli-essentials-5bb5b133/badge)](https://www.skillsdirectory.com/skills/tools-only-2599-wp-cli-essentials-5bb5b133)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# WP-CLI Essentials

## SSH Connection Patterns

### Inline SSH

```bash
wp --ssh=user@host/path/to/wordpress <command>
```

### Alias in wp-cli.yml (project-level)

```yaml
ssh:
  mysite:
    cmd: ssh -o StrictHostKeyChecking=no %pseudotty% user@hostname %cmd%
    url: /path/to/wordpress
```

Usage: `wp @mysite <command>`

### Global Aliases (~/.wp-cli/config.yml)

```yaml
@client1:
  ssh: user@client1.com/www/public
@client2:
  ssh: user@client2.rocketcdn.me/www/client2/public
```

## Common Flags

| Flag | Purpose |
|------|---------|
| `--fields=ID,post_title` | Limit output columns |
| `--format=json` | JSON output (pipe to jq) |
| `--format=csv` | CSV output |
| `--posts_per_page=N` | Limit results |
| `--post_type=page` | Filter by post type |
| `--post_status=publish` | Filter by status |
| `--allow-root` | Run as root (hosting that requires it) |
| `--skip-plugins` | Skip plugin loading (faster, useful for debugging) |
| `--skip-themes` | Skip theme loading |
| `--quiet` | Suppress informational messages |

## Useful Diagnostic Commands

```bash
# Site health
wp @site core version
wp @site option get siteurl
wp @site option get home

# Database
wp @site db size
wp @site db tables

# Plugins
wp @site plugin list --status=active --fields=name,version
wp @site plugin status elementor

# Users
wp @site user list --fields=ID,user_login,user_email,roles

# Cron (useful for scheduled posts)
wp @site cron event list
```

## Rocket.net SSH Pattern

Rocket.net sites typically use:

```bash
wp --ssh=sshuser@hostname.rocketcdn.me/www/sitename/public <command>
```

Or with their MCP server for direct API access without SSH.

## Troubleshooting

| Issue | Solution |
|-------|----------|
| `wp: command not found` on remote | Use full path: `/usr/local/bin/wp` or install via SSH |
| SSH key not accepted | Check `~/.ssh/config` for correct IdentityFile |
| `Error establishing a database connection` | DB credentials may differ — check `wp-config.php` |
| Timeout on large exports | Use `--skip-plugins --skip-themes` to reduce memory |
| `PHP Fatal error: Allowed memory size` | Add `--exec="ini_set('memory_limit','512M');"` |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.