Skip to main content

Palantir Foundry CLI

Palantir Foundry CLI provides command-line access to Foundry resource operations with shared configuration, authentication, retry handling, access-control guards, and structured output helpers.

Package

  • Python support: 3.11 and 3.12.
  • Distribution: pal_found_cli.
  • Public commands use the pal-found- prefix, for example pal-found-datasets.
  • Runtime dependencies: foundry-platform-sdk>=1.0.0 and python-dotenv>=1.0.0.
  • PyPI long description source: this README.md.

Install and use

Install the latest verified release from PyPI:

python -m pip install pal_found_cli
pal-found-datasets --help

Upgrade an existing installation with python -m pip install --upgrade pal_found_cli. Each release is built from a vX.Y.Z tag, staged on Test PyPI, installed into a clean environment, and smoke-checked before PyPI publication.

The conda recipe uses the same tag-derived version. After a channel release, install with conda install -c t-jet pal_found_cli.

Authentication and configuration

The CLI authenticates to Foundry with an API token and a target hostname, read from a .env file or the environment. Before running any pal-found-* command, configure credentials:

# Copy the template and fill in your values
cp .env.example .env

Set at minimum:

FOUNDRY_TOKEN=your_foundry_api_token_here
FOUNDRY_HOSTNAME=https://foundry.example.com

FOUNDRY_TOKEN is your Foundry API token (personal or service account) and FOUNDRY_HOSTNAME is the URL of the Foundry instance you target. The .env file is searched per ADR-006 (explicit path override via FOUNDRY_AGENTIC_CLI_ENV_FILE, otherwise the repository root). Do not commit .env to version control. Optional settings cover request timeout, output format, access guards, retry, pagination, and tracing; see .env.example for the full list.

Network proxies

Set HTTPS_PROXY for the HTTPS Foundry endpoint. HTTP_PROXY applies to HTTP requests. Lowercase https_proxy and http_proxy take precedence when both forms are set. ALL_PROXY (or all_proxy) supplies a fallback for either scheme. Proxy URLs may use http:// or https://; a bare host and port uses http://. In CGI environments, Python ignores uppercase HTTP_PROXY. The CLI passes these settings to the SDK transport for each invocation.

Use NO_PROXY or no_proxy to bypass the proxy for the configured Foundry hostname. Lowercase takes precedence. The comma-separated list follows Python's urllib.request.proxy_bypass_environment rules: * bypasses all hosts; an exact host, a leading-dot domain, a host with port, or an exact IP address can match. Domain matches respect label boundaries, so example.com matches api.example.com but not badexample.com. CIDR ranges are not supported. Bypass is decided for the configured Foundry hostname when the client is created; requests redirected to a different hostname retain that client's proxy choice. Keep proxy credentials out of command output and logs.

Then verify the setup:

pal-found-datasets --help

This repository contains the installable CLI. The project is split into three independently versioned repositories:

Repository-split and rename design records live in the design repository.

Development

Install the project with development dependencies:

python -m pip install -e ".[dev]"

Run the main validation commands:

ruff check src tests
mypy src
pytest tests --cov=pal_found_cli --cov-report=term-missing --cov-report=xml
python -m build
twine check dist/*

The repository coverage gate is 80% branch coverage.

Metadata

Release files for pal-found-cli 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pal-found-cli 0.1.6
File Size Uploaded Provenance Actions
pal_found_cli-0.1.6.tar.gz 280.2 kB With provenance Details for pal_found_cli-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pal-found-cli 0.1.6
File Interpreter ABI Platform Actions
pal_found_cli-0.1.6-py3-none-any.whl Python 3 none any Details for pal_found_cli-0.1.6-py3-none-any.whl

Total release size: 455.6 kB

Release files / pal_found_cli-0.1.6.tar.gz

Download URL pal_found_cli-0.1.6.tar.gz
Size 280.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ef106ffc5cd4f58c25fc152a80a8487ace4fd4c9a80a2560e19b2797086fe9d2
BLAKE2b-256 checksum
How to use checksums
0b6431c6ba1011f67e64ef2c00880922b5dddb172700fc28e9138ca62a097066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / pal_found_cli-0.1.6-py3-none-any.whl

Download URL pal_found_cli-0.1.6-py3-none-any.whl
Size 175.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b20fb28f9aec41336f0d3f0300159cb33c8f2dbaa893d1d2c12876adec0979f3
BLAKE2b-256 checksum
How to use checksums
97245def09dc3552f9083da0b21adb88d0bdaf09faa1e6c9b337406978dfa4b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for pal-found-cli 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pal_found_cli-0.1.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page