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 --no-local-cache test ::--no-pantsd
and--no-local-cache
aren’t how you’d normally want to run Pants. They’re just there to prevent the daemon and the local cache from preempting the remote cache, so you can see the latter in action. -
You’ll see remote cache use on the Dashboard page.