Skip to content

dt node ls

Overview

List nodes

Synopsis

dt node ls [OPTIONS] [<node_name>] 

Options

  • -f, --filter=<filter>
    Filter expression, e.g. "environment = dev and status = active"

  • -s, --sort=<sort>
    Sort expression: +field for ASC, -field for DESC

  • -o, --offset=<offset>
    Offset to start showing results (default 0)

  • -b, --batch-size=<batch-size>
    Retrieve up to batch-size results (default: no limit)

  • -j, --json
    Output as JSON

  • -p, --pretty
    Pretty print results

Arguments

  • node_name (optional)
    Type: String
    Name of the node

Examples

List all nodes

dt node ls

List nodes based on a name and id prefix

dt node ls name=compute,id=id-123

Filter nodes by environment and sort by creation time

dt node ls -f "environment = dev and status = active" -s "-created_at"

SEE ALSO

← Back to dt node