# Global Flags

Available on every `ace` command.

| Flag        | Short | Description                                      |
| ----------- | ----- | ------------------------------------------------ |
| `--output`  | `-o`  | Output format: `table` (default), `json`, `yaml` |
| `--verbose` | `-v`  | Show full API responses                          |
| `--project` |       | Override project ID for this command             |
| `--region`  |       | Override region for this command                 |
| `--help`    | `-h`  | Help for any command                             |

***

## Output Formats

```bash
# Table (default)
ace instance list

# JSON (for scripting)
ace instance list -o json

# YAML
ace instance list -o yaml

# Pipe to jq
ace instance list -o json | jq '.data[].name'
```

***

## Project & Region Override

Run commands against a different project or region without changing config:

```bash
# Different project
ace instance list --project <other-project-id>

# Different region
ace flavor list --region us-east-1

# Both
ace instance list --project <id> --region us-east-1
```

***

## Precedence

```
CLI flag > Environment variable > Config file > Default
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.acecloud.ai/knowledge-base/cli/global-flags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
