一键导入
atomic-framework-cli-entrypoint
Project-level CLI entrypoint script: shebang, bootstrap and delegation to the framework command handler.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Project-level CLI entrypoint script: shebang, bootstrap and delegation to the framework command handler.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when working on Atomic CLI commands, API entrypoints, console input/output, scaffolders, init flows, migrations/queue/scheduler CLI subcommands, or command-facing bootstrap logic.
Use when working on Atomic App layer (Controller, Model, Page, Storage, PluginManager), Auth flows (Auth, GoogleAuth, TelegramAuth, adapters, services), Session (SessionManager, drivers), and app-level models (Meta, Options, MutexLock).
Use when working on Atomic Core: bootstrap, config loading, App class, request/response helpers, routing, middleware, logging channels, error handling, Prefly checks, DB connections, migrations, crypto, guard roles, ID generation, upload, filesystem, and all route-loader behavior.
Use when working on Atomic data layer: Model, Validator, cache drivers, Codes, Enums, Exceptions hierarchy, file exports (PDF/XLS/CSV), and Support helpers.
Use when you need a fast cross-reference of all 44 Atomic Framework documentation files to find which doc covers which subsystem, feature, or integration.
Use when working on Atomic events (dot-notation typed event bus), hooks (WordPress-style add_action/add_filter), shortcodes, i18n localization, mail sending (Mailer, Notifier), or text-extensibility features.
| name | atomic-framework-cli-entrypoint |
| description | Project-level CLI entrypoint script: shebang, bootstrap and delegation to the framework command handler. |
| argument-hint | entrypoint, shebang, php atomic, bootstrap/app.php, vendor/autoload.php |
| user-invocable | true |
php atomic or execute the atomic file directly.This file is the tiny, project-root executable that boots Composer autoload, loads the application bootstrap and delegates CLI control to the framework.
Place the file in the project root as atomic (preferred) or atomic.php.
Make it executable (chmod +x atomic) so it can be run directly (./atomic).
#!/usr/bin/env php
<?php
define('ATOMIC_START', microtime(true));
require __DIR__.'/vendor/autoload.php';
global $argv;
$app = require_once __DIR__.'/bootstrap/app.php';
$status = $app->handle_command($argv);
exit($status);
bootstrap/app.php MUST return the application/container instance exposing handle_command(array $argv): int../atomic help or php atomic help to list available commands../atomic helpphp atomic initbootstrap/app.php returns a valid application and routes/cli.php is loaded by the bootstrap.vendor/autoload.php exists (run composer install).