pltr-cli 0.12.0__tar.gz → 0.13.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/PKG-INFO +51 -2
  2. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/README.md +49 -0
  3. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/SKILL.md +47 -4
  4. pltr_cli-0.13.0/claude_skill/reference/aip-agents-commands.md +209 -0
  5. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/reference/filesystem-commands.md +18 -45
  6. pltr_cli-0.13.0/claude_skill/reference/functions-commands.md +279 -0
  7. pltr_cli-0.13.0/claude_skill/reference/language-models-commands.md +235 -0
  8. pltr_cli-0.13.0/claude_skill/reference/models-commands.md +232 -0
  9. pltr_cli-0.13.0/claude_skill/reference/streams-commands.md +268 -0
  10. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/workflows/permission-management.md +13 -27
  11. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/user-guide/commands.md +19 -112
  12. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/user-guide/workflows.md +8 -18
  13. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/pyproject.toml +2 -2
  14. pltr_cli-0.13.0/src/pltr/__init__.py +1 -0
  15. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/cli.py +24 -0
  16. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/admin.py +12 -2
  17. pltr_cli-0.13.0/src/pltr/commands/functions.py +503 -0
  18. pltr_cli-0.13.0/src/pltr/commands/language_models.py +515 -0
  19. pltr_cli-0.13.0/src/pltr/commands/models.py +362 -0
  20. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/project.py +21 -61
  21. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/resource.py +0 -53
  22. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/space.py +25 -303
  23. pltr_cli-0.13.0/src/pltr/commands/streams.py +616 -0
  24. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/admin.py +15 -4
  25. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/dataset.py +2 -3
  26. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/folder.py +6 -1
  27. pltr_cli-0.13.0/src/pltr/services/functions.py +223 -0
  28. pltr_cli-0.13.0/src/pltr/services/language_models.py +281 -0
  29. pltr_cli-0.13.0/src/pltr/services/models.py +179 -0
  30. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/project.py +87 -49
  31. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/resource.py +14 -72
  32. pltr_cli-0.13.0/src/pltr/services/space.py +203 -0
  33. pltr_cli-0.13.0/src/pltr/services/streams.py +290 -0
  34. pltr_cli-0.13.0/tests/test_commands/test_functions.py +629 -0
  35. pltr_cli-0.13.0/tests/test_commands/test_language_models.py +639 -0
  36. pltr_cli-0.13.0/tests/test_commands/test_models.py +404 -0
  37. pltr_cli-0.13.0/tests/test_commands/test_streams.py +579 -0
  38. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_admin.py +20 -15
  39. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_folder.py +7 -1
  40. pltr_cli-0.13.0/tests/test_services/test_functions.py +345 -0
  41. pltr_cli-0.13.0/tests/test_services/test_language_models.py +381 -0
  42. pltr_cli-0.13.0/tests/test_services/test_models.py +274 -0
  43. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_project.py +74 -54
  44. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_resource.py +16 -63
  45. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_space.py +60 -154
  46. pltr_cli-0.13.0/tests/test_services/test_streams.py +376 -0
  47. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/uv.lock +15 -5
  48. pltr_cli-0.12.0/src/pltr/__init__.py +0 -1
  49. pltr_cli-0.12.0/src/pltr/services/space.py +0 -354
  50. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/.github/workflows/ci.yml +0 -0
  51. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/.github/workflows/claude-code-review.yml +0 -0
  52. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/.github/workflows/claude.yml +0 -0
  53. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/.github/workflows/publish.yml +0 -0
  54. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/.github/workflows/test-publish.yml +0 -0
  55. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/.gitignore +0 -0
  56. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/.pre-commit-config.yaml +0 -0
  57. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/CHANGELOG.md +0 -0
  58. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/CLAUDE.md +0 -0
  59. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/LICENSE +0 -0
  60. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/RELEASE.md +0 -0
  61. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/README.md +0 -0
  62. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/reference/admin-commands.md +0 -0
  63. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/reference/connectivity-commands.md +0 -0
  64. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/reference/dataset-commands.md +0 -0
  65. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/reference/mediasets-commands.md +0 -0
  66. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/reference/ontology-commands.md +0 -0
  67. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/reference/orchestration-commands.md +0 -0
  68. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/reference/quick-start.md +0 -0
  69. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/reference/sql-commands.md +0 -0
  70. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/workflows/data-analysis.md +0 -0
  71. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/claude_skill/workflows/data-pipeline.md +0 -0
  72. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/README.md +0 -0
  73. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/api/wrapper.md +0 -0
  74. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/examples/csv-upload.md +0 -0
  75. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/examples/gallery.md +0 -0
  76. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/features/dataset-transactions.md +0 -0
  77. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/migration/v2-pagination.md +0 -0
  78. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/pagination.md +0 -0
  79. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/user-guide/aliases.md +0 -0
  80. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/user-guide/authentication.md +0 -0
  81. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/user-guide/claude-skill.md +0 -0
  82. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/user-guide/quick-start.md +0 -0
  83. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/docs/user-guide/troubleshooting.md +0 -0
  84. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/mypy.ini +0 -0
  85. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/scripts/release.py +0 -0
  86. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/__main__.py +0 -0
  87. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/auth/__init__.py +0 -0
  88. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/auth/base.py +0 -0
  89. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/auth/manager.py +0 -0
  90. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/auth/oauth.py +0 -0
  91. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/auth/storage.py +0 -0
  92. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/auth/token.py +0 -0
  93. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/__init__.py +0 -0
  94. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/aip_agents.py +0 -0
  95. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/alias.py +0 -0
  96. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/completion.py +0 -0
  97. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/configure.py +0 -0
  98. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/connectivity.py +0 -0
  99. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/cp.py +0 -0
  100. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/dataset.py +0 -0
  101. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/folder.py +0 -0
  102. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/mediasets.py +0 -0
  103. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/ontology.py +0 -0
  104. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/orchestration.py +0 -0
  105. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/resource_role.py +0 -0
  106. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/shell.py +0 -0
  107. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/sql.py +0 -0
  108. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/third_party_applications.py +0 -0
  109. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/commands/verify.py +0 -0
  110. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/config/__init__.py +0 -0
  111. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/config/aliases.py +0 -0
  112. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/config/profiles.py +0 -0
  113. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/config/settings.py +0 -0
  114. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/__init__.py +0 -0
  115. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/aip_agents.py +0 -0
  116. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/base.py +0 -0
  117. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/connectivity.py +0 -0
  118. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/copy.py +0 -0
  119. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/mediasets.py +0 -0
  120. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/ontology.py +0 -0
  121. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/orchestration.py +0 -0
  122. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/resource_role.py +0 -0
  123. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/sql.py +0 -0
  124. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/services/third_party_applications.py +0 -0
  125. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/utils/__init__.py +0 -0
  126. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/utils/alias_resolver.py +0 -0
  127. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/utils/completion.py +0 -0
  128. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/utils/formatting.py +0 -0
  129. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/utils/pagination.py +0 -0
  130. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/src/pltr/utils/progress.py +0 -0
  131. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/__init__.py +0 -0
  132. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/conftest.py +0 -0
  133. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/integration/README.md +0 -0
  134. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/integration/__init__.py +0 -0
  135. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/integration/conftest.py +0 -0
  136. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/integration/test_auth_flow.py +0 -0
  137. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/integration/test_cli_integration.py +0 -0
  138. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/integration/test_data_workflows.py +0 -0
  139. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/integration/test_data_workflows_simple.py +0 -0
  140. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/integration/test_simple_integration.py +0 -0
  141. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_auth/__init__.py +0 -0
  142. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_auth/test_base.py +0 -0
  143. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_auth/test_manager.py +0 -0
  144. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_auth/test_oauth.py +0 -0
  145. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_auth/test_storage.py +0 -0
  146. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_auth/test_token.py +0 -0
  147. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/__init__.py +0 -0
  148. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_admin.py +0 -0
  149. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_aip_agents.py +0 -0
  150. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_alias.py +0 -0
  151. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_completion.py +0 -0
  152. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_connectivity.py +0 -0
  153. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_dataset.py +0 -0
  154. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_folder.py +0 -0
  155. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_mediasets.py +0 -0
  156. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_ontology.py +0 -0
  157. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_orchestration.py +0 -0
  158. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_shell.py +0 -0
  159. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_sql.py +0 -0
  160. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_third_party_applications.py +0 -0
  161. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_commands/test_verify_simple.py +0 -0
  162. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_config/__init__.py +0 -0
  163. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_config/test_aliases.py +0 -0
  164. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_config/test_profiles.py +0 -0
  165. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_config/test_settings.py +0 -0
  166. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/__init__.py +0 -0
  167. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_aip_agents.py +0 -0
  168. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_base.py +0 -0
  169. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_connectivity.py +0 -0
  170. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_copy.py +0 -0
  171. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_dataset.py +0 -0
  172. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_dataset_transactions.py +0 -0
  173. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_mediasets.py +0 -0
  174. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_ontology.py +0 -0
  175. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_orchestration.py +0 -0
  176. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_pagination_integration.py +0 -0
  177. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_resource_role.py +0 -0
  178. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_services/test_sql.py +0 -0
  179. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_utils/__init__.py +0 -0
  180. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_utils/test_alias_resolver.py +0 -0
  181. {pltr_cli-0.12.0 → pltr_cli-0.13.0}/tests/test_utils/test_pagination.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pltr-cli
3
- Version: 0.12.0
3
+ Version: 0.13.0
4
4
  Summary: Command-line interface for Palantir Foundry APIs
5
5
  Project-URL: Homepage, https://github.com/anjor/pltr-cli
6
6
  Project-URL: Repository, https://github.com/anjor/pltr-cli
@@ -27,7 +27,7 @@ Classifier: Topic :: System :: Systems Administration
27
27
  Classifier: Topic :: Utilities
28
28
  Requires-Python: >=3.9
29
29
  Requires-Dist: click-repl>=0.3.0
30
- Requires-Dist: foundry-platform-sdk>=1.27.0
30
+ Requires-Dist: foundry-platform-sdk<2.0.0,>=1.69.0
31
31
  Requires-Dist: keyring>=25.6.0
32
32
  Requires-Dist: pandas>=2.0.0
33
33
  Requires-Dist: python-dotenv>=1.1.1
@@ -56,6 +56,9 @@ A comprehensive command-line interface for Palantir Foundry APIs, providing 81+
56
56
  - 🎯 **Comprehensive Ontology Access**: 13 commands for objects, actions, and queries
57
57
  - 🏗️ **Orchestration Management**: Create, manage, and monitor builds, jobs, and schedules
58
58
  - 🎬 **MediaSets Operations**: Upload, download, and manage media content with transaction support
59
+ - 🤖 **Models Management**: Create and inspect ML models and versions in the model registry
60
+ - 🌊 **Streams Management**: Manage streaming datasets and publish real-time data
61
+ - 💬 **Language Models**: Interact with Claude and OpenAI embeddings for LLM operations
59
62
  - 📝 **Full SQL Support**: Execute, submit, monitor, and export query results
60
63
  - 👥 **Admin Operations**: User, group, role, and organization management (16 commands)
61
64
  - 💻 **Interactive Shell**: REPL mode with tab completion and command history
@@ -334,6 +337,52 @@ pltr media-sets download ri.mediasets.main.media-set.abc \
334
337
  - Preview mode (`--preview`)
335
338
  - Transaction-based upload workflow
336
339
 
340
+ ### 🤖 Models Commands
341
+
342
+ pltr-cli provides support for managing ML models and versions in the Foundry model registry. This is distinct from the LanguageModels module, which handles LLM chat and embeddings.
343
+
344
+ **Note**: The SDK does not provide a way to list all models. Use the Foundry web UI or Ontology API to discover models.
345
+
346
+ #### Model Operations
347
+ ```bash
348
+ # Create a new model
349
+ pltr models model create "fraud-detector" --folder ri.compass.main.folder.xxx
350
+
351
+ # Get model details
352
+ pltr models model get ri.foundry.main.model.abc123
353
+
354
+ # Get model as JSON
355
+ pltr models model get ri.foundry.main.model.abc123 --format json
356
+ ```
357
+
358
+ #### Model Version Operations
359
+ ```bash
360
+ # List all versions of a model
361
+ pltr models version list ri.foundry.main.model.abc123
362
+
363
+ # List with pagination
364
+ pltr models version list ri.foundry.main.model.abc123 --page-size 50
365
+
366
+ # Get next page
367
+ pltr models version list ri.foundry.main.model.abc123 \
368
+ --page-size 50 --page-token <token-from-previous-response>
369
+
370
+ # Get specific version details
371
+ pltr models version get ri.foundry.main.model.abc123 v1.0.0
372
+
373
+ # Save version details to file
374
+ pltr models version get ri.foundry.main.model.abc123 v1.0.0 \
375
+ --format json --output version-details.json
376
+ ```
377
+
378
+ **All Models commands support:**
379
+ - Multiple output formats (table, JSON, CSV)
380
+ - File output (`--output filename`)
381
+ - Profile selection (`--profile production`)
382
+ - Preview mode (`--preview`)
383
+
384
+ **Note**: Model version creation requires specialized ML tooling and is not provided via CLI. Use the Python SDK directly for version creation with dill-serialized models.
385
+
337
386
  ### 📊 Dataset Transaction Management
338
387
 
339
388
  pltr-cli provides comprehensive transaction management for datasets, allowing atomic operations with rollback capability:
@@ -18,6 +18,9 @@ A comprehensive command-line interface for Palantir Foundry APIs, providing 81+
18
18
  - 🎯 **Comprehensive Ontology Access**: 13 commands for objects, actions, and queries
19
19
  - 🏗️ **Orchestration Management**: Create, manage, and monitor builds, jobs, and schedules
20
20
  - 🎬 **MediaSets Operations**: Upload, download, and manage media content with transaction support
21
+ - 🤖 **Models Management**: Create and inspect ML models and versions in the model registry
22
+ - 🌊 **Streams Management**: Manage streaming datasets and publish real-time data
23
+ - 💬 **Language Models**: Interact with Claude and OpenAI embeddings for LLM operations
21
24
  - 📝 **Full SQL Support**: Execute, submit, monitor, and export query results
22
25
  - 👥 **Admin Operations**: User, group, role, and organization management (16 commands)
23
26
  - 💻 **Interactive Shell**: REPL mode with tab completion and command history
@@ -296,6 +299,52 @@ pltr media-sets download ri.mediasets.main.media-set.abc \
296
299
  - Preview mode (`--preview`)
297
300
  - Transaction-based upload workflow
298
301
 
302
+ ### 🤖 Models Commands
303
+
304
+ pltr-cli provides support for managing ML models and versions in the Foundry model registry. This is distinct from the LanguageModels module, which handles LLM chat and embeddings.
305
+
306
+ **Note**: The SDK does not provide a way to list all models. Use the Foundry web UI or Ontology API to discover models.
307
+
308
+ #### Model Operations
309
+ ```bash
310
+ # Create a new model
311
+ pltr models model create "fraud-detector" --folder ri.compass.main.folder.xxx
312
+
313
+ # Get model details
314
+ pltr models model get ri.foundry.main.model.abc123
315
+
316
+ # Get model as JSON
317
+ pltr models model get ri.foundry.main.model.abc123 --format json
318
+ ```
319
+
320
+ #### Model Version Operations
321
+ ```bash
322
+ # List all versions of a model
323
+ pltr models version list ri.foundry.main.model.abc123
324
+
325
+ # List with pagination
326
+ pltr models version list ri.foundry.main.model.abc123 --page-size 50
327
+
328
+ # Get next page
329
+ pltr models version list ri.foundry.main.model.abc123 \
330
+ --page-size 50 --page-token <token-from-previous-response>
331
+
332
+ # Get specific version details
333
+ pltr models version get ri.foundry.main.model.abc123 v1.0.0
334
+
335
+ # Save version details to file
336
+ pltr models version get ri.foundry.main.model.abc123 v1.0.0 \
337
+ --format json --output version-details.json
338
+ ```
339
+
340
+ **All Models commands support:**
341
+ - Multiple output formats (table, JSON, CSV)
342
+ - File output (`--output filename`)
343
+ - Profile selection (`--profile production`)
344
+ - Preview mode (`--preview`)
345
+
346
+ **Note**: Model version creation requires specialized ML tooling and is not provided via CLI. Use the Python SDK directly for version creation with dill-serialized models.
347
+
299
348
  ### 📊 Dataset Transaction Management
300
349
 
301
350
  pltr-cli provides comprehensive transaction management for datasets, allowing atomic operations with rollback capability:
@@ -9,14 +9,14 @@ This skill helps you use the pltr-cli to interact with Palantir Foundry effectiv
9
9
 
10
10
  ## Compatibility
11
11
 
12
- - **Skill version**: 1.0.0
13
- - **pltr-cli version**: 0.11.0+
12
+ - **Skill version**: 1.1.0
13
+ - **pltr-cli version**: 0.12.0+
14
14
  - **Python**: 3.9, 3.10, 3.11, 3.12
15
- - **Dependencies**: foundry-platform-sdk >= 1.27.0
15
+ - **Dependencies**: foundry-platform-sdk >= 1.69.0
16
16
 
17
17
  ## Overview
18
18
 
19
- pltr-cli is a comprehensive CLI with 80+ commands for:
19
+ pltr-cli is a comprehensive CLI with 100+ commands for:
20
20
  - **Dataset operations**: Get info, list files, download files, manage branches and transactions
21
21
  - **SQL queries**: Execute queries, export results, manage async queries
22
22
  - **Ontology**: List ontologies, object types, objects, execute actions and queries
@@ -25,6 +25,11 @@ pltr-cli is a comprehensive CLI with 80+ commands for:
25
25
  - **Admin**: User, group, role management
26
26
  - **Connectivity**: External connections and data imports
27
27
  - **MediaSets**: Media file management
28
+ - **Language Models**: Interact with Anthropic Claude models and OpenAI embeddings
29
+ - **Streams**: Create and manage streaming datasets, publish real-time data
30
+ - **Functions**: Execute queries and inspect value types
31
+ - **AIP Agents**: Manage AI agents, sessions, and versions
32
+ - **Models**: ML model registry for model and version management
28
33
 
29
34
  ## Critical Concepts
30
35
 
@@ -83,6 +88,11 @@ Load these files based on the user's task:
83
88
  | Folders, spaces, projects, resources, permissions | `reference/filesystem-commands.md` |
84
89
  | Connections, imports | `reference/connectivity-commands.md` |
85
90
  | Media sets, media items | `reference/mediasets-commands.md` |
91
+ | Anthropic Claude models, OpenAI embeddings | `reference/language-models-commands.md` |
92
+ | Streaming datasets, real-time data publishing | `reference/streams-commands.md` |
93
+ | Functions queries, value types | `reference/functions-commands.md` |
94
+ | AIP Agents, sessions, versions | `reference/aip-agents-commands.md` |
95
+ | ML model registry, model versions | `reference/models-commands.md` |
86
96
 
87
97
  ## Workflow Files
88
98
 
@@ -126,6 +136,39 @@ pltr orchestration builds search
126
136
 
127
137
  # Interactive shell mode
128
138
  pltr shell
139
+
140
+ # Send message to Claude model
141
+ pltr language-models anthropic messages ri.language-models.main.model.xxx \
142
+ --message "Explain this concept"
143
+
144
+ # Generate embeddings
145
+ pltr language-models openai embeddings ri.language-models.main.model.xxx \
146
+ --input "Sample text"
147
+
148
+ # Create streaming dataset
149
+ pltr streams dataset create my-stream \
150
+ --folder ri.compass.main.folder.xxx \
151
+ --schema '{"fieldSchemaList": [{"name": "value", "type": "STRING"}]}'
152
+
153
+ # Publish record to stream
154
+ pltr streams stream publish ri.foundry.main.dataset.xxx \
155
+ --branch master \
156
+ --record '{"value": "hello"}'
157
+
158
+ # Execute a function query
159
+ pltr functions query execute myQuery --parameters '{"limit": 10}'
160
+
161
+ # Get AIP Agent info
162
+ pltr aip-agents get ri.foundry.main.agent.abc123
163
+
164
+ # List agent sessions
165
+ pltr aip-agents sessions list ri.foundry.main.agent.abc123
166
+
167
+ # Get ML model info
168
+ pltr models model get ri.foundry.main.model.abc123
169
+
170
+ # List model versions
171
+ pltr models version list ri.foundry.main.model.abc123
129
172
  ```
130
173
 
131
174
  ## Best Practices
@@ -0,0 +1,209 @@
1
+ # AIP Agents Commands
2
+
3
+ Commands for managing AIP Agents, their conversation sessions, and version history in Foundry.
4
+
5
+ ## RID Formats
6
+ - **Agent**: `ri.foundry.main.agent.{uuid}`
7
+ - **Session**: `ri.foundry.main.session.{uuid}`
8
+
9
+ ## Agent Commands
10
+
11
+ ### Get Agent
12
+
13
+ Get detailed information about an AIP Agent.
14
+
15
+ ```bash
16
+ pltr aip-agents get AGENT_RID [OPTIONS]
17
+
18
+ # Options:
19
+ # --version, -v TEXT Agent version (e.g., '1.0') [default: latest published]
20
+ # --format, -f TEXT Output format (table, json, csv)
21
+ # --output, -o TEXT Output file path
22
+ # --profile, -p TEXT Profile name
23
+
24
+ # Examples
25
+
26
+ # Get latest published version of agent
27
+ pltr aip-agents get ri.foundry.main.agent.abc123
28
+
29
+ # Get specific version
30
+ pltr aip-agents get ri.foundry.main.agent.abc123 --version 1.5
31
+
32
+ # Output as JSON
33
+ pltr aip-agents get ri.foundry.main.agent.abc123 --format json
34
+
35
+ # Save to file
36
+ pltr aip-agents get ri.foundry.main.agent.abc123 \
37
+ --format json \
38
+ --output agent-info.json
39
+ ```
40
+
41
+ ## Session Commands
42
+
43
+ ### List Sessions
44
+
45
+ List conversation sessions for an agent.
46
+
47
+ **Important:** This only lists sessions created via the API. Sessions created in AIP Agent Studio will not appear.
48
+
49
+ ```bash
50
+ pltr aip-agents sessions list AGENT_RID [OPTIONS]
51
+
52
+ # Options:
53
+ # --page-size INTEGER Number of sessions per page
54
+ # --max-pages INTEGER Maximum pages to fetch [default: 1]
55
+ # --all Fetch all available sessions (overrides --max-pages)
56
+ # --format, -f TEXT Output format (table, json, csv)
57
+ # --output, -o TEXT Output file path
58
+ # --profile, -p TEXT Profile name
59
+
60
+ # Examples
61
+
62
+ # List first page of sessions
63
+ pltr aip-agents sessions list ri.foundry.main.agent.abc123
64
+
65
+ # List all sessions
66
+ pltr aip-agents sessions list ri.foundry.main.agent.abc123 --all
67
+
68
+ # List first 3 pages with 50 sessions each
69
+ pltr aip-agents sessions list ri.foundry.main.agent.abc123 \
70
+ --page-size 50 --max-pages 3
71
+
72
+ # Export to CSV
73
+ pltr aip-agents sessions list ri.foundry.main.agent.abc123 \
74
+ --all --format csv --output sessions.csv
75
+ ```
76
+
77
+ ### Get Session
78
+
79
+ Get detailed information about a specific conversation session.
80
+
81
+ ```bash
82
+ pltr aip-agents sessions get AGENT_RID SESSION_RID [OPTIONS]
83
+
84
+ # Options:
85
+ # --format, -f TEXT Output format (table, json, csv)
86
+ # --output, -o TEXT Output file path
87
+ # --profile, -p TEXT Profile name
88
+
89
+ # Examples
90
+
91
+ # Get session details
92
+ pltr aip-agents sessions get \
93
+ ri.foundry.main.agent.abc123 \
94
+ ri.foundry.main.session.xyz789
95
+
96
+ # Export session details to JSON
97
+ pltr aip-agents sessions get \
98
+ ri.foundry.main.agent.abc123 \
99
+ ri.foundry.main.session.xyz789 \
100
+ --format json --output session.json
101
+ ```
102
+
103
+ ## Version Commands
104
+
105
+ ### List Versions
106
+
107
+ List all versions for an AIP Agent. Versions are returned in descending order (most recent first).
108
+
109
+ ```bash
110
+ pltr aip-agents versions list AGENT_RID [OPTIONS]
111
+
112
+ # Options:
113
+ # --page-size INTEGER Number of versions per page
114
+ # --max-pages INTEGER Maximum pages to fetch [default: 1]
115
+ # --all Fetch all available versions (overrides --max-pages)
116
+ # --format, -f TEXT Output format (table, json, csv)
117
+ # --output, -o TEXT Output file path
118
+ # --profile, -p TEXT Profile name
119
+
120
+ # Examples
121
+
122
+ # List first page of versions
123
+ pltr aip-agents versions list ri.foundry.main.agent.abc123
124
+
125
+ # List all versions
126
+ pltr aip-agents versions list ri.foundry.main.agent.abc123 --all
127
+
128
+ # Export all versions to CSV
129
+ pltr aip-agents versions list ri.foundry.main.agent.abc123 \
130
+ --all --format csv --output versions.csv
131
+ ```
132
+
133
+ ## Session Visibility Note
134
+
135
+ **API Sessions Only:** The `sessions list` command only shows sessions created through the API. Sessions created interactively in AIP Agent Studio are not visible through this endpoint.
136
+
137
+ To work with all sessions including those from AIP Agent Studio, use the Foundry web interface.
138
+
139
+ ## Pagination
140
+
141
+ Both `sessions list` and `versions list` support pagination:
142
+
143
+ | Option | Description |
144
+ |--------|-------------|
145
+ | `--page-size N` | Number of items per page |
146
+ | `--max-pages N` | Maximum pages to fetch (default: 1) |
147
+ | `--all` | Fetch all available items |
148
+
149
+ ```bash
150
+ # Fetch first 100 sessions across 2 pages of 50 each
151
+ pltr aip-agents sessions list ri.foundry.main.agent.abc123 \
152
+ --page-size 50 --max-pages 2
153
+
154
+ # Fetch everything
155
+ pltr aip-agents sessions list ri.foundry.main.agent.abc123 --all
156
+ ```
157
+
158
+ ## Common Patterns
159
+
160
+ ### Inspect Agent Before Using
161
+
162
+ ```bash
163
+ # Get agent details to understand its capabilities
164
+ pltr aip-agents get ri.foundry.main.agent.abc123 --format json
165
+
166
+ # Check available versions
167
+ pltr aip-agents versions list ri.foundry.main.agent.abc123
168
+ ```
169
+
170
+ ### Export Session History
171
+
172
+ ```bash
173
+ # List all sessions and export
174
+ pltr aip-agents sessions list ri.foundry.main.agent.abc123 \
175
+ --all \
176
+ --format json \
177
+ --output all-sessions.json
178
+
179
+ # Get details for specific session
180
+ pltr aip-agents sessions get \
181
+ ri.foundry.main.agent.abc123 \
182
+ ri.foundry.main.session.xyz789 \
183
+ --format json \
184
+ --output session-details.json
185
+ ```
186
+
187
+ ### Track Agent Version History
188
+
189
+ ```bash
190
+ # Export complete version history
191
+ pltr aip-agents versions list ri.foundry.main.agent.abc123 \
192
+ --all \
193
+ --format csv \
194
+ --output agent-versions.csv
195
+ ```
196
+
197
+ ### Compare Agent Versions
198
+
199
+ ```bash
200
+ # Get specific version details
201
+ pltr aip-agents get ri.foundry.main.agent.abc123 --version 1.0 \
202
+ --format json --output v1.json
203
+
204
+ pltr aip-agents get ri.foundry.main.agent.abc123 --version 2.0 \
205
+ --format json --output v2.json
206
+
207
+ # Compare with diff
208
+ diff v1.json v2.json
209
+ ```
@@ -59,17 +59,22 @@ pltr folder batch-get ri.compass.main.folder.abc123 ri.compass.main.folder.def45
59
59
  ### Create Space
60
60
 
61
61
  ```bash
62
- pltr space create DISPLAY_NAME ORGANIZATION_RID [OPTIONS]
62
+ pltr space create DISPLAY_NAME [OPTIONS]
63
63
 
64
- # Options:
64
+ # Required Options:
65
+ # --enrollment-rid, -e Enrollment Resource Identifier
66
+ # --organization, -org Organization RID(s) (can specify multiple)
67
+ # --deletion-policy-org Organization RID(s) for deletion policy (can specify multiple)
68
+
69
+ # Optional:
65
70
  # --description TEXT Space description
66
- # --default-roles TEXT Comma-separated default roles
67
- # --role-grants TEXT Role grants config (JSON)
68
71
 
69
72
  # Example
70
- pltr space create "Data Science Team" ri.compass.main.organization.abc123 \
71
- --description "Space for analytics work" \
72
- --default-roles "viewer,editor"
73
+ pltr space create "Data Science Team" \
74
+ --enrollment-rid ri.enrollment.main.enrollment.abc123 \
75
+ --organization ri.compass.main.organization.xyz456 \
76
+ --deletion-policy-org ri.compass.main.organization.xyz456 \
77
+ --description "Space for analytics work"
73
78
  ```
74
79
 
75
80
  ### Get Space
@@ -96,25 +101,6 @@ pltr space update SPACE_RID [--display-name TEXT] [--description TEXT]
96
101
  pltr space delete SPACE_RID [--yes]
97
102
  ```
98
103
 
99
- ### Space Member Management
100
-
101
- ```bash
102
- # List members
103
- pltr space members SPACE_RID
104
-
105
- # Add member
106
- pltr space add-member SPACE_RID PRINCIPAL_ID PRINCIPAL_TYPE ROLE_NAME
107
- # PRINCIPAL_TYPE: "User" or "Group"
108
-
109
- # Remove member
110
- pltr space remove-member SPACE_RID PRINCIPAL_ID PRINCIPAL_TYPE
111
-
112
- # Examples
113
- pltr space add-member ri.compass.main.space.abc123 john.doe User editor
114
- pltr space add-member ri.compass.main.space.abc123 data-team Group viewer
115
- pltr space remove-member ri.compass.main.space.abc123 john.doe User
116
- ```
117
-
118
104
  ## Project Commands
119
105
 
120
106
  ### Create Project
@@ -139,7 +125,6 @@ pltr project get PROJECT_RID
139
125
  pltr project list [--space-rid RID]
140
126
  pltr project update PROJECT_RID [--display-name TEXT] [--description TEXT]
141
127
  pltr project delete PROJECT_RID [--confirm]
142
- pltr project batch-get PROJECT_RIDS...
143
128
  ```
144
129
 
145
130
  ### Add Organizations to Project
@@ -223,22 +208,10 @@ pltr resource batch-get RESOURCE_RIDS...
223
208
 
224
209
  ```bash
225
210
  # Get metadata
226
- pltr resource metadata get RESOURCE_RID
227
-
228
- # Set metadata (JSON)
229
- pltr resource metadata set RESOURCE_RID '{"owner": "data-team", "env": "production"}'
230
-
231
- # Delete metadata keys
232
- pltr resource metadata delete RESOURCE_RID "key1,key2"
233
- ```
234
-
235
- ### Move Resource
236
-
237
- ```bash
238
- pltr resource move RESOURCE_RID TARGET_FOLDER_RID
211
+ pltr resource get-metadata RESOURCE_RID [--format FORMAT]
239
212
 
240
213
  # Example
241
- pltr resource move ri.foundry.main.dataset.abc123 ri.compass.main.folder.new456
214
+ pltr resource get-metadata ri.foundry.main.dataset.abc123 --format json
242
215
  ```
243
216
 
244
217
  ## Resource Lifecycle Commands
@@ -413,13 +386,13 @@ pltr resource-role grant $DATASET analytics-team Group editor
413
386
  pltr resource-role grant $DATASET john.analyst User viewer
414
387
  ```
415
388
 
416
- ### Organize resources
389
+ ### Find resources
417
390
  ```bash
418
- # Search and move datasets
391
+ # Search for datasets
419
392
  pltr resource search "sales" --resource-type dataset --format json --output sales.json
420
393
 
421
- # Move to organized folder
394
+ # Get resource details
422
395
  for rid in $(cat sales.json | jq -r '.[].rid'); do
423
- pltr resource move "$rid" ri.compass.main.folder.sales-data
396
+ pltr resource get "$rid" --format json
424
397
  done
425
398
  ```