Documentation Index
Fetch the complete documentation index at: https://kawax.biz/llms.txt
Use this file to discover all available pages before exploring further.
Include Copilot CLI in your project
If you need strict Copilot CLI version control, you can include it in your project as an npm package. Usually, installing Copilot CLI separately during deployment is enough.See Laravel Cloud usage and GitHub Actions usage.
Prerequisites
Your Laravel project haspackage.json, and your production server has a Node.js runtime, so npm package installation is available.
Setup
1. Install the npm package
Install@github/copilot in dependencies.
2. Configure .env
Set COPILOT_CLI_PATH to the full path to index.js.
base_path(), edit config/copilot.php directly.
Deployment
During production deployment, reinstall dependencies withoutdevDependencies after building assets. @github/copilot remains because it is in dependencies.
npm install --omit=dev, packages in devDependencies are removed, and only dependencies packages (including @github/copilot) remain in node_modules.
Benefits and cautions
| Benefits | Cautions |
|---|---|
| You can manage CLI versions strictly | node_modules size increases |
You can pin versions in package.json | CLI updates must be done manually |
| Everyone on the team uses the same version | A Node.js runtime is required |
Authentication
Authentication is the same regardless of installation method. SetCOPILOT_GITHUB_TOKEN in .env.
For the latest updates, see the GitHub repository.