install
Copy files and set their permissions and ownership for deployment. Creates directories, overwrites existing with --allow_overwrite, default mode 755. Use --dry_run for safe preview.
Instructions
Copy files and set attributes (permissions, ownership) to destination. Destructive: creates files and directories, overwrites existing targets with --allow_overwrite, sets mode (default 755). Use --dry_run for safe preview. Returns JSON with installation paths and status. Use for software deployment scripts and Makefile install targets. Not for simple file copying without permission changes — use 'cp'. Not for GNU-install-compatible behavior — use 'ginstall'. See also 'cp', 'ginstall'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_overwrite | No | Allow replacing an existing destination. | |
| directory | No | Create directories instead of installing a file. | |
| dry_run | No | Report operations without changing files. | |
| mode | No | Octal mode applied to installed paths. | 755 |
| parents | No | Create missing parent directories. | |
| paths | No | SOURCE DESTINATION, or directories with --directory. |