zuplo 7.15.32 → 7.15.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/docs/ai-gateway/custom-pricing.mdx +54 -0
  2. package/docs/ai-gateway/jev.mdx +35 -0
  3. package/docs/ai-gateway/managing-apps.mdx +17 -0
  4. package/docs/ai-gateway/managing-providers.mdx +11 -0
  5. package/docs/ai-gateway/observability/analytics.mdx +2 -2
  6. package/docs/ai-gateway/openrouter.mdx +20 -0
  7. package/docs/ai-gateway/routing.mdx +40 -1
  8. package/docs/ai-gateway/universal-api.mdx +50 -6
  9. package/docs/ai-gateway/user-apps.mdx +44 -2
  10. package/docs/analytics/shared-controls.md +5 -0
  11. package/docs/analytics/tabs/consumers.md +36 -0
  12. package/docs/articles/api-key-api.mdx +16 -1
  13. package/docs/articles/api-key-buckets.mdx +1 -1
  14. package/docs/articles/api-key-consumer-bucket-portal-ui.mdx +1 -1
  15. package/docs/articles/api-key-self-serve-integration.mdx +1 -1
  16. package/docs/articles/api-lint-configuration.mdx +21 -0
  17. package/docs/articles/api-lint-custom-rules.mdx +6 -0
  18. package/docs/articles/branch-based-deployments.mdx +11 -3
  19. package/docs/articles/ci-cd-azure/multi-stage-deployment.mdx +2 -2
  20. package/docs/articles/ci-cd-azure/pr-preview-environments.mdx +23 -4
  21. package/docs/articles/ci-cd-azure/tag-based-releases.mdx +1 -1
  22. package/docs/articles/ci-cd-bitbucket/multi-stage-deployment.mdx +3 -4
  23. package/docs/articles/ci-cd-bitbucket/pr-preview-environments.mdx +6 -5
  24. package/docs/articles/ci-cd-bitbucket/tag-based-releases.mdx +1 -1
  25. package/docs/articles/ci-cd-circleci/multi-stage-deployment.mdx +2 -3
  26. package/docs/articles/ci-cd-circleci/pr-preview-environments.mdx +6 -5
  27. package/docs/articles/ci-cd-circleci/tag-based-releases.mdx +1 -3
  28. package/docs/articles/ci-cd-github/basic-deployment.mdx +6 -6
  29. package/docs/articles/ci-cd-github/cleanup-on-branch-delete.mdx +8 -20
  30. package/docs/articles/ci-cd-github/deploy-and-test.mdx +3 -3
  31. package/docs/articles/ci-cd-github/local-testing.mdx +1 -1
  32. package/docs/articles/ci-cd-github/multi-stage-deployment.mdx +2 -3
  33. package/docs/articles/ci-cd-github/pr-preview-environments.mdx +20 -31
  34. package/docs/articles/ci-cd-github/tag-based-releases.mdx +5 -3
  35. package/docs/articles/ci-cd-gitlab/mr-preview-environments.mdx +10 -4
  36. package/docs/articles/ci-cd-gitlab/multi-stage-deployment.mdx +3 -3
  37. package/docs/articles/ci-cd-gitlab/tag-based-releases.mdx +1 -1
  38. package/docs/articles/custom-ci-cd-azure.mdx +2 -2
  39. package/docs/articles/custom-ci-cd-bitbucket.mdx +2 -2
  40. package/docs/articles/custom-ci-cd-circleci.mdx +2 -2
  41. package/docs/articles/custom-ci-cd-github.mdx +10 -11
  42. package/docs/articles/custom-ci-cd-gitlab.mdx +2 -2
  43. package/docs/articles/environment-variables.mdx +55 -0
  44. package/docs/articles/monetization/api-access.mdx +126 -9
  45. package/docs/articles/monetization/meters.mdx +49 -2
  46. package/docs/articles/monetization/subscription-lifecycle.md +117 -19
  47. package/docs/articles/monetization/usage.mdx +58 -0
  48. package/docs/articles/monorepo-deployment.mdx +10 -25
  49. package/docs/articles/openapi.mdx +14 -0
  50. package/docs/articles/support.mdx +35 -0
  51. package/docs/articles/testing-preview-environments.mdx +1 -1
  52. package/docs/cli/delete.mdx +50 -0
  53. package/docs/cli/delete.partial.mdx +52 -0
  54. package/docs/cli/deploy.mdx +35 -18
  55. package/docs/cli/deploy.partial.mdx +35 -18
  56. package/docs/cli/variable-delete.mdx +36 -0
  57. package/docs/cli/variable-delete.partial.mdx +37 -0
  58. package/docs/concepts/source-control-and-deployment.mdx +5 -5
  59. package/docs/dedicated/source-control.mdx +1 -1
  60. package/docs/dev-portal/dev-portal-create-consumer-on-auth.mdx +1 -1
  61. package/docs/dev-portal/overview.mdx +23 -0
  62. package/docs/dev-portal/zudoku/components/alert.mdx +1 -1
  63. package/docs/dev-portal/zudoku/configuration/api-reference.md +52 -0
  64. package/docs/dev-portal/zudoku/configuration/authentication-auth0.md +25 -0
  65. package/docs/dev-portal/zudoku/configuration/authentication-azure-ad.md +7 -0
  66. package/docs/dev-portal/zudoku/configuration/authentication-openid.md +48 -2
  67. package/docs/dev-portal/zudoku/configuration/authentication.md +4 -0
  68. package/docs/dev-portal/zudoku/configuration/build-configuration.mdx +4 -0
  69. package/docs/dev-portal/zudoku/configuration/navigation.mdx +15 -1
  70. package/docs/dev-portal/zudoku/configuration/overview.md +3 -0
  71. package/docs/dev-portal/zudoku/custom-plugins.md +38 -1
  72. package/docs/dev-portal/zudoku/guides/server-side-content-protection.md +7 -7
  73. package/docs/dev-portal/zudoku/openapi-extensions/x-enum-descriptions.md +85 -0
  74. package/docs/dev-portal/zudoku-partials/configuration/authentication-auth0.partial.md +24 -0
  75. package/docs/errors/build-error.mdx +58 -0
  76. package/docs/mcp-gateway/auth/configuring-entra.mdx +59 -0
  77. package/docs/mcp-gateway/auth/configuring-okta.mdx +30 -6
  78. package/docs/mcp-gateway/auth/configuring-workos.mdx +26 -0
  79. package/docs/mcp-gateway/auth/overview.mdx +2 -2
  80. package/docs/policies/request-validation-inbound/doc.md +54 -0
  81. package/docs/programmable-api/environment.mdx +10 -2
  82. package/package.json +5 -5
@@ -5,6 +5,41 @@ applies_to:
5
5
  hosting: all
6
6
  ---
7
7
 
8
+ ## Get help in the Zuplo Portal
9
+
10
+ Select **Help** in the Zuplo Portal navigation to open the
11
+ [Support page](https://portal.zuplo.com/user/support). From there you can:
12
+
13
+ - **Ask Zuplo AI.** Zuplo AI answers in the context of your project. If it can't
14
+ resolve the problem, it drafts a support ticket for the Zuplo team. If Zuplo
15
+ AI isn't available to you, or an account admin turned AI features off, the
16
+ card links to email support instead.
17
+ - **Book a meeting** with an API expert for a free technical consultation.
18
+ - **Join the community** on Discord.
19
+
20
+ ### Your tickets
21
+
22
+ **Your tickets** lists the conversations you have open with the Zuplo team. You
23
+ open a new ticket by asking Zuplo AI. It drafts the ticket for you. A badge
24
+ shows how many tickets have new replies. Select a ticket to read the
25
+ conversation and write a reply. Zuplo also replies by email. Replying to a
26
+ resolved ticket reopens it, and a toggle switches between open and closed
27
+ tickets.
28
+
29
+ The portal keeps your ticket list per browser. If you open a ticket link from
30
+ another browser or device and the ticket isn't found, use the restore link
31
+ offered under the list to bring your tickets into that browser.
32
+
33
+ ### Premium and emergency support
34
+
35
+ Below your tickets, the page shows **Premium Support** and **Emergency Phone
36
+ Support** for customers whose plan includes them. When an account you belong to
37
+ has premium support, the card includes a contact link. When an account has
38
+ emergency phone support, the card shows the support phone number and that
39
+ account's support PIN. Other accounts see these cards with a note that the
40
+ option is available on enterprise plans. See [Support plans](#support-plans) for
41
+ what each plan includes.
42
+
8
43
  This document explains the Zuplo support plans, communication methods,
9
44
  severities, and response times provided by Zuplo support. The following features
10
45
  are provided with every support plan:
@@ -52,7 +52,7 @@ If you deploy from your own CI with `zuplo deploy`, capture the URL from the
52
52
  deploy command's output and pass it through:
53
53
 
54
54
  ```bash
55
- OUTPUT=$(npx zuplo deploy --api-key "$ZUPLO_API_KEY" --environment "$BRANCH" 2>&1)
55
+ OUTPUT=$(npx zuplo deploy --api-key "$ZUPLO_API_KEY" --branch "$BRANCH" 2>&1)
56
56
  echo "$OUTPUT"
57
57
  DEPLOY_URL=$(echo "$OUTPUT" | grep -oP 'Deployed to \K(https://[^ ]+)')
58
58
 
@@ -78,6 +78,51 @@ applies_to:
78
78
  usage="$0 delete (--url <url> | --branch <branch>) [options]"
79
79
  >
80
80
 
81
+ ## Common use cases
82
+
83
+ The following examples assume that you are passing in your `--api-key` either as
84
+ an argument or through the `ZUPLO_API_KEY` environment variable.
85
+
86
+ ### Deleting an environment by branch
87
+
88
+ Pass the same branch name that you gave to
89
+ [`zuplo deploy --branch`](./deploy.mdx). The CLI finds the environment that the
90
+ branch deployed in the project and deletes it, so you don't have to capture the
91
+ environment URL.
92
+
93
+ ```bash
94
+ zuplo delete --project my-project --branch my-feature
95
+ ```
96
+
97
+ If no environment exists for the branch, the command reports that none was found
98
+ and exits without an error. This makes it safe to run in a cleanup step that can
99
+ fire more than once.
100
+
101
+ ### Deleting an environment by URL
102
+
103
+ ```bash
104
+ zuplo delete --url https://my-api-dev-123abc.zuplo.app
105
+ ```
106
+
107
+ ### Choosing between `--url` and `--branch`
108
+
109
+ Pass exactly one of `--url` or `--branch`. The command fails if you pass both,
110
+ and fails if you pass neither.
111
+
112
+ The CLI reads `--branch` only when you type it on the command line. An exported
113
+ `ZUPLO_BRANCH` environment variable is ignored by `zuplo delete`, so a variable
114
+ that a CI job exports for other commands can't choose the environment you
115
+ delete. `zuplo deploy` ignores `ZUPLO_BRANCH` the same way.
116
+
117
+ ### Deleting a pull request preview in CI
118
+
119
+ When a pull request closes, delete the environment that the pull request
120
+ deployed, using the same branch name that the deploy step used.
121
+
122
+ ```bash
123
+ zuplo delete --project my-project --branch "$BRANCH_NAME"
124
+ ```
125
+
81
126
  </CliCommand>
82
127
 
83
128
  ## Global options
@@ -86,3 +131,8 @@ The following global options are available for all commands:
86
131
 
87
132
  - [`--help`](./global-options.mdx#help)
88
133
  - [`--api-key`](./global-options.mdx#api-key)
134
+
135
+ ## Additional resources
136
+
137
+ - [Branch-Based Deployments](../articles/branch-based-deployments.mdx)
138
+ - [Deploy command](./deploy.mdx)
@@ -0,0 +1,52 @@
1
+ ---
2
+ additional-resources:
3
+ - name: Branch-Based Deployments
4
+ href: ../articles/branch-based-deployments.mdx
5
+ - name: Deploy command
6
+ href: ./deploy.mdx
7
+ ---
8
+
9
+ ## Common use cases
10
+
11
+ The following examples assume that you are passing in your `--api-key` either as
12
+ an argument or through the `ZUPLO_API_KEY` environment variable.
13
+
14
+ ### Deleting an environment by branch
15
+
16
+ Pass the same branch name that you gave to
17
+ [`zuplo deploy --branch`](./deploy.mdx). The CLI finds the environment that the
18
+ branch deployed in the project and deletes it, so you don't have to capture the
19
+ environment URL.
20
+
21
+ ```bash
22
+ zuplo delete --project my-project --branch my-feature
23
+ ```
24
+
25
+ If no environment exists for the branch, the command reports that none was found
26
+ and exits without an error. This makes it safe to run in a cleanup step that can
27
+ fire more than once.
28
+
29
+ ### Deleting an environment by URL
30
+
31
+ ```bash
32
+ zuplo delete --url https://my-api-dev-123abc.zuplo.app
33
+ ```
34
+
35
+ ### Choosing between `--url` and `--branch`
36
+
37
+ Pass exactly one of `--url` or `--branch`. The command fails if you pass both,
38
+ and fails if you pass neither.
39
+
40
+ The CLI reads `--branch` only when you type it on the command line. An exported
41
+ `ZUPLO_BRANCH` environment variable is ignored by `zuplo delete`, so a variable
42
+ that a CI job exports for other commands can't choose the environment you
43
+ delete. `zuplo deploy` ignores `ZUPLO_BRANCH` the same way.
44
+
45
+ ### Deleting a pull request preview in CI
46
+
47
+ When a pull request closes, delete the environment that the pull request
48
+ deployed, using the same branch name that the deploy step used.
49
+
50
+ ```bash
51
+ zuplo delete --project my-project --branch "$BRANCH_NAME"
52
+ ```
@@ -129,18 +129,27 @@ zuplo deploy --project my-project
129
129
  ```
130
130
 
131
131
  ```bash
132
- # If you don't wish to use the current Git branch as the name of the
133
- # environment, you can specify one using --environment
132
+ # If you don't wish to use the current Git branch, specify the branch name
133
+ # to deploy as with --branch
134
134
 
135
- zuplo deploy --project my-project --environment my-env-name
135
+ zuplo deploy --project my-project --branch my-branch-name
136
136
  ```
137
137
 
138
+ :::note
139
+
140
+ `--environment` is deprecated. Use `--branch` instead. If you pass both,
141
+ `--branch` wins. The CLI reads `--branch` only when you type it on the command
142
+ line. An exported `ZUPLO_BRANCH` environment variable doesn't set the branch
143
+ for `deploy`.
144
+
145
+ :::
146
+
138
147
  ### Deploying from CI/CD
139
148
 
140
- Without `--environment`, the CLI names the environment after the current git
141
- branch. CI systems usually check out a detached HEAD, in which case the CLI
142
- resolves the branch from the remote branches that contain the checked-out
143
- commit. Two cases break this inference:
149
+ Without `--branch`, the CLI names the environment after the current git branch.
150
+ CI systems usually check out a detached HEAD, in which case the CLI resolves the
151
+ branch from the remote branches that contain the checked-out commit. Two cases
152
+ break this inference:
144
153
 
145
154
  - On GitHub Actions `pull_request` events, the checkout is the pull request
146
155
  merge ref (`refs/pull/<number>/merge`) — a commit that doesn't exist on any
@@ -148,24 +157,32 @@ commit. Two cases break this inference:
148
157
  - When the checked-out commit exists on more than one branch, the first match
149
158
  wins, which may not be the branch that triggered the build.
150
159
 
151
- Always pass `--environment` explicitly in CI so that every trigger deploys the
152
- same, predictably named environment:
160
+ Always pass `--branch` explicitly in CI so that every trigger deploys the same,
161
+ predictably named environment:
153
162
 
154
163
  ```bash
155
164
  # GitHub Actions: github.head_ref is the source branch on pull_request
156
165
  # events; github.ref_name is the branch on push events
157
- zuplo deploy --project my-project --environment "$BRANCH_NAME"
166
+ zuplo deploy --project my-project --branch "$BRANCH_NAME"
158
167
  ```
159
168
 
160
- Deploying the same environment name always updates the same environment and
161
- keeps its URL stable across deploys. This matters whenever an external system
162
- must match the URL exactly — an OIDC token audience, a webhook registration, or
163
- an allowlist. Capture the URL from the deploy output (`Deployed to
169
+ Deploying the same branch name always updates the same environment and keeps its
170
+ URL stable across deploys. This matters whenever an external system must match
171
+ the URL exactly — an OIDC token audience, a webhook registration, or an
172
+ allowlist. Capture the URL from the deploy output (`Deployed to
164
173
  https://...`) rather than constructing it from the branch name: the URL
165
- hostname uses a normalized, truncated form of the environment name plus a
166
- unique identifier. See
167
- [Branch-Based Deployments](../articles/branch-based-deployments.mdx) for the
168
- naming rules.
174
+ hostname uses a normalized, truncated form of the branch name plus a unique
175
+ identifier. See [Branch-Based Deployments](../articles/branch-based-deployments.mdx)
176
+ for the naming rules.
177
+
178
+ ### Cleaning up a branch deployment
179
+
180
+ To remove the environment that a branch deployed, pass the same branch name to
181
+ [`zuplo delete`](./delete.mdx). You don't need the environment URL.
182
+
183
+ ```bash
184
+ zuplo delete --project my-project --branch "$BRANCH_NAME"
185
+ ```
169
186
 
170
187
  ## Polling timeout
171
188
 
@@ -19,18 +19,27 @@ zuplo deploy --project my-project
19
19
  ```
20
20
 
21
21
  ```bash
22
- # If you don't wish to use the current Git branch as the name of the
23
- # environment, you can specify one using --environment
22
+ # If you don't wish to use the current Git branch, specify the branch name
23
+ # to deploy as with --branch
24
24
 
25
- zuplo deploy --project my-project --environment my-env-name
25
+ zuplo deploy --project my-project --branch my-branch-name
26
26
  ```
27
27
 
28
+ :::note
29
+
30
+ `--environment` is deprecated. Use `--branch` instead. If you pass both,
31
+ `--branch` wins. The CLI reads `--branch` only when you type it on the command
32
+ line. An exported `ZUPLO_BRANCH` environment variable doesn't set the branch
33
+ for `deploy`.
34
+
35
+ :::
36
+
28
37
  ### Deploying from CI/CD
29
38
 
30
- Without `--environment`, the CLI names the environment after the current git
31
- branch. CI systems usually check out a detached HEAD, in which case the CLI
32
- resolves the branch from the remote branches that contain the checked-out
33
- commit. Two cases break this inference:
39
+ Without `--branch`, the CLI names the environment after the current git branch.
40
+ CI systems usually check out a detached HEAD, in which case the CLI resolves the
41
+ branch from the remote branches that contain the checked-out commit. Two cases
42
+ break this inference:
34
43
 
35
44
  - On GitHub Actions `pull_request` events, the checkout is the pull request
36
45
  merge ref (`refs/pull/<number>/merge`) — a commit that doesn't exist on any
@@ -38,24 +47,32 @@ commit. Two cases break this inference:
38
47
  - When the checked-out commit exists on more than one branch, the first match
39
48
  wins, which may not be the branch that triggered the build.
40
49
 
41
- Always pass `--environment` explicitly in CI so that every trigger deploys the
42
- same, predictably named environment:
50
+ Always pass `--branch` explicitly in CI so that every trigger deploys the same,
51
+ predictably named environment:
43
52
 
44
53
  ```bash
45
54
  # GitHub Actions: github.head_ref is the source branch on pull_request
46
55
  # events; github.ref_name is the branch on push events
47
- zuplo deploy --project my-project --environment "$BRANCH_NAME"
56
+ zuplo deploy --project my-project --branch "$BRANCH_NAME"
48
57
  ```
49
58
 
50
- Deploying the same environment name always updates the same environment and
51
- keeps its URL stable across deploys. This matters whenever an external system
52
- must match the URL exactly — an OIDC token audience, a webhook registration, or
53
- an allowlist. Capture the URL from the deploy output (`Deployed to
59
+ Deploying the same branch name always updates the same environment and keeps its
60
+ URL stable across deploys. This matters whenever an external system must match
61
+ the URL exactly — an OIDC token audience, a webhook registration, or an
62
+ allowlist. Capture the URL from the deploy output (`Deployed to
54
63
  https://...`) rather than constructing it from the branch name: the URL
55
- hostname uses a normalized, truncated form of the environment name plus a
56
- unique identifier. See
57
- [Branch-Based Deployments](../articles/branch-based-deployments.mdx) for the
58
- naming rules.
64
+ hostname uses a normalized, truncated form of the branch name plus a unique
65
+ identifier. See [Branch-Based Deployments](../articles/branch-based-deployments.mdx)
66
+ for the naming rules.
67
+
68
+ ### Cleaning up a branch deployment
69
+
70
+ To remove the environment that a branch deployed, pass the same branch name to
71
+ [`zuplo delete`](./delete.mdx). You don't need the environment URL.
72
+
73
+ ```bash
74
+ zuplo delete --project my-project --branch "$BRANCH_NAME"
75
+ ```
59
76
 
60
77
  ## Polling timeout
61
78
 
@@ -56,6 +56,38 @@ applies_to:
56
56
  usage="$0 variable delete --name <name> --branch <branch> [options]"
57
57
  >
58
58
 
59
+ ## Which variable the branch selects
60
+
61
+ `--branch` picks the variable to delete. It doesn't delete the variable from
62
+ only that branch.
63
+
64
+ - On the project's default branch (usually `main`), the command deletes the
65
+ variable that targets production.
66
+ - On any other branch, the command deletes the variable that is scoped to that
67
+ branch.
68
+
69
+ The command deletes the whole variable, from every environment it targets. A
70
+ preview variable that applies to all branches can't be addressed from any
71
+ branch, so deleting it returns a `404`. On a project with no default branch,
72
+ only branch-scoped variables can be addressed, so a production variable also
73
+ returns a `404`.
74
+
75
+ The CLI reads `--branch` only when you type it on the command line. An exported
76
+ `ZUPLO_BRANCH` environment variable doesn't choose the branch to delete from.
77
+
78
+ Variables only change in an environment on its next deployment. Redeploy the
79
+ environment for the deletion to take effect.
80
+
81
+ ## Common use cases
82
+
83
+ ```bash
84
+ # Delete the production variable API_KEY
85
+ zuplo variable delete --name API_KEY --branch main
86
+
87
+ # Delete the variable scoped to the my-feature branch
88
+ zuplo variable delete --name BASE_URL --branch my-feature
89
+ ```
90
+
59
91
  </CliCommand>
60
92
 
61
93
  ## Global options
@@ -64,3 +96,7 @@ The following global options are available for all commands:
64
96
 
65
97
  - [`--help`](./global-options.mdx#help)
66
98
  - [`--api-key`](./global-options.mdx#api-key)
99
+
100
+ ## Additional resources
101
+
102
+ - [Environment variables](../articles/environment-variables.mdx)
@@ -0,0 +1,37 @@
1
+ ---
2
+ additional-resources:
3
+ - name: Environment variables
4
+ href: ../articles/environment-variables.mdx
5
+ ---
6
+
7
+ ## Which variable the branch selects
8
+
9
+ `--branch` picks the variable to delete. It doesn't delete the variable from
10
+ only that branch.
11
+
12
+ - On the project's default branch (usually `main`), the command deletes the
13
+ variable that targets production.
14
+ - On any other branch, the command deletes the variable that is scoped to that
15
+ branch.
16
+
17
+ The command deletes the whole variable, from every environment it targets. A
18
+ preview variable that applies to all branches can't be addressed from any
19
+ branch, so deleting it returns a `404`. On a project with no default branch,
20
+ only branch-scoped variables can be addressed, so a production variable also
21
+ returns a `404`.
22
+
23
+ The CLI reads `--branch` only when you type it on the command line. An exported
24
+ `ZUPLO_BRANCH` environment variable doesn't choose the branch to delete from.
25
+
26
+ Variables only change in an environment on its next deployment. Redeploy the
27
+ environment for the deletion to take effect.
28
+
29
+ ## Common use cases
30
+
31
+ ```bash
32
+ # Delete the production variable API_KEY
33
+ zuplo variable delete --name API_KEY --branch main
34
+
35
+ # Delete the variable scoped to the my-feature branch
36
+ zuplo variable delete --name BASE_URL --branch my-feature
37
+ ```
@@ -168,10 +168,10 @@ See the provider-specific CI/CD guides:
168
168
  When you run `zuplo deploy`, the CLI determines the environment name using the
169
169
  following logic:
170
170
 
171
- 1. If you pass `--environment my-env`, the CLI uses `my-env` as the environment
171
+ 1. If you pass `--branch my-branch`, the CLI uses `my-branch` as the environment
172
172
  name.
173
- 2. If you do not pass `--environment`, the CLI uses the **current Git branch
174
- name** as the environment name.
173
+ 2. If you do not pass `--branch`, the CLI uses the **current Git branch name**
174
+ as the environment name.
175
175
 
176
176
  This means in a typical CI/CD pipeline, the deploy command automatically names
177
177
  the environment after the branch being built without any extra configuration.
@@ -180,8 +180,8 @@ the environment after the branch being built without any extra configuration.
180
180
  # On the "staging" branch, this creates/updates the "staging" environment
181
181
  npx zuplo deploy --api-key $ZUPLO_API_KEY
182
182
 
183
- # Override the environment name explicitly
184
- npx zuplo deploy --api-key $ZUPLO_API_KEY --environment production
183
+ # Deploy under a different branch name explicitly
184
+ npx zuplo deploy --api-key $ZUPLO_API_KEY --branch production
185
185
  ```
186
186
 
187
187
  For full CLI deploy reference, see [CLI: deploy](../cli/deploy.mdx).
@@ -59,7 +59,7 @@ If you aren't using GitHub, or would like to set up a custom CI/CD pipeline, you
59
59
  can use the Zuplo CLI to deploy your Zuplo Gateway.
60
60
 
61
61
  ```bash
62
- npx zuplo deploy --api-key $ZUPLO_API_KEY --project your-project-name --environment my-env
62
+ npx zuplo deploy --api-key $ZUPLO_API_KEY --project your-project-name --branch my-branch
63
63
  ```
64
64
 
65
65
  For more information on setting up a CI/CD pipeline, see
@@ -79,7 +79,7 @@ const { fetch } = require("undici");
79
79
  const { randomUUID } = require("crypto");
80
80
 
81
81
  const ZUPLO_ACCOUNT = "my-zuplo-account";
82
- const API_KEY_BUCKET_ID = "bckt_2HaK3odRyJle6NJSu8mzNKBC30BYxllxL";
82
+ const API_KEY_BUCKET_ID = "bckt_YOUR_BUCKET_ID";
83
83
 
84
84
  /**
85
85
  * Handler that will be called during the execution of a PostLogin flow.
@@ -65,6 +65,29 @@ preview content and configuration changes before deployment. Zuplo manages
65
65
  hosting, and you can assign a [custom domain](../articles/custom-domains.mdx)
66
66
  such as `docs.example.com`.
67
67
 
68
+ ## Take the portal offline
69
+
70
+ To take a published portal offline, deploy the environment without a portal
71
+ configuration file. Delete the `docs/zudoku.config.*` file (for example
72
+ `docs/zudoku.config.tsx`) from the project and deploy it again.
73
+
74
+ When a deploy has no portal configuration and a previous deploy published a
75
+ portal, Zuplo unpublishes the old portal:
76
+
77
+ - Your API gateway keeps running. Only the portal goes offline.
78
+ - The portal's hostnames, including any
79
+ [custom domain](../articles/custom-domains.mdx) assigned to the portal, return
80
+ a `404`.
81
+ - The build output lists the hostnames that it unpublished, for example
82
+ `Unpublished the previous developer portal from https://my-project-main-abc123.zuplo.site`.
83
+
84
+ If Zuplo can't unpublish the portal, the build output shows a warning and the
85
+ gateway deploy still succeeds. Deploy again to retry.
86
+
87
+ Each environment has its own portal, so deploy the change to every environment
88
+ whose portal you want to take offline. To bring the portal back, add the
89
+ `docs/zudoku.config.*` file again and deploy.
90
+
68
91
  <span id="how-to-get-started" />
69
92
 
70
93
  ## Next steps
@@ -128,6 +128,6 @@ The Alert component consists of several sub-components:
128
128
  </Alert>
129
129
  ```
130
130
 
131
- # Props
131
+ ## Props
132
132
 
133
133
  <ReactComponentDoc component={Alert} />
@@ -236,6 +236,58 @@ Each URL version object requires:
236
236
  - `input`: URL to the OpenAPI document
237
237
  - `label`: Optional display name for the version selector (defaults to `path` if not provided)
238
238
 
239
+ ::if{mode=opensource}
240
+
241
+ ## Server variables
242
+
243
+ If your OpenAPI document declares
244
+ [server variables](https://spec.openapis.org/oas/v3.1.0#server-variable-object) in a server URL,
245
+ Dev Portal lets readers pick the values themselves. The API reference shows a **Server** row above the
246
+ operations. When the selected server has variables, an **Edit server variables** button appears
247
+ beside its URL. Selecting it opens a panel with the resolved URL and one field per variable, with
248
+ the variable's `description` under each field.
249
+
250
+ ```json title="openapi.json"
251
+ {
252
+ "servers": [
253
+ {
254
+ "url": "https://{sector}.relay.example.com:{port}/{basePath}",
255
+ "variables": {
256
+ "sector": {
257
+ "default": "sol",
258
+ "enum": ["sol", "alpha-centauri", "proxima"],
259
+ "description": "Star sector of the relay node"
260
+ },
261
+ "port": {
262
+ "default": "8443",
263
+ "description": "Relay port"
264
+ },
265
+ "basePath": {
266
+ "default": "v1"
267
+ }
268
+ }
269
+ }
270
+ ]
271
+ }
272
+ ```
273
+
274
+ - **Enum values:** a variable with an `enum` renders as a dropdown that offers only the listed
275
+ values.
276
+ - **Free text:** a variable without an `enum` renders as a text field that shows the `default` as
277
+ its placeholder. Clearing the field returns the variable to its `default`.
278
+ - **Remembered values:** Dev Portal stores the values in the reader's browser, so they are still there
279
+ on the next visit. Values are stored per server URL template. A stored value that is no longer in
280
+ a variable's `enum` is ignored, and the `default` applies instead.
281
+ - **Shared by server URL template:** the playground sends requests to the resolved URL, and the code
282
+ samples Dev Portal generates in the sidecar use the same values for the same server, so a generated
283
+ sample matches what the playground calls. Values are tied to the exact server URL template, not to
284
+ the variable name. An operation or path that declares a server with a different URL template keeps
285
+ its own values, and the **Server** row edits only the document's root servers.
286
+ - **Author-supplied samples:** samples you provide with `x-code-samples` are shown exactly as
287
+ written. Changing a server variable doesn't update a URL inside them.
288
+
289
+ ::
290
+
239
291
  ## Options
240
292
 
241
293
  The `options` field allows you to customize the API reference behavior:
@@ -214,3 +214,28 @@ authentication: {
214
214
  - Learn about [protecting routes](./authentication.md#protected-routes) in your documentation
215
215
  - Explore other [authentication providers](./authentication.md#authentication-providers) supported
216
216
  by Dev Portal - Configure [user permissions](./authentication.md#user-data) based on Auth0 roles
217
+
218
+ ## Auth0 with Zuplo API key management
219
+
220
+ If your Developer Portal uses
221
+ [Zuplo API key management](/docs/articles/api-key-management) so consumers can
222
+ create and manage their own keys, set `audience` in your Auth0 configuration.
223
+ Zuplo API key management requires a JWT access token. Without an `audience`,
224
+ Auth0 issues an opaque access token, and the portal can't use it to manage API
225
+ keys. When this happens, the portal shows a "Configuration Error" explaining
226
+ that the authentication provider issued an opaque token.
227
+
228
+ Create an API in Auth0 as described in the optional audience step earlier on
229
+ this page, then set `audience` to that API's identifier:
230
+
231
+ ```typescript title="docs/zudoku.config.tsx"
232
+ authentication: {
233
+ type: "auth0",
234
+ domain: "your-domain.us.auth0.com",
235
+ clientId: "<your-auth0-client-id>",
236
+ audience: "https://your-domain.com/api", // Your Auth0 API identifier
237
+ }
238
+ ```
239
+
240
+ Use the RS256 signing algorithm for the Auth0 API. If your portal doesn't use
241
+ API key management, you can still leave `audience` unset.
@@ -211,6 +211,13 @@ Azure AD provides rich user profile data through OpenID Connect:
211
211
  - `preferred_username` - User's UPN (User Principal Name)
212
212
  - Additional claims based on your API permissions
213
213
 
214
+ Entra's UserInfo endpoint is part of Microsoft Graph and only accepts access tokens issued for
215
+ Graph. If your `scopes` request a token for your own API instead, set `disableUserInfo: true` so the
216
+ profile comes from the ID token. In SSR mode the server then verifies the access token itself, so it
217
+ must be a v2.0 token for your API (`"accessTokenAcceptedVersion": 2` in the app manifest): tokens
218
+ for Graph can't be verified outside Graph. See
219
+ [Without the UserInfo Endpoint](./authentication-openid.md#without-the-userinfo-endpoint).
220
+
214
221
  ## Troubleshooting
215
222
 
216
223
  ### Common Issues