定制 pinoox/pinx-cli 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

pinoox/pinx-cli

最新稳定版本:1.0.0

Composer 安装命令:

composer require pinoox/pinx-cli

包简介

Developer CLI for single-app Pinoox projects — scaffold, dev, build, and release .pinx packages

README 文档

README

Developer CLI for single-app Pinoox projects built on pinoox/pincore.

Pinx detects the active app from app.php at the project root (must contain a package key). All scaffold and dev commands target that folder only — no multi-app or platform package picker.

Global install (phase 2)

composer global require pinoox/pinx-cli
pinx new my-shop --package=com_acme_shop

Ensure ~/.composer/vendor/bin (or %APPDATA%\Composer\vendor\bin on Windows) is on your PATH.

Project-local use

Shipped with pinoox/app as bin/pinx.

pinx setup
pinx dev
pinx build
pinx release --bump=patch
pinx doctor

App detection

A directory is treated as a Pinoox single-app project when:

  1. app.php exists and returns an array with a non-empty package key
  2. composer.json requires pinoox/pincore (or vendor/pinoox/pincore is present)

Pinx walks up from the current working directory until both conditions match.

Commands

Project lifecycle

Command Description
new Scaffold from pinoox/app template
init Initialize current directory
setup DB migrate + seed
dev Dev server (+ Vite when applicable)
migrate App migrations (--rollback, --status, --platform)
build .pinx package
doctor Deep health check (PHP, layout, env, DB, frontend) — --json, --skip-db
release Version bump + build

App info

Command Description
info Show app metadata and layout from app.php

Scaffolding (make)

Command Description
make controller <Name> Controller/
make model <Name> Model/
make migration <name> database/migrations/
make patch <name> patches/
make portal <Name> Portal/ (--service=)
make form-request <Name> Request/
make seeder <Name> database/seed/
make test <Name> tests/ (--unit, --feature, --force)

Routes

Command Description
route:actions / routes List named actions (--validate, --strict, --json, --cache)

Dependencies

Command Description
deps status Composer + npm manifest status
deps install Install app dependencies
deps update Update app dependencies

Frontend

Command Description
frontend info / fe info Theme stack and npm scripts
frontend dev / fe dev Vite dev server
frontend build / fe build Production build
frontend install npm install
frontend scaffold Starter files (`--stack=vue

Database extras

Command Description
seeder:run / seed Run seeders (-c class)
patch / patch:run Run pending patches
patch:status Patch status
patch:rollback Rollback last batch

Schedule

Command Description
schedule:list List cron tasks
schedule:run Run due tasks (--dry-run)

Pinker

Command Description
pinker status Compare cache vs source
pinker rebuild Rebuild Pinker cache
pinker diff Show differences
pinker clear Clear cache
pinker overrides List override files

Docs & tests

Command Description
api:docs REST API docs (`--format=md
graphql:docs GraphQL schema docs
test / pest Run app tests

Examples

pinx info
pinx make controller ProductController
pinx make model ProductModel
pinx make migration create_products_table
pinx routes --validate
pinx deps install
pinx fe dev
pinx seed
pinx pinker status
pinx test --feature

Monorepo install

cd packages/pinx-cli
composer install
php bin/pinx doctor

Template path resolves to packages/app automatically.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固