# urbestack-profile-file-add

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-profile-file-add --path /etc/php.d/99-custom.ini [--note TEXT]
```

## Description

Registers a hand-edited file for inclusion in profile exports. An export carries the file's contents, mode, owner and group. Run urbestack-import --trust-files at the shell to restore the file and see it listed in the import result.

Use --path to supply the absolute path of an existing regular file within the 1 MB size limit. If the file is a symbolic link, register its target. Each path can be registered once.

UrbeStack refuses paths under its own directories or under /proc, /sys, /dev or /run. It also refuses system files it manages, such as its adapter files and the hosts file, and paths whose names suggest they contain secrets.

Use --note to record why the file is included. The note can be up to 200 characters.

## Same in the API

- [POST /profile/files](https://urbestack.com/docs/api/post-profile-files.md): Register a hand-edited file for profile exports

## Command family: profile

- [urbestack-profile-file-del](https://urbestack.com/docs/commands/urbestack-profile-file-del.md): Unregisters a hand-edited file so future profile exports omit it.
- [urbestack-profile-file-list](https://urbestack.com/docs/commands/urbestack-profile-file-list.md): Lists the hand-edited files registered for profile export.
- [urbestack-profile-file-note](https://urbestack.com/docs/commands/urbestack-profile-file-note.md): Changes the note for a registered hand-edited file.
