# file

## Description

* Update an existing file in the Cauldron

## Syntax

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

**Arguments**

`<localFilePath>`

* Absolute path to a file to overwrite Cauldron target file with

`<cauldronFilePath>`

* Target file path in the Cauldron, of the file to update (overwrite)
* Relative to the root of the Cauldron repository
* Should include target file name (can be same as source filename or different)
* Source file name can be different&#x20;
* The file referenced by the path should exist in the Cauldron

## Examples

* `ern cauldron update file /Users/username/bar.json foo/bar.json` &#x20;

  Overwrite file `bar.json` in the Cauldron directory `foo`, with the file `bar.json` located in local path `/Users/username`

## Related commands

[ern cauldron add file](/v0.40/cli-commands/cauldron-add/file.md) | Add a file to the Cauldron\
\[ern cauldron del file] | Remove a file from the Cauldron

\[ern cauldron del file]: ../del/file.md


---

# 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.40/cli-commands/cauldron-update/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.
