Files
nomad/website/content/docs/commands/namespace/list.mdx
Aimee Ukasick 23fd87d9c9 Docs: Commands section move "General options" to page bottom (#26001)
* sectionless files plus acl section

* alloc section

* config, deployment sections

* job section

* licence, namespace

* node, node-pool

* operator

* plugin, quota, recommendation

* scaling, sentinel, server, service, system, var, volume

* Add "ENT" label to left nav for enterprise commands

* job tag break into separate folder and files; update options header
2025-06-12 14:31:38 -05:00

47 lines
1.1 KiB
Plaintext

---
layout: docs
page_title: 'nomad namespace list command reference'
description: |
The `nomad namespace list` command displays a list of namespaces.
---
# `nomad namespace list` command reference
The `namespace list` command is used list available namespaces.
## Usage
```plaintext
nomad namespace list [options]
```
The `namespace list` command requires no arguments.
If ACLs are enabled, this command requires a management ACL token to view all
namespaces. A non-management token can be used to list namespaces for which it
has an associated capability.
## Options
- `-json` : Output the namespaces in their JSON format.
- `-t` : Format and display the namespaces using a Go template.
## Examples
List all namespaces:
```shell-session
$ nomad namespace list
Name Description
default Default shared namespace
api-prod Production instances of backend API servers
api-qa QA instances of backend API servers
web-prod Production instances of webservers
web-qa QA instances of webservers
```
## General options
@include 'general_options_no_namespace.mdx'