> For the complete documentation index, see [llms.txt](https://www.openhue.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.openhue.io/cli/commands/scenes.md).

# Scenes

## Get Scenes

### Usage

```
openhue get scene [sceneId|sceneName] [flags]
```

Aliases: `scene`, `scenes`

### Flags

<table><thead><tr><th width="103">Name</th><th width="114">Shorthand</th><th width="111">Default</th><th>Usage</th></tr></thead><tbody><tr><td>room</td><td>r</td><td></td><td>Filter scenes by room (name or ID)</td></tr><tr><td>json</td><td>j</td><td><code>false</code></td><td>Format output as JSON</td></tr></tbody></table>

### Examples

```
# List all scenes
openhue get scene

# List all scenes as JSON
openhue get scene --json

# Filter scenes for a given room name
openhue get scenes --room "Living Room"

# Filter scenes for a given room ID
openhue get scenes -r 878a65d6-613b-4239-8b77-588b535bfb4a

# List multiple scenes using either the ID or the name of the scene
openhue get scenes "Palm Beach" Nebula 462e54d9-ec5d-4bf6-879d-ad34cb9a692e
```

## Set Scenes

### Usage

```
openhue set scene [sceneId|sceneName] [flags]
```

Aliases: `scene`, `scenes`

### Flags

<table><thead><tr><th width="103">Name</th><th width="114">Shorthand</th><th width="111">Default</th><th>Usage</th></tr></thead><tbody><tr><td>room</td><td>r</td><td></td><td>Filter lights by room (name or ID).</td></tr><tr><td>action</td><td>a</td><td><code>active</code></td><td>Action to perform on the scene. Allowed: <code>active</code>, <code>dynamic</code>, or <code>static</code></td></tr></tbody></table>

### Examples

```
# Activate a scene
openhue set scene Soho

# Activate a scene by ID
openhue set scene 62af7df3-d390-4408-a7ac-4b6b8805531b

# Activate a scene in a specific room
openhue set scene Soho -r Studio

# Activate a scene with a dynamic palette
openhue set scene Soho -a dynamic
```


---

# 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 dynamically by asking a question.

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

```
GET https://www.openhue.io/cli/commands/scenes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
