pltr-cli
БесплатноБез исполняемых скриптовНе проверенWork with Palantir Foundry through the pltr CLI, which covers every Foundry Platform API endpoint. Datasets and files, SQL, ontologies and objects, actions…
Об этом скилле
pltr: Palantir Foundry from the command line
pltr wraps the official Foundry Platform SDK (foundry-platform-sdk). It has
two kinds of commands:
- Curated commands (
pltr dataset,pltr sql,pltr ontology,pltr orchestration,pltr folder,pltr admin, ...) are the polished path for common tasks, with friendly arguments and tables. - Generated commands (
pltr api <namespace> <resource> <method>) mirror the SDK one to one: one command per SDK method (390). Use them for anything the curated commands don't cover, or when you want the API's exact request and response shapes.
This skill needs a pltr release that has pltr commands. Check with
pltr commands --help; older releases lack the JSON contract described here.
1. Find the command; don't guess
pltr has more than 600 commands, so don't guess names or flags:
pltr commands search list dataset branches # ranked, best first
pltr commands search Dataset.Branch.list # by SDK method
pltr commands show dataset branches list --format json
pltr commands list api datasets # everything under a path
search matches names, descriptions and SDK methods, and ranks curated
commands above generated ones that match as well. show prints one command's
manifest entry:
usage,argumentsandoptions(flags, type, required, choices, default;acceptsPath: truewhen it takes a Compass path as well as a RID);beta,destructiveandpaged;outputFormats(binarymeans raw bytes);sdkMethods(the SDK method it calls, relative toFoundryClient);generated(apltr apicommand) andlocal(makes no Foundry call).
An entry without beta/destructive hasn't recorded its metadata yet;
read its --help before running it. pltr commands list --format json
prints the whole manifest.
The reference/ folder holds the same information as Markdown, one file per
command group, generated from the manifest. Start at
reference/index.md and load only the file you need.
2. Authenticate (headless works)
pltr uses the first of these that applies:
--profile NAMEon the command line;- the
PLTR_PROFILEenvironment variable (a profile name); - the default profile, set up with
pltr configure configure; - environment variables, when no profile is selected:
FOUNDRY_HOSTandFOUNDRY_TOKEN, orFOUNDRY_HOST,FOUNDRY_CLIENT_IDandFOUNDRY_CLIENT_SECRET(OAuth2 client credentials).
With environment variables nothing needs to be set up: no configuration file and no keyring. A stored profile always wins over the variables. Check what pltr will use with:
pltr verify --format json
Never print, log or echo tokens or client secrets.
3. Run with JSON and read the result
Pass --format json, or set PLTR_FORMAT=json once for the session.
- stdout carries exactly one JSON document: the SDK's own serialization,
with Foundry API field names (camelCase) and no null fields. Single objects
print as themselves. Lists use the API's paged shape,
{"data": [...], "nextPageToken": "..."}. A command with no result (a delete, a grant) printsnull. - Paged commands print one page. Pass
nextPageTokenback with--page-token, or use--max-pages Nor--all. - stderr carries JSON Lines only: warnings look like
{"type": "warning", "message": "..."}. On failure the last stderr line is the error object:{"type": "not_found", "message": "...", "exitCode": 5, "statusCode": 404, "errorName": "...", "parameters": {...}}. - Binary commands (file content, Arrow or Parquet results, images)
write raw bytes to
--output FILEor to a pipe, never to a terminal.
| Exit | Meaning | What to do |
|---|---|---|
| 0 | success | |
| 1 | unexpected error, or "no" at a prompt | read the message; PLTR_DEBUG=1 shows a traceback |
| 2 | usage error, or --yes required; wrong_resource_type: a path to the wrong kind of resource; missing_dependency: Node.js or npm is missing or too old (pltr osdk generate) |
fix the arguments (pltr commands show ...); for missing_dependency, tell the user what to install (see hint) |
| 3 | authentication | check credentials with pltr verify |
| 4 | permission denied (403) | the account lacks access; tell the user |
| 5 | not found (404); path_not_found: nothing at a path you gave |
check the RID or path and that the account can see it |
| 6 | the API rejected the request (400, 422) | fix the input; see errorName and parameters |
| 7 | other API or network error (409, 429, 5xx, timeouts), or invalid_response: the API's response doesn't match the SDK's model or isn't JSON |
retry later, or report it; for invalid_response, upgrade pltr: a retry won't help |
| 8 | the work failed (work_failed: a build, query or import you waited for, or pltr osdk generate's generator) or a pltr assert check failed (assertion_failed) |
read parameters (fa |
Установить pltr-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pltr-cli?
Work with Palantir Foundry through the pltr CLI, which covers every Foundry Platform API endpoint. Datasets and files, SQL, ontologies and objects, actions, builds and schedules, folders, projects, spaces, permissions and markings, users and groups, models, streams, media sets, AIP agents and more. Use it when the user mentions Foundry, pltr, a Foundry RID (ri.*), datasets, ontology objects, builds or schedules.
Как установить скилл pltr-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pltr-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic