The bacalhau job list
command provides a listing of all submitted jobs. This command offers an overview of all tasks and processes registered in the system, allowing users to monitor and manage their jobs effectively.
-h
, --help
:
Description: Display help for the list
command.
--hide-header
:
Description: Opts out of printing the column headers in the results.
--labels string
:
Description: Filters jobs by labels. It's designed to function similar to Kubernetes label selectors.
Default: bacalhau_canary != true
--limit uint32
:
Description: Limits the number of results returned.
Default: 10
--next-token string
:
Description: Uses the provided token for pagination.
--no-style
:
Description: Strips all styling from the table output.
--order-by string
:
Description: Organizes results based on a chosen field. Valid fields are id
and created_at
.
--order-reversed
:
Description: Reverses the order of the displayed results.
--output format
:
Description: Dictates the desired output format for the command. Options are table
, csv
, json
, and yaml
.
Default: table
--pretty
:
Description: Offers a more visually pleasing output for json
and yaml
formats.
--wide
:
Description: Presents full values in the table results, preventing truncation.
--api-host string
:
Description: Defines the host for client-server communication via REST. Overridden by the BACALHAU_API_HOST
environment variable, if set.
Default: bootstrap.production.bacalhau.org
--api-port int
:
Description: Sets the port for RESTful communication between the client and server. The BACALHAU_API_PORT
environment variable takes precedence if set.
Default: 1234
--log-mode logging-mode
:
Description: Designates the desired log format. Options include default
, station
, json
, combined
, and event
.
Default: default
--repo string
:
Description: Points to the bacalhau repository location.
Default: $HOME/.bacalhau
List all jobs:
Execute the command to list all the jobs:
Expected output:
Limit the list to the last two jobs:
Limit the list to display only the last two jobs:
Expected output:
Order the list by creation date in descending order:
Order the jobs by their creation date in a descending manner:
Expected output:
Filter the jobs by specific labels:
Display jobs that have specific labels:
Expected output:
Display the list in JSON format with pretty printing:
Get a limited list of jobs in a formatted JSON output:
Expected output: