> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/cli/da/reference/global-options.md).

# Globale indstillinger

Indstillinger som hver Devolutions CLI-kommando accepterer, herunder outputformat, valg af arbejdsområde, baggrundsproces, prompter og meddelelser, med standardværdier og konflikter.

Disse indstillinger virker med hver `devo`-kommando, før eller efter kommandonavnet. For eksempel gør `devo --json context list` og `devo context list --json` det samme.

## Output

<table><thead><tr><th width="250">INDSTILLING</th><th width="120">STANDARD</th><th>HVAD DEN GØR</th></tr></thead><tbody><tr><td><code>--output &#x3C;format></code></td><td><code>text</code></td><td>Outputformat: <code>text</code>, <code>json</code> eller <code>yaml</code>. JSON og YAML returnerer resultatet i en konvolut som scripts kan læse. Se <a href="/cli/da/til-devops-og-administratorer/automate/json-output.md">Læs resultater som JSON</a>.</td></tr><tr><td><code>--json</code></td><td>Fra</td><td>Det samme som <code>--output json</code>.</td></tr><tr><td><code>--yaml</code></td><td>Fra</td><td>Det samme som <code>--output yaml</code>.</td></tr><tr><td><code>--quiet</code></td><td>Fra</td><td>Skjuler bemærkninger der ikke er en del af resultatet, såsom en meddelelse om at baggrundsprocessen blev startet.</td></tr><tr><td><code>--verbose</code></td><td>Fra</td><td>Skriver de meddelelser til fejloutput, også med <code>--output json</code> eller <code>--output yaml</code>. Uden <code>--verbose</code> vises de kun i tekstoutput.</td></tr></tbody></table>

## Valg af arbejdsområde

Som standard bruger en kommando den aktuelle kontekst, den De sidst loggede på, eller som De valgte med `devo context use`. Disse indstillinger vælger et andet arbejdsområde kun til én kommando. Se [Skift mellem arbejdsområder](/cli/da/vejledninger/connect/switch-workspaces.md).

<table><thead><tr><th width="250">INDSTILLING</th><th width="120">STANDARD</th><th>HVAD DEN GØR</th></tr></thead><tbody><tr><td><code>--context &#x3C;name></code></td><td>Aktuel kontekst</td><td>Bruger konteksten <code>&#x3C;name></code>. En lokal Devolutions Remote Desktop Manager-profil eller et logon til Devolutions Cloud eller Devolutions Server. Har forrang over miljøvariablen <code>DEVO_CONTEXT</code>.</td></tr><tr><td><code>--source &#x3C;source></code></td><td></td><td>Bruger en arbejdsområdetype: <code>sqlite</code> til den lokale profil, <code>cloud</code> eller <code>cloud:&#x3C;context></code> til Devolutions Cloud, <code>server</code> eller <code>server:&#x3C;context></code> til Devolutions Server. Har forrang for <code>--context</code> og miljøvariablen <code>DEVO_RDM_SOURCE</code>.</td></tr></tbody></table>

## Baggrundsproces

De fleste kommandoer der læser arbejdsområdet, går gennem en baggrundsproces som `devo` starter af sig selv. Se [Sådan virker Devolutions CLI](/cli/da/vejledninger/understand/how-it-works.md#the-background-process).

<table><thead><tr><th width="250">INDSTILLING</th><th width="120">STANDARD</th><th>HVAD DEN GØR</th></tr></thead><tbody><tr><td><code>--daemon &#x3C;policy></code></td><td><code>auto</code></td><td><code>auto</code> starter baggrundsprocessen når der er brug for den. <code>require</code> bruger en der allerede kører, og starter aldrig en. <code>never</code> fejler i stedet for at kontakte den. Har forrang for miljøvariablen <code>DEVO_DAEMON_MODE</code>.</td></tr><tr><td><code>--no-daemon-autostart</code></td><td>Fra</td><td>Starter ikke baggrundsprocessen automatisk.</td></tr></tbody></table>

## Prompter

<table><thead><tr><th width="250">INDSTILLING</th><th width="120">STANDARD</th><th>HVAD DEN GØR</th></tr></thead><tbody><tr><td><code>--non-interactive</code></td><td>Fra</td><td>Fejler i stedet for at spørge efter manglende input. Også slået til når miljøvariablen <code>DEVO_NON_INTERACTIVE</code> er slået til (enhver værdi undtagen <code>0</code>, <code>false</code> eller <code>no</code>), eller når standardinput er omdirigeret, for eksempel i en pipeline.</td></tr><tr><td><code>--answer &#x3C;answer></code></td><td></td><td>Svarer på en prompt på forhånd. Gentag for flere prompts. Svarene bruges i rækkefølge. Til et valg skal De angive indstillingens etiket eller dens nummer, fra <code>0</code>. Svar fra miljøvariablen <code>DEVO_PROMPT_ANSWERS</code> kommer efter disse.</td></tr></tbody></table>

Se [Kør uden prompter](/cli/da/til-devops-og-administratorer/automate/non-interactive.md).

## Hjælp og version

<table><thead><tr><th width="250">INDSTILLING</th><th>HVAD DEN GØR</th></tr></thead><tbody><tr><td><code>--help</code></td><td>Viser hjælpen til kommandoen. Dens beskrivelse, underkommandoer, argumenter og indstillinger. Virker på alle niveauer, såsom <code>devo --help</code> eller <code>devo secret run --help</code>.</td></tr><tr><td><code>--version</code></td><td>Viser versionen af Devolutions CLI. Brug den med <code>devo</code> alene.</td></tr></tbody></table>

## Indstillinger der ikke kan kombineres

Disse kombinationer stopper kommandoen før den kører, med fejlkoden `conflictingOptions` og exitkoden `2`.

<table><thead><tr><th width="300">KOMBINATION</th><th>MEDDELELSE</th></tr></thead><tbody><tr><td><code>--json</code> med <code>--yaml</code></td><td>"Use only one output selector: --json, --yaml, or --output."</td></tr><tr><td><code>--json</code> med <code>--output text</code> eller <code>--output yaml</code></td><td>"Use either --json or --output with a matching format, not both."</td></tr><tr><td><code>--yaml</code> med <code>--output text</code> eller <code>--output json</code></td><td>"Use either --yaml or --output with a matching format, not both."</td></tr><tr><td><code>--quiet</code> med <code>--verbose</code></td><td>"Use either --quiet or --verbose, not both."</td></tr></tbody></table>

En ukendt værdi `--source` fejler med koden `invalidSource` og exitkode `2`. En ukendt værdi `--output` eller `--daemon` afvises som ethvert andet ugyldigt argument, med exitkode `2`. Se [Exitkoder og fejl](/cli/da/reference/exit-codes-and-errors.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/cli/da/reference/global-options.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
