Files
dcr/docs-crowdin-export/ru-RU/docs/commands/system-commands.mdx.mdx
2026-07-06 02:21:09 +08:00

53 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
sidebar_label: Системные команды (setup, --help, ...)
---
# Системные команды
## `dcr setup`
`~/.dcr/config.toml` — конфигурация реестров
```bash
dcr setup
```
If `~/.dcr/config.toml` is not found, DCR returns an error. Create it manually:
```toml
[[registry]]
name = "default"
url = "https://index.dcr.pm"
```
## `dcr --help`
Shows help for all commands.
```bash
dcr --help
dcr build --help # справка по конкретной команде
```
## `dcr --version`
Shows version and target triple.
```bash
dcr --version # dcr 0.7.0
```
## `dcr --update`
Самообновление. Скачивает последний релиз с GitHub Releases и заменяет текущий бинарник.
```bash
dcr --update
```
Особенности:
* Определяет платформу и архитектуру автоматически
* Warns if installed via AUR (use package manager instead)
* Работает на Linux, macOS, Windows