Reading resources
The PineXQ CLI can read every resource in your context. Each resource type is a
noun with two verbs — list (many) and show <ref> (one):
| Command | Alias | Resource |
|---|---|---|
pinexq job |
Jobs | |
pinexq workdata |
wd |
WorkData |
pinexq processing-step |
ps |
ProcessingSteps |
pinexq template |
Action templates | |
pinexq trigger |
Cron triggers | |
pinexq folder |
Folders |
These commands are read-only and run from any directory — unlike deploy,
register, and generate, they do not need a project. To change resources,
see Acting on resources; for a Job’s
logs and metrics, see Job logs and metrics.
Connecting
Section titled “Connecting”Every read command resolves its endpoint and API key in this order:
- the
--endpoint/--api-keyflags, - the
PINEXQ_ENDPOINT/PINEXQ_API_KEYenvironment variables, - for the endpoint only,
pinexq_endpointin apinexq.tomlin the working directory.
export PINEXQ_ENDPOINT="jobs.api.dev.pinexq.net"export PINEXQ_API_KEY="…"pinexq job listOutput formats
Section titled “Output formats”-o, --output selects the format:
table(default) — a human-readable table.json— a flat array of objects, one per resource, withidandurlon every row and nested objects preserved.csv— RFC 4180 with a header row.
Two more output flags:
--wideadds the extra columns to the table.-q, --quietprints only ids, one per line — handy for piping.
# every completed job's id, piped into another commandpinexq job list --state completed -q | xargs -n1 pinexq job showJSON and CSV always carry the full column set and go to plain stdout, so they can be redirected safely.
Pagination and sorting
Section titled “Pagination and sorting”--limitsets the page size (max 1000) and--offsetthe start;--allfetches every page and overrides both.--sort FIELDpicks the sort field (the choices differ per resource) and--desc/--ascthe direction. Each resource has a natural default — Jobs, WorkData, action templates, and triggers newest-first; ProcessingSteps by title and Folders by path, ascending.
pinexq job list --sort created_at --limit 20pinexq job list --all -o json > jobs.jsonFiltering
Section titled “Filtering”Filter flags are grouped under a Filters panel in each command’s --help.
The families a resource exposes follow its JMA query:
- Tags —
--tag(repeatable, ANDed),--tag-or(repeatable, ORed), and--tqlfor a Tag Query Language expression. - Folder scope —
--folder <path>and--recursive, where the resource supports it. - Dates —
--created-after/--created-before(an ISO 8601 datetime or a bareYYYY-MM-DD). - Resource-specific flags — for example
--statefor Jobs,--kindand--media-typefor WorkData,--function/--version/--deployment-statefor ProcessingSteps,--enabled/--disabledfor triggers, and--path-prefixfor Folders.
Run pinexq <noun> list --help for the full set a noun supports.
pinexq wd list --kind clientupload --media-type text/csv --tag archivedpinexq ps list --deployment-state platform --function resizeInspecting one resource
Section titled “Inspecting one resource”show accepts a resource’s UUID or its full URL for every noun. Two nouns accept
a friendlier reference as well:
pinexq ps show <name>orpinexq ps show <name>@<version>resolves a ProcessingStep by function name — the latest version, or the pinned one.pinexq folder show </path>resolves a folder by its path, and lists the folder’s direct child folders.
pinexq ps show resizepinexq ps show resize@1.2.0pinexq folder show /projects/foopinexq job show 3f2b… -o jsonOne example per resource
Section titled “One example per resource”pinexq job list --state completed --sort created_at --limit 20pinexq wd list --kind clientupload --media-type text/csv -o jsonpinexq ps show resize@1.2.0pinexq template list --tag nightly --widepinexq trigger list --enabledpinexq folder show /projects/foo