Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

anjorот anjor★ 18 звёзд на GitHub21 установка в других каталогах

Об этом скилле

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, arguments and options (flags, type, required, choices, default; acceptsPath: true when it takes a Compass path as well as a RID);
  • beta, destructive and paged;
  • outputFormats (binary means raw bytes);
  • sdkMethods (the SDK method it calls, relative to FoundryClient);
  • generated (a pltr api command) and local (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:

  1. --profile NAME on the command line;
  2. the PLTR_PROFILE environment variable (a profile name);
  3. the default profile, set up with pltr configure configure;
  4. environment variables, when no profile is selected:
    • FOUNDRY_HOST and FOUNDRY_TOKEN, or
    • FOUNDRY_HOST, FOUNDRY_CLIENT_ID and FOUNDRY_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) prints null.
  • Paged commands print one page. Pass nextPageToken back with --page-token, or use --max-pages N or --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 FILE or 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
Полный SKILL.md на GitHub

Установить pltr-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdreference/api/admin/cbac-banner.mdreference/api/admin/cbac-marking-restrictions.mdreference/api/admin/enrollment.mdreference/api/admin/group.mdreference/api/admin/marking-category.mdreference/api/admin/marking.mdreference/api/admin/organization.mdreference/api/admin/role.mdreference/api/admin/user.mdreference/api/aip-agents.mdreference/api/audit.mdreference/api/checkpoints.mdreference/api/connectivity.mdreference/api/data-health.mdreference/api/datasets.mdreference/api/filesystem.mdreference/api/functions.mdreference/api/language-models.mdreference/api/media-sets.mdreference/api/models.mdreference/api/ontologies/action-type-full-metadata.mdreference/api/ontologies/action.mdreference/api/ontologies/attachment-property.mdreference/api/ontologies/attachment.mdreference/api/ontologies/cipher-text-property.mdreference/api/ontologies/geotemporal-series-property.mdreference/api/ontologies/linked-object.mdreference/api/ontologies/media-reference-property.mdreference/api/ontologies/ontology-interface.mdreference/api/ontologies/ontology-object-set.mdreference/api/ontologies/ontology-object.mdreference/api/ontologies/ontology-scenario.mdreference/api/ontologies/ontology-transaction.mdreference/api/ontologies/ontology-value-type.mdreference/api/ontologies/ontology.mdreference/api/ontologies/query.mdreference/api/ontologies/time-series-property-v2.mdreference/api/ontologies/time-series-value-bank-property.mdreference/api/orchestration.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить pltr-cli с