# ocloud file

Source: https://olef.dev/docs/reference/ocloud/file

Generated from **ocloud 3.17.3**. [All ocloud commands](https://olef.dev/docs/reference/ocloud) · [Olef Cloud overview](https://olef.dev/docs/cloud/overview) · [`olef` commands](https://olef.dev/docs/reference/commands)

Stored plain files for workspaces, projects, and agents

Global options (`--org`, `--project-root`, `--quiet`, `--redact`) apply across commands; see the [`ocloud` command catalog](https://olef.dev/docs/reference/ocloud#global-options).

## ocloud file get

Print a plain file's content (raw; `--json` for an envelope with content_base64). Secret files can't be read back

```bash
ocloud file get --help
```

| Argument | Description |
| --- | --- |
| `<path>` | **Required.** Positional argument. |
| `--json` | A JSON envelope with the file's metadata and content_base64 |
| `--workspace` / `-w` | A workspace (name or id; default: the one linked here) |
| `--project` | A project (id or slug): every workspace of it, or those `--scope` says |
| `--agent` | An agent (`team/name`, a unique name, or its id): loaded in every run of that agent |
| `--personal` | With `--agent`: your own, loaded only in runs for you |

## ocloud file list

Paths, sizes and kinds of the stored files (no contents)

```bash
ocloud file list --help
```

| Argument | Description |
| --- | --- |
| `--workspace` / `-w` | A workspace (name or id; default: the one linked here) |
| `--project` | A project (id or slug): every workspace of it, or those `--scope` says |
| `--agent` | An agent (`team/name`, a unique name, or its id): loaded in every run of that agent |
| `--personal` | With `--agent`: your own, loaded only in runs for you |

## ocloud file put

Store a file for runs, from a local file: at PATH in the source tree, or in the agent's home ('~/…'). Plain files read back; `--secret` ones never do

```bash
ocloud file put --help
```

| Argument | Description |
| --- | --- |
| `<path>` | **Required.** Where it appears: `app/google-services.json`, or '~/.claude/mcp.json' (quoted, so the shell leaves `~` alone) |
| `--from` | **Required.** The local file to read |
| `--secret` | A secret file: write-only, masked in run output, never loaded next to outside code |
| `--allow-secret` | Store it as a plain file even though it looks like a secret |
| `--workspace` / `-w` | A workspace (name or id; default: the one linked here) |
| `--project` | A project (id or slug): every workspace of it, or those `--scope` says |
| `--agent` | An agent (`team/name`, a unique name, or its id): loaded in every run of that agent |
| `--personal` | With `--agent`: your own, loaded only in runs for you |
| `--scope` | With `--project`: which of its workspaces get it (default: all) |
| `--workspaces` | With `--project`: these workspaces only (names or ids; implies `--scope workspaces`) |

## ocloud file rm

Delete a stored file

```bash
ocloud file rm --help
```

| Argument | Description |
| --- | --- |
| `<path>` | **Required.** Positional argument. |
| `--workspace` / `-w` | A workspace (name or id; default: the one linked here) |
| `--project` | A project (id or slug): every workspace of it, or those `--scope` says |
| `--agent` | An agent (`team/name`, a unique name, or its id): loaded in every run of that agent |
| `--personal` | With `--agent`: your own, loaded only in runs for you |
