kosli deployment ls

kosli deployment ls #

List deployments in a pipeline.

Synopsis #

List deployments in a pipeline. The results are paginated and ordered from latests to oldest. By default, the page limit is 15 deployments per page.

kosli deployment ls PIPELINE-NAME [flags]

Flags #

FlagDescription
-h, --helphelp for ls
-o, --output string[defaulted] The format of the output. Valid formats are: [table, json]. (default "table")
--page int[defaulted] The page number of a response. (default 1)
-n, --page-limit int[defaulted] The number of elements per page. (default 15)

Options inherited from parent commands #

FlagDescription
-a, --api-token stringThe Kosli API token.
-c, --config-file string[optional] The Kosli config file path. (default "kosli")
--debug[optional] Print debug logs to stdout.
-H, --host string[defaulted] The Kosli endpoint. (default "https://app.kosli.com")
-r, --max-api-retries int[defaulted] How many times should API calls be retried when the API host is not reachable. (default 3)
--owner stringThe Kosli user or organization.

Examples #


# list the last 15 deployments for a pipeline:
kosli deployment list yourPipelineName \
	--api-token yourAPIToken \
	--owner yourOrgName

# list the last 30 deployments for a pipeline:
kosli deployment list yourPipelineName \
	--page-limit 30 \
	--api-token yourAPIToken \
	--owner yourOrgName

# list the last 30 deployments for a pipeline (in JSON):
kosli deployment list yourPipelineName \
	--page-limit 30 \
	--api-token yourAPIToken \
	--owner yourOrgName \
	--output json