﻿---
title: nightshift cli namespace
description: Ask the Nightshift assistant a question and get its answer back in a single response, without starting an investigation. This is elastic kb agent-builder...
url: https://www.elastic.co/elastic/docs-builder/docs/5112/reference/elastic-cli/cli/nightshift
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# nightshift cli namespace
```bash
elastic nightshift --help
```

<warning>
  Nightshift commands are experimental and subject to significant changes before they reach a stable state. Each run prints a warning to stderr; pass `--accept-experimental` to suppress it. The warning is not printed with `--json`.
</warning>

Ask the Nightshift assistant a question and get its answer back in a single response, without starting an investigation.
This is `elastic kb agent-builder post-chat-message` with the agent fixed to `nightshift.assistant`.
Nightshift is only available on Serverless Observability projects, with the `agentBuilder:experimentalFeatures` advanced setting enabled.
The command is hidden when the context's `kibana.version` [hint](/elastic/docs-builder/docs/5112/reference/elastic-cli/cli/configuration#versions) is a Elastic Stack version, and the `stack` command profile blocks it.
```bash
elastic nightshift ask "Why did checkout latency spike at 14:00?"
elastic nightshift ask --conversation-id <id> "Which service should I look at first?"
```


## Commands

<page-card>
  Ask the Nightshift assistant a question and get its answer
</page-card>


## Namespace Flags

<definitions>
  <definition term="--message string required">
    The user message to send to the agent.
  </definition>
  <definition term="--accept-experimental">
    Acknowledge that this command is experimental and may change or be removed; suppresses the warning
  </definition>
  <definition term="--conversation-id string">
    The ID of an existing conversation to continue. Omit it to start a new conversation; the response carries the ID to reuse on the next call.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
  <definition term="--no-validate">
    skip input validation and send the request as-is
  </definition>
</definitions>