Skip to main content

config_autofill

Creates, updates, deletes, gets or lists a config_autofill resource.

Overview

Nameconfig_autofill
TypeResource
Idcloudflare.workers.config_autofill

Fields

The following fields are returned by SELECT queries:

Configuration autofill data retrieved successfully

NameDatatypeDescription
default_worker_namestring (example: my-worker)
config_filestring (example: wrangler.toml)
env_worker_namesobject
package_managerstring (npm, yarn, pnpm, bun, uv) (example: npm)
scriptsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, provider_type, provider_account_id, repo_idbranch, root_directoryAnalyze repository for automatic configuration detection

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
provider_account_idstring
provider_typestringSCM provider type
repo_idstring
branchstring
root_directorystring

SELECT examples

Analyze repository for automatic configuration detection

SELECT
default_worker_name,
config_file,
env_worker_names,
package_manager,
scripts
FROM cloudflare.workers.config_autofill
WHERE account_id = '{{ account_id }}' -- required
AND provider_type = '{{ provider_type }}' -- required
AND provider_account_id = '{{ provider_account_id }}' -- required
AND repo_id = '{{ repo_id }}' -- required
AND branch = '{{ branch }}'
AND root_directory = '{{ root_directory }}'
;