← 返回命令列表

Linux command

cradle-install 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run the interactive installer with defaults

cradle install

Force install, overwriting existing files

cradle install -f

Install without running SQL setup

cradle install --skip-sql

Install without updating package versions

cradle install --skip-versioning

Install without creating cache directories

cradle install --skip-mkdir

Install without adjusting file permissions

cradle install --skip-chmod

Supply database credentials on the command line

cradle install -h [127.0.0.1] -u [root] -p [password]

说明

cradle install is the bootstrap subcommand of the Cradle PHP framework CLI. It walks through the first-run setup: importing SQL schemas, writing configuration under `config/`, creating cache and upload directories, applying file permissions, and registering active packages with the framework. The command is idempotent when -f is not given; existing configuration and files are preserved, and individual phases can be turned off with the various `--skip-*` flags for use in Docker images, CI, or partial redeploys.

参数

-f, --force
Force installation, overwriting any previously installed files.
--skip-sql
Skip the SQL setup step (databases, seed data, schema import).
--skip-versioning
Skip updating package version metadata.
--skip-mkdir
Skip creation of cache, upload, and log directories.
--skip-chmod
Skip setting filesystem permissions on generated directories.
-h _HOST_
Database host used when SQL setup is enabled.
-u _USER_
Database username.
-p _PASSWORD_
Database password.

FAQ

What is the cradle-install command used for?

cradle install is the bootstrap subcommand of the Cradle PHP framework CLI. It walks through the first-run setup: importing SQL schemas, writing configuration under `config/`, creating cache and upload directories, applying file permissions, and registering active packages with the framework. The command is idempotent when -f is not given; existing configuration and files are preserved, and individual phases can be turned off with the various `--skip-*` flags for use in Docker images, CI, or partial redeploys.

How do I run a basic cradle-install example?

Run `cradle install` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --force do in cradle-install?

Force installation, overwriting any previously installed files.