GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing leafphp.dev โ Leaf CLI | Leaf PHP Leaf CLI โLeaf CLI creates and runs Leaf projects, installs modules, sets up frontend tooling, and shares compact project context with AI assistants. One tool, from Installation โMake sure Composer is available on your machine: bash Install Leaf CLI globally: bash Getting a conflict about leafs/sprout?If your global composer.json directly requires an older bash Or, if you never use sprout on its own, drop the pin and let Leaf CLI manage it: bash Verify the install by running: bash 01 / AvailabilityGlobal commandThe leaf command becomes available anywhere on your machine.02 / EcosystemComposer-poweredLeaf CLI uses Composer underneath, so it fits naturally into PHP workflows. [Error] command not found: leafIf you get an error saying bash Common locations:
On Bash: bash On Zsh: bash Creating apps โUse bash Entry pointFlagBest for Basic app --litePrototypes, scripts, small tools, single-file starts.MVC app --mvcFull-stack products, teams, views, controllers, and structure.API app --apiBackends, mobile apps, headless products, and frontend clients.Console app --consoleCLI tools built with Seedling.You can skip the prompt: bash Running your app โMove into your project directory and run the development server: bash By default, Leaf serves your app on bash You can also serve a project from another directory: bash Use bash Automatic dependency installation When running your app, Leaf will automatically try to install missing dependencies if no Sharing AI context BetaBetaPortable project context is new in Leaf 5The leaf context command scans real projects of every shape, so its output format and detection rules may still change while it settles.Introduced in Leaf 5 โAgents running inside your project use Use bash This scans your project and prints a compact handoff: your actual routes with their handlers and middleware, installed modules, models, schema files, and environment key names (names only, never values), with the shared context appended at the end. Paste that output into the external assistant before asking for larger changes. The output is a portable snapshot, not a replacement for the two-way leaf context is in beta The scan covers the common project shapes, but real projects always find new ones. If Prompt with context Add billing, protect the dashboard, and create the webhook route. AI sees routes modules entry point structure Scaling a project BetaBetaThe app upgrade workflow is still evolvingThe leaf up command can organize a small Leaf app into MVC structure, but its migration rules and generated output may change while the workflow is tested across more real projects.Command version: 0.1 โNot all apps require a full structure from the start. With Leaf, you can start as small as a single index.php file hosting your application. This is great for prototypes, scripts, and small tools, but as your app grows, you may want to organize it into a more structured MVC format. We added the bash The first time you run leaf up is in beta The migration rules are still being tested against more real projects. Review the generated Running commands โUse bash This keeps project-specific commands close to the app while still giving you one consistent CLI entry point. The global Dependency management โLeaf CLI adds a friendlier layer on top of Composer for Leaf modules and regular Composer packages. Installing packages โInstall a Leaf module: bash You can also include the full Composer package name: bash Install multiple packages at once: bash Install a specific version with bash Uninstalling packages โUse bash View commands โLeaf CLI also includes commands for frontend and view tooling. bash Use
bash In an MVC app, these wire into the app's structure ( Command reference โCommandUse leaf createCreate a new Leaf project.leaf serveRun a local development server.leaf contextPrint compact context for an external assistant.leaf upScale a basic app into MVC structure.leaf installInstall Leaf modules or Composer packages.leaf uninstallRemove modules or packages.leaf runRun a script from composer.json.leaf view:buildBuild frontend assets. |
| You are visitor 01402503 โ GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร600. No cookies required. |