config_autofill
Creates, updates, deletes, gets or lists a config_autofill resource.
Overview
| Name | config_autofill |
| Type | Resource |
| Id | cloudflare.workers.config_autofill |
Fields
The following fields are returned by SELECT queries:
- list
Configuration autofill data retrieved successfully
| Name | Datatype | Description |
|---|---|---|
default_worker_name | string | (example: my-worker) |
config_file | string | (example: wrangler.toml) |
env_worker_names | object | |
package_manager | string | (npm, yarn, pnpm, bun, uv) (example: npm) |
scripts | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id, provider_type, provider_account_id, repo_id | branch, root_directory | Analyze 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
provider_account_id | string | |
provider_type | string | SCM provider type |
repo_id | string | |
branch | string | |
root_directory | string |
SELECT examples
- list
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 }}'
;