> ## Documentation Index
> Fetch the complete documentation index at: https://docs.youka.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Phụ thuộc

> Kiểm tra, cài đặt và làm mới các binary trợ giúp cục bộ cho import URL và render cục bộ

Một số luồng CLI yêu cầu các binary trợ giúp cục bộ. `youka deps ensure` tải chúng về `~/.youka/binaries`, xác minh chúng và tái sử dụng các bản sao đã được cache ở những lần chạy sau.

Bạn thường cần các phụ thuộc trong hai trường hợp:

* Import URL: tạo project từ một URL từ xa có thể cần `ffmpeg`, `ffprobe`, và `yt-dlp`
* Render cục bộ: `youka export create --local` yêu cầu `ffmpeg`, `ffprobe`, Remotion, và Chromium

## `deps status`

```bash theme={null}
youka deps status [--for <scope>]
```

`deps status` chỉ để xem (read-only). Lệnh in ra liệu các binary cần thiết đã được cài đặt và sẵn sàng hay chưa, sau đó gợi ý lệnh `deps ensure` tương ứng khi cần thiết lập.

### Ví dụ

<CodeGroup>
  ```bash all theme={null}
  youka deps status --json
  ```

  ```bash render theme={null}
  youka deps status --for render --json
  ```
</CodeGroup>

## `deps ensure`

```bash theme={null}
youka deps ensure [--for <scope>] [--update]
```

### Tuỳ chọn

| Option          | Description                                                                             |
| --------------- | --------------------------------------------------------------------------------------- |
| `--for <scope>` | Bộ phụ thuộc cần cài đặt hoặc kiểm tra: `url`, `render`, hoặc `all`. Mặc định là `all`. |
| `--update`      | Bắt buộc làm mới các binary được hỗ trợ.                                                |

### Phạm vi

| Scope    | Cài đặt                                           |
| -------- | ------------------------------------------------- |
| `url`    | `ffmpeg`, `ffprobe`, `yt-dlp`, và `deno` tuỳ chọn |
| `render` | `ffmpeg`, `ffprobe`, Remotion, và Chromium        |
| `all`    | Cả hai bộ                                         |

### Ví dụ

<CodeGroup>
  ```bash all theme={null}
  youka deps ensure --json
  ```

  ```bash url theme={null}
  youka deps ensure --for url --json
  ```

  ```bash render theme={null}
  youka deps ensure --for render --json
  ```

  ```bash refresh theme={null}
  youka deps ensure --for all --update --json
  ```
</CodeGroup>

Không có `--json`, `deps ensure` sẽ in ra một thanh tiến trình cùng phần tóm tắt những binary đã được xác minh, tải xuống hoặc bỏ qua.

## Tiếp theo là gì

* [Projects](/vi/cli/projects) - tạo project từ file hoặc URL
* [Exports](/vi/cli/exports) - chạy `export create --local`
