> 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/it/riferimento/global-options.md).

# Opzioni globali

Opzioni che ogni comando di Devolutions CLI accetta, come il formato di output, la selezione dello spazio di lavoro, il processo in background, le richieste e gli avvisi, con i valori predefiniti e i

Queste opzioni funzionano con ogni comando `devo`, prima o dopo il nome del comando. Per esempio, `devo --json context list` e `devo context list --json` fanno la stessa cosa.

## Output

<table><thead><tr><th width="250">OPZIONE</th><th width="120">PREDEFINITO</th><th>CHE COSA FA</th></tr></thead><tbody><tr><td><code>--output &#x3C;format></code></td><td><code>text</code></td><td>Formato di output: <code>text</code>, <code>json</code> o <code>yaml</code>. JSON e YAML restituiscono il risultato in una busta che gli script possono leggere. Consulti <a href="/cli/it/per-devops-e-amministratori/automate/json-output.md">Leggere i risultati come JSON</a>.</td></tr><tr><td><code>--json</code></td><td>Disattivato</td><td>Come <code>--output json</code>.</td></tr><tr><td><code>--yaml</code></td><td>Disattivato</td><td>Come <code>--output yaml</code>.</td></tr><tr><td><code>--quiet</code></td><td>Disattivato</td><td>Nasconde gli avvisi che non fanno parte del risultato, come un messaggio che dice che il processo in background è stato avviato.</td></tr><tr><td><code>--verbose</code></td><td>Disattivato</td><td>Scrive quegli avvisi nell’output di errore, anche con <code>--output json</code> o <code>--output yaml</code>. Senza <code>--verbose</code> compaiono solo nell’output di testo.</td></tr></tbody></table>

## Selezione dello spazio di lavoro

Per impostazione predefinita, un comando usa il contesto corrente, quello a cui ha effettuato l’accesso per ultimo o che ha selezionato con `devo context use`. Queste opzioni scelgono un altro spazio di lavoro solo per un comando. Consulti [Passare da uno spazio di lavoro all’altro](/cli/it/guide/connect/switch-workspaces.md).

<table><thead><tr><th width="250">OPZIONE</th><th width="120">PREDEFINITO</th><th>CHE COSA FA</th></tr></thead><tbody><tr><td><code>--context &#x3C;name></code></td><td>Contesto corrente</td><td>Usa il contesto <code>&#x3C;name></code>: un profilo locale di Devolutions Remote Desktop Manager, oppure un accesso a Devolutions Cloud o Devolutions Server. Ha la priorità sulla variabile d’ambiente <code>DEVO_CONTEXT</code>.</td></tr><tr><td><code>--source &#x3C;source></code></td><td></td><td>Usa un tipo di spazio di lavoro: <code>sqlite</code> per il profilo locale, <code>cloud</code> o <code>cloud:&#x3C;context></code> per Devolutions Cloud, <code>server</code> o <code>server:&#x3C;context></code> per Devolutions Server. Ha la priorità su <code>--context</code> e sulla variabile d’ambiente <code>DEVO_RDM_SOURCE</code>.</td></tr></tbody></table>

## Processo in background

La maggior parte dei comandi che leggono lo spazio di lavoro passa da un processo in background che `devo` avvia da solo. Consulti [Come funziona Devolutions CLI](/cli/it/guide/understand/how-it-works.md#the-background-process).

<table><thead><tr><th width="250">OPZIONE</th><th width="120">PREDEFINITO</th><th>CHE COSA FA</th></tr></thead><tbody><tr><td><code>--daemon &#x3C;policy></code></td><td><code>auto</code></td><td><code>auto</code> avvia il processo in background quando serve. <code>require</code> ne usa uno già in esecuzione e non ne avvia mai uno. <code>never</code> fallisce invece di contattarlo. Ha la priorità sulla variabile d’ambiente <code>DEVO_DAEMON_MODE</code>.</td></tr><tr><td><code>--no-daemon-autostart</code></td><td>Disattivato</td><td>Non avvia automaticamente il processo in background.</td></tr></tbody></table>

## Richieste

<table><thead><tr><th width="250">OPZIONE</th><th width="120">PREDEFINITO</th><th>CHE COSA FA</th></tr></thead><tbody><tr><td><code>--non-interactive</code></td><td>Disattivato</td><td>Fallisce invece di chiedere un input mancante. Anche attivo quando la variabile d’ambiente <code>DEVO_NON_INTERACTIVE</code> è attivata (qualsiasi valore tranne <code>0</code>, <code>false</code> o <code>no</code>), oppure quando l’input standard è reindirizzato, per esempio in una pipeline.</td></tr><tr><td><code>--answer &#x3C;answer></code></td><td></td><td>Risponde in anticipo a una richiesta. Ripeta per più richieste: le risposte vengono usate in ordine. Per una scelta, indichi l’etichetta dell’opzione o il suo numero, a partire da <code>0</code>. Le risposte della variabile d’ambiente <code>DEVO_PROMPT_ANSWERS</code> vengono dopo.</td></tr></tbody></table>

Consulti [Eseguire senza richieste](/cli/it/per-devops-e-amministratori/automate/non-interactive.md).

## Guida e versione

<table><thead><tr><th width="250">OPZIONE</th><th>CHE COSA FA</th></tr></thead><tbody><tr><td><code>--help</code></td><td>Mostra la guida del comando: la descrizione, i sottocomandi, gli argomenti e le opzioni. Funziona a ogni livello, come <code>devo --help</code> o <code>devo secret run --help</code>.</td></tr><tr><td><code>--version</code></td><td>Mostra la versione di Devolutions CLI. La usi con <code>devo</code> da solo.</td></tr></tbody></table>

## Opzioni che non possono essere combinate

Queste combinazioni arrestano il comando prima che venga eseguito, con il codice di errore `conflictingOptions` e il codice di uscita `2`:

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

Un valore `--source` sconosciuto fallisce con il codice `invalidSource` e il codice di uscita `2`. Un valore `--output` o `--daemon` sconosciuto è rifiutato come qualsiasi altro argomento non valido, con il codice di uscita `2`. Consulti [Codici di uscita ed errori](/cli/it/riferimento/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/it/riferimento/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.
