content/manuals/ai/gordon/how-to/cli.md
{{< summary-bar feature_name="Gordon" >}}
The docker ai command provides a Terminal User Interface (TUI) for Gordon,
integrating AI assistance directly into your terminal.
Launch the interactive TUI:
$ docker ai
This opens Gordon's terminal interface where you can type prompts, approve actions, and continue conversations with full context.
<script src="https://asciinema.org/a/9kvZFH9LO9ZVDpwS.js" id="asciicast-9kvZFH9LO9ZVDpwS" async="true"></script>Pass a prompt directly as an argument:
$ docker ai "list my running containers"
Exit the TUI with /exit or <kbd>Ctrl+C</kbd>.
The working directory sets the default context for Gordon's file operations.
Gordon uses your current shell directory as the working directory:
$ cd ~/my-project
$ docker ai
Override with -C or --working-dir:
$ docker ai -C ~/different-project
Gordon CLI is part of Docker Desktop. To disable it, disable Gordon in Docker Desktop Settings:
The docker ai command includes several subcommands:
Interactive mode (default):
$ docker ai
Opens the TUI for conversational interaction.
Version:
$ docker ai version
Displays the Gordon version.
Feedback:
$ docker ai feedback
Opens a feedback form in your browser.