hashicorp / hashicorp/nomad

cli: add `alloc list` command to match API endpoint availability

Open
#16,404 0 comments 0 reactions 0 assignees View on GitHub
stage/accepted theme/allocation API theme/cli type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

The Nomad API supports [listing allocations](https://developer.hashicorp.com/nomad/api-docs/allocations#list-allocations) which can be useful for operators in many situations. The Nomad CLI should be enhanced to also support an `alloc list` command for completeness. In medium and large clusters, this output will be very long, therefore it probably makes sense to ensure filtering and pagination are supported in the initial release of this addition.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Nomad allocations API documentation linked in the issue and the CLI entry point for allocation commands. Define how `alloc list` should expose filtering and pagination for large clusters, then verify the command matches the API endpoint and handles the expected output.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.