{"id":29684976,"url":"https://github.com/builtnorth/wp-cli-builtnorth","last_synced_at":"2025-07-23T03:32:13.213Z","repository":{"id":304563858,"uuid":"1019030716","full_name":"builtnorth/wp-cli-builtnorth","owner":"builtnorth","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-22T01:35:46.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-22T03:31:37.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/builtnorth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-07-13T15:32:17.000Z","updated_at":"2025-07-22T01:35:49.000Z","dependencies_parsed_at":"2025-07-13T23:42:42.143Z","dependency_job_id":null,"html_url":"https://github.com/builtnorth/wp-cli-builtnorth","commit_stats":null,"previous_names":["builtnorth/wp-cli-builtnorth"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/builtnorth/wp-cli-builtnorth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/builtnorth%2Fwp-cli-builtnorth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/builtnorth%2Fwp-cli-builtnorth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/builtnorth%2Fwp-cli-builtnorth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/builtnorth%2Fwp-cli-builtnorth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/builtnorth","download_url":"https://codeload.github.com/builtnorth/wp-cli-builtnorth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/builtnorth%2Fwp-cli-builtnorth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266612574,"owners_count":23956257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2025-07-23T03:30:54.070Z","updated_at":"2025-07-23T03:32:13.181Z","avatar_url":"https://github.com/builtnorth.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BuiltNorth WP-CLI Commands\n\nA modular WP-CLI package for BuiltNorth WordPress development workflows.\n\n## Installation\n\n```bash\nwp package install builtnorth/wp-cli-builtnorth\n```\n\n## Commands\n\n### Setup (Standard)\nStandard WordPress project setup:\n\n```bash\nwp builtnorth setup --name=\"My Project\" --email=\"admin@example.com\" --password=\"secure123\"\n```\n\nThis command provides:\n- **WordPress installation** with database management\n- **Theme handling** - Installs from composer, setup/data/themes, or default WordPress themes\n- **Plugin activation** - Activates all available plugins\n- **Content import** - Imports from setup/data/content/*.xml\n- **Media import** - Imports with automatic logo/icon detection\n- **Settings configuration** - Timezone, permalinks, upload settings\n- **Page setup** - Configures home and blog pages if found\n\nOptions:\n- `--name=\u003cname\u003e` - Project name (required)\n- `--username=\u003cusername\u003e` - WordPress admin username (default: admin)\n- `--password=\u003cpassword\u003e` - WordPress admin password (required)\n- `--email=\u003cemail\u003e` - WordPress admin email (required)\n\n### Setup BN Project\nBuiltNorth-specific project setup with Compass theme:\n\n```bash\nwp builtnorth setup-bn-project --name=\"My Project\" --email=\"admin@example.com\" --password=\"secure123\"\n```\n\nThis enhanced setup includes everything from standard setup plus:\n- **Compass theme conversion** - Automatically converts the Compass theme to a project-specific theme\n- **Theme customization** - Renames theme to match project name, removes git references\n- **Dependency management** - Removes compass from composer.json after conversion\n- **NPM workspace integration** - Adds the new theme to npm workspaces and updates build scripts\n- **Advanced configuration** - Additional BuiltNorth-specific optimizations\n\nOptions:\n- `--name=\u003cname\u003e` - Project name (required)\n- `--username=\u003cusername\u003e` - WordPress admin username (default: admin)\n- `--password=\u003cpassword\u003e` - WordPress admin password (required)\n- `--email=\u003cemail\u003e` - WordPress admin email (required)\n- `--skip-wordpress` - Skip WordPress installation\n- `--yes` - Skip confirmation prompts\n\n### Configure\nConfigure WordPress after installation:\n\n```bash\nwp builtnorth configure\n```\n\nOptions:\n- `--skip-content` - Skip content import\n- `--skip-media` - Skip media import\n- `--url=\u003curl\u003e` - Override site URL for search-replace\n- `--yes` - Skip confirmation prompts\n\n### Post Type Switch\nConvert posts from one post type to another:\n\n```bash\n# Basic conversion\nwp builtnorth post-type-switch --from=post --to=article\n\n# Preview changes without making them\nwp builtnorth post-type-switch --from=post --to=news --dry-run\n\n# Convert only published posts\nwp builtnorth post-type-switch --from=post --to=resource --status=publish\n\n# Convert with taxonomy handling\nwp builtnorth post-type-switch --from=post --to=portfolio --include-taxonomies\n```\n\nFeatures:\n- **Safe conversion** with validation and confirmation prompts\n- **Dry run mode** to preview changes\n- **Taxonomy handling** - preserves shared taxonomies, removes unsupported ones\n- **Status filtering** - convert only posts with specific status\n- **Batch limiting** - test with a limited number of posts first\n- **Automatic cleanup** - flushes rewrite rules and clears caches\n\nOptions:\n- `--from=\u003cpost-type\u003e` - Source post type (required)\n- `--to=\u003cpost-type\u003e` - Target post type (required)\n- `--status=\u003cstatus\u003e` - Only convert posts with this status (default: any)\n- `--limit=\u003cnumber\u003e` - Limit number of posts to convert\n- `--dry-run` - Preview changes without making them\n- `--include-taxonomies` - Handle taxonomy mappings between post types\n- `--yes` - Skip confirmation prompt\n\n### Generate\nGenerate test content for development:\n\n```bash\nwp builtnorth generate --count=20 --post-type=post\n```\n\nOptions:\n- `--count=\u003ccount\u003e` - Number of posts to generate (default: 10)\n- `--post-type=\u003cpost-type\u003e` - Post type to generate (default: post)\n- `--taxonomy=\u003ctaxonomy\u003e` - Taxonomy to assign terms from\n- `--terms=\u003cterms\u003e` - Comma-separated list of term slugs to create/assign\n- `--random-terms` - Randomly assign terms to posts\n- `--with-content` - Generate content for posts\n\n## Adding New Commands\n\n1. Create a new command class in `src/Commands/` extending `BaseCommand`\n2. Register it in `command.php`\n3. Use traits from `src/Traits/` for common functionality\n\nExample:\n```php\nnamespace BuiltNorth\\CLI\\Commands;\n\nuse BuiltNorth\\CLI\\BaseCommand;\n\nclass ExportCommand extends BaseCommand {\n    protected $command_name = 'export';\n    \n    protected function get_shortdesc() {\n        return 'Export site data';\n    }\n    \n    public function __invoke($args, $assoc_args) {\n        // Implementation\n    }\n}\n```\n\n## Architecture\n\n- **BaseCommand** - Common functionality for all commands\n- **Traits** - Reusable functionality (FileOperations, etc.)\n- **Utils** - Helper classes\n- **Commands** - Individual command implementations\n\nThis modular structure allows easy addition of new commands like import/export, migration tools, and more.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuiltnorth%2Fwp-cli-builtnorth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuiltnorth%2Fwp-cli-builtnorth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuiltnorth%2Fwp-cli-builtnorth/lists"}