# file

## Description

* Add a file to the Cauldron

## Syntax

`ern cauldron add file <localFilePath> <cauldronFilePath>`

**Arguments**

`<localFilePath>`

* Absolute path to a file to add to the Cauldron

`<cauldronFilePath>`

* Target file path in the Cauldron
* Relative to the root of the Cauldron repository
* Cannot start with `/`
* Should include target file name (can be same as source filename or different)
* Can contain nested directories
* All directories will be created in the Cauldron if necessary.

## Examples

* `ern cauldron add file /etc/example.json data/example.json`\
  Add the file `example.json` from local directory `/etc` to the `data` directory of the Cauldron.
* `ern cauldron add file /etc/example.json data/new.json`\
  Add the file `example.json` from local directory `/etc` to the `data` directory of the Cauldron. Rename the file to `new.json` in the Cauldron.

## Related commands

[ern cauldron update file](https://native.electrode.io/v0.42/cli-commands/cauldron-update/file) | Update a file in the Cauldron\
[ern cauldron del file](https://native.electrode.io/v0.42/cli-commands/cauldron-del/file) | Remove a file from the Cauldron


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://native.electrode.io/v0.42/cli-commands/cauldron-add/file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
