Built-in Packages
Built-in packages provide dependencies and functions to build and run project tasks. Load symbols from a package with Starlark's load function.
CMake
cmake, cmake_build, cmake_generate
Cloudflare
cf_d1_create, cf_kv_create, cf_queue_create, cf_r2_create, cf_worker_config, cf_wrangler_deploy, cf_wrangler_dev
The Cloudflare package requires the user to provide Wrangler >=4.123.0 and <5.0.0 in the task's virtual PATH; it does not install Wrangler. A project-local installation can be provided by listing Wrangler in package.json, running npm_install, and adding node_modules/.bin to PATH through env_prepend. Resource commands run without a Wrangler configuration file, while Worker commands generate private temporary configurations. Set CLOUDFLARE_ACCOUNT_ID when the authenticated user has multiple accounts. If no credentials are available, xx runs wrangler login once under a cross-process lock and verifies the login before continuing.
Doppler
Go
go, go_binary, go_install, go_protobuf, go_run, go_test
Git
git_clone, git_commit, git_init_repository, git_push, git_semver_latest, git_semver_next, git_sha, git_tag
HTTP
IO
io_append_text, io_copy, io_glob, io_read_text, io_rm, io_rmdir, io_stat, io_write_text
Ninja
Node.js
nodejs, npm_install, npm_run, npx_run
OS
env_append, env_get, env_prepend, env_set, env_unset, os_arch, os_kernel, os_msvc, os_run, os_system_tools, os_xcode, path_make_absolute
Protobuf
protobuf_generate, protobuf_generator, protoc
Secrets
Read how to use the builtin secret manager, or see the Starlark API:
Stripe
Text
xxRPC
Zig
Package names include a version. Tool packages use an exact tool version, while the bundled packages use a one-letter version.
load("@[email protected]", "cmake")
load("@cloudflare@1", "cf_d1_create")
load("@doppler@1", "doppler_secrets")
load("@[email protected]", "go_test")
load("@[email protected]", "ninja")
load("@[email protected]", "protoc")
load("@secrets@1", "xx_secrets")
load("@[email protected]", "stripe_listen")
load("@git@1", "git_clone")
load("@http@1", "http_proxy")
load("@io@1", "io_read_text")
load("@os@1", "env_set")
load("@text@1", "text_template")
load("@xxrpc@1", "xxrpc_client")