{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Create a Cloudflare Pages project for configuring and deploying a site or application.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/pages_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"type":"object","properties":{"build_config":{"description":"Configs for the project build process.","type":"object","properties":{"build_caching":{"description":"Enable build caching for the project.","type":"boolean","examples":[true]},"build_command":{"description":"Command used to build project.","type":"string","examples":["npm run build"]},"destination_dir":{"description":"Output directory of the build.","type":"string","examples":["build"]},"root_dir":{"description":"Directory to run the command.","type":"string","examples":["/"]},"web_analytics_tag":{"description":"The classifying tag for analytics.","type":["string","null"],"examples":["cee1c73f6e4743d0b5e6bb1a0bcaabcc"]},"web_analytics_token":{"description":"The auth token for analytics.","type":["string","null"],"examples":["021e1057c18547eca7b79f2516f06o7x"]}}},"deployment_configs":{"description":"Configs for deployments in a project.","type":"object","properties":{"preview":{"description":"Configs for preview deploys.","allOf":[{"$ref":"#/definitions/pages_deployment_config_values_request"}]},"production":{"description":"Configs for production deploys.","allOf":[{"$ref":"#/definitions/pages_deployment_config_values_request"}]}}},"name":{"description":"Name for the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.","type":"string","examples":["my-pages-app"]},"production_branch":{"description":"Production branch of the project. Used to identify production deployments.","type":"string","examples":["main"]},"source":{"description":"Configs for the project source control.","type":"object","properties":{"config":{"type":"object","properties":{"deployments_enabled":{"description":"Whether to enable automatic deployments when pushing to the source repository.\nWhen disabled, no deployments (production or preview) will be triggered automatically.\n","type":"boolean"},"owner":{"description":"The owner of the repository.","type":"string","examples":["my-org"]},"owner_id":{"description":"The owner ID of the repository.","type":"string","examples":["12345678"]},"path_excludes":{"description":"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported.","type":"array","items":{"type":"string"}},"path_includes":{"description":"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported.","type":"array","items":{"type":"string"}},"pr_comments_enabled":{"description":"Whether to enable PR comments.","type":"boolean"},"preview_branch_excludes":{"description":"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`.","type":"array","items":{"type":"string"}},"preview_branch_includes":{"description":"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`.","type":"array","items":{"type":"string"}},"preview_deployment_setting":{"description":"Controls whether commits to preview branches trigger a preview deployment.","type":"string","enum":["all","none","custom"]},"production_branch":{"description":"The production branch of the repository.","type":"string","examples":["main"]},"production_deployments_enabled":{"description":"Whether to trigger a production deployment on commits to the production branch.","type":"boolean"},"repo_id":{"description":"The ID of the repository.","type":"string","examples":["12345678"]},"repo_name":{"description":"The name of the repository.","type":"string","examples":["my-repo"]}}},"type":{"description":"The source control management provider.","type":"string","enum":["github","gitlab"],"examples":["github"]}},"required":["type","config"]}},"required":["name","production_branch"]}},"required":["path","body"],"additionalProperties":false,"definitions":{"pages_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"pages_deployment_config_values_request":{"type":"object","properties":{"ai_bindings":{"description":"Constellation bindings used for Pages Functions.","type":"object","additionalProperties":{"description":"AI binding.","properties":{"project_id":{"type":"string"}},"required":["project_id"],"type":["object","null"]},"examples":[{"AI_BINDING":{"project_id":"some-project-id"}}]},"always_use_latest_compatibility_date":{"description":"Whether to always use the latest compatibility date for Pages Functions.","type":"boolean","default":false,"examples":[false]},"analytics_engine_datasets":{"description":"Analytics Engine bindings used for Pages Functions.","type":"object","additionalProperties":{"description":"Analytics Engine binding.","properties":{"dataset":{"description":"Name of the dataset.","type":"string","examples":["api_analytics"]}},"required":["dataset"],"type":["object","null"]},"examples":[{"ANALYTICS_ENGINE_BINDING":{"dataset":"api_analytics"}}]},"browsers":{"description":"Browser bindings used for Pages Functions.","type":"object","additionalProperties":{"description":"Browser binding.","type":["object","null"]},"examples":[{"BROWSER":{}}]},"build_image_major_version":{"description":"The major version of the build image to use for Pages Functions. Version 1 is retired and its projects are moved to version 3. Once a project's builds have been moved, a request that sets version 1 is rejected.","type":"integer","default":3,"examples":[3]},"compatibility_date":{"description":"Compatibility date used for Pages Functions.","type":"string","examples":["2025-01-01T00:00:00Z"]},"compatibility_flags":{"description":"Compatibility flags used for Pages Functions.","type":"array","items":{"type":"string"},"examples":[["url_standard"]]},"d1_databases":{"description":"D1 databases used for Pages Functions.","type":"object","additionalProperties":{"description":"D1 binding.","properties":{"id":{"description":"UUID of the D1 database.","type":"string","examples":["445e2955-951a-43f8-a35b-a4d0c8138f63"]}},"required":["id"],"type":["object","null"]},"examples":[{"D1_BINDING":{"id":"445e2955-951a-43f8-a35b-a4d0c8138f63"}}]},"durable_object_namespaces":{"description":"Durable Object namespaces used for Pages Functions.","type":"object","additionalProperties":{"description":"Durable Object binding.","properties":{"namespace_id":{"description":"ID of the Durable Object namespace.","type":"string","examples":["5eb63bbbe01eeed093cb22bb8f5acdc3"]}},"required":["namespace_id"],"type":["object","null"]},"examples":[{"DO_BINDING":{"namespace_id":"5eb63bbbe01eeed093cb22bb8f5acdc3"}}]},"env_vars":{"description":"Environment variables used for builds and Pages Functions.","type":"object","additionalProperties":{"oneOf":[{"$ref":"#/definitions/pages_plain_text_env_var"},{"$ref":"#/definitions/pages_secret_text_env_var"}],"type":["object","null"]}},"fail_open":{"description":"Whether to fail open when the deployment config cannot be applied.","type":"boolean","default":true,"examples":[true]},"hyperdrive_bindings":{"description":"Hyperdrive bindings used for Pages Functions.","type":"object","additionalProperties":{"description":"Hyperdrive binding.","properties":{"id":{"type":"string","examples":["a76a99bc342644deb02c38d66082262a"]}},"required":["id"],"type":["object","null"]},"examples":[{"HYPERDRIVE":{"id":"a76a99bc342644deb02c38d66082262a"}}]},"kv_namespaces":{"description":"KV namespaces used for Pages Functions.","type":"object","additionalProperties":{"description":"KV namespace binding.","properties":{"namespace_id":{"description":"ID of the KV namespace.","type":"string","examples":["5eb63bbbe01eeed093cb22bb8f5acdc3"]}},"required":["namespace_id"],"type":["object","null"]},"examples":[{"KV_BINDING":{"namespace_id":"5eb63bbbe01eeed093cb22bb8f5acdc3"}}]},"limits":{"description":"Limits for Pages Functions.","type":"object","properties":{"cpu_ms":{"description":"CPU time limit in milliseconds.","type":"integer","examples":[100]}},"required":["cpu_ms"],"examples":[{"cpu_ms":100}]},"mtls_certificates":{"description":"mTLS bindings used for Pages Functions.","type":"object","additionalProperties":{"description":"mTLS binding.","properties":{"certificate_id":{"type":"string","examples":["d7cdd17c-916f-4cb7-aabe-585eb382ec4e"]}},"required":["certificate_id"],"type":["object","null"]},"examples":[{"MTLS":{"certificate_id":"d7cdd17c-916f-4cb7-aabe-585eb382ec4e"}}]},"placement":{"description":"Placement setting used for Pages Functions.","type":"object","properties":{"mode":{"description":"Placement mode.","type":"string","examples":["smart"]}},"required":["mode"],"examples":[{"mode":"smart"}]},"queue_producers":{"description":"Queue Producer bindings used for Pages Functions.","type":"object","additionalProperties":{"description":"Queue Producer binding.","properties":{"name":{"description":"Name of the Queue.","type":"string","examples":["some-queue"]}},"required":["name"],"type":["object","null"]},"examples":[{"QUEUE_PRODUCER_BINDING":{"name":"some-queue"}}]},"r2_buckets":{"description":"R2 buckets used for Pages Functions.","type":"object","additionalProperties":{"description":"R2 binding.","properties":{"jurisdiction":{"description":"Jurisdiction of the R2 bucket.","type":["string","null"],"examples":["eu"]},"name":{"description":"Name of the R2 bucket.","type":"string","examples":["some-bucket"]}},"required":["name"],"type":["object","null"]},"examples":[{"R2_BINDING":{"name":"some-bucket"}}]},"services":{"description":"Services used for Pages Functions.","type":"object","additionalProperties":{"description":"Service binding.","properties":{"entrypoint":{"description":"The entrypoint to bind to.","type":["string","null"]},"environment":{"description":"The Service environment.","type":"string"},"service":{"description":"The Service name.","type":"string"}},"required":["service"],"type":["object","null"]},"examples":[{"SERVICE_BINDING":{"entrypoint":"MyHandler","environment":"production","service":"example-worker"}}]},"usage_model":{"description":"The usage model for Pages Functions.","type":"string","default":"standard","enum":["standard","bundled","unbound"],"examples":["standard"]},"vectorize_bindings":{"description":"Vectorize bindings used for Pages Functions.","type":"object","additionalProperties":{"description":"Vectorize binding.","properties":{"index_name":{"type":"string","examples":["my_index"]}},"required":["index_name"],"type":["object","null"]},"examples":[{"VECTORIZE":{"index_name":"my_index"}}]},"wrangler_config_hash":{"description":"Hash of the Wrangler configuration used for the deployment.","type":"string","examples":["abc123def456"]}}},"pages_plain_text_env_var":{"description":"A plaintext environment variable.","type":["object","null"],"properties":{"type":{"type":"string","enum":["plain_text"]},"value":{"description":"Environment variable value.","type":"string"}},"required":["type","value"],"examples":[{"type":"plain_text","value":"hello world"}]},"pages_secret_text_env_var":{"description":"An encrypted environment variable.","type":["object","null"],"properties":{"type":{"type":"string","enum":["secret_text"]},"value":{"description":"Secret value.","type":"string"}},"required":["type","value"],"examples":[{"type":"secret_text","value":""}]}}},"name":"Create a Cloudflare Pages project","id":"cloudflare.pages-project-create-project","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"name":"my-pages-app","production_branch":"main"}},"maxRequests":1,"summary":false}}