Pants Cloud Quickstart
This guide shows how to connect your Pantsbuild project to NativeLink Cloud.
-
If you can’t find a
pants.toml
file, create one in the root directory of your Pantsbuild project:Directoryproject/
- get-pants.sh
- BUILD
- pants.toml
-
Copy the following lines into your
pants.toml
:pants.toml [GLOBAL]remote_cache_read = trueremote_cache_write = trueremote_store_address = "[REMOTE_STORE_ADDRESS]"[GLOBAL.remote_store_headers]x-nativelink-api-key = "[API_KEY]" -
Run a pants build with the following flags:
Terminal window pants --no-pantsd --level=trace --no-local-cache test :: -
You’ll see remote cache use on the Dashboard page.