auth0-deploy-cli 8.4.3 → 8.5.0

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 (125) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/lib/context/defaults.js +7 -0
  3. package/lib/context/defaults.js.map +1 -1
  4. package/lib/index.d.ts +1 -0
  5. package/lib/index.js +6 -4
  6. package/lib/index.js.map +1 -1
  7. package/lib/tools/auth0/handlers/connections.js +1 -1
  8. package/lib/tools/auth0/handlers/connections.js.map +1 -1
  9. package/lib/tools/auth0/handlers/databases.d.ts +100 -0
  10. package/lib/tools/auth0/handlers/databases.js +72 -0
  11. package/lib/tools/auth0/handlers/databases.js.map +1 -1
  12. package/lib/tools/auth0/handlers/emailProvider.js +3 -3
  13. package/lib/tools/auth0/handlers/emailProvider.js.map +1 -1
  14. package/lib/tools/constants.d.ts +1 -0
  15. package/lib/tools/constants.js +5 -0
  16. package/lib/tools/constants.js.map +1 -1
  17. package/lib/tools/index.d.ts +1 -0
  18. package/package.json +3 -3
  19. package/.nyc_output/10fa88b6-c10a-45ce-8cb3-2a8dba4f95d2.json +0 -1
  20. package/.nyc_output/c42a459f-fc58-412c-a675-01cb9f92dcc9.json +0 -1
  21. package/.nyc_output/e49c3dcb-08e8-4563-ba45-9b005a768a65.json +0 -1
  22. package/.nyc_output/processinfo/10fa88b6-c10a-45ce-8cb3-2a8dba4f95d2.json +0 -1
  23. package/.nyc_output/processinfo/c42a459f-fc58-412c-a675-01cb9f92dcc9.json +0 -1
  24. package/.nyc_output/processinfo/e49c3dcb-08e8-4563-ba45-9b005a768a65.json +0 -1
  25. package/.nyc_output/processinfo/index.json +0 -1
  26. package/coverage/lcov-report/base.css +0 -224
  27. package/coverage/lcov-report/block-navigation.js +0 -87
  28. package/coverage/lcov-report/favicon.png +0 -0
  29. package/coverage/lcov-report/index.html +0 -251
  30. package/coverage/lcov-report/prettify.css +0 -1
  31. package/coverage/lcov-report/prettify.js +0 -2
  32. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  33. package/coverage/lcov-report/sorter.js +0 -196
  34. package/coverage/lcov.info +0 -9786
  35. package/docs/authenticating-with-tenant.md +0 -34
  36. package/docs/available-resource-config-formats.md +0 -19
  37. package/docs/configuring-the-deploy-cli.md +0 -180
  38. package/docs/excluding-from-management.md +0 -95
  39. package/docs/how-to-contribute.md +0 -49
  40. package/docs/keyword-replacement.md +0 -83
  41. package/docs/multi-environment-workflow.md +0 -98
  42. package/docs/resource-specific-documentation.md +0 -284
  43. package/docs/terraform-provider.md +0 -20
  44. package/docs/using-as-cli.md +0 -89
  45. package/docs/using-as-node-module.md +0 -114
  46. package/docs/v8_MIGRATION_GUIDE.md +0 -46
  47. package/examples/directory/README.md +0 -167
  48. package/examples/directory/actions/action-example/code.js +0 -4
  49. package/examples/directory/actions/action-example.json +0 -24
  50. package/examples/directory/clients/My SPA.json +0 -40
  51. package/examples/directory/config.json.example +0 -20
  52. package/examples/directory/connections/facebook.json +0 -60
  53. package/examples/directory/database-connections/users/change_email.js +0 -4
  54. package/examples/directory/database-connections/users/change_password.js +0 -4
  55. package/examples/directory/database-connections/users/create.js +0 -4
  56. package/examples/directory/database-connections/users/database.json +0 -20
  57. package/examples/directory/database-connections/users/delete.js +0 -4
  58. package/examples/directory/database-connections/users/get_user.js +0 -4
  59. package/examples/directory/database-connections/users/login.js +0 -4
  60. package/examples/directory/database-connections/users/verify.js +0 -4
  61. package/examples/directory/emails/blocked_account.html +0 -5
  62. package/examples/directory/emails/blocked_account.json +0 -10
  63. package/examples/directory/emails/enrollment_email.html +0 -5
  64. package/examples/directory/emails/enrollment_email.json +0 -8
  65. package/examples/directory/emails/mfa_oob_code.html +0 -5
  66. package/examples/directory/emails/mfa_oob_code.json +0 -8
  67. package/examples/directory/emails/provider.json +0 -10
  68. package/examples/directory/emails/reset_email.html +0 -5
  69. package/examples/directory/emails/reset_email.json +0 -10
  70. package/examples/directory/emails/stolen_credentials.html +0 -5
  71. package/examples/directory/emails/stolen_credentials.json +0 -8
  72. package/examples/directory/emails/verify_email.html +0 -5
  73. package/examples/directory/emails/verify_email.json +0 -10
  74. package/examples/directory/emails/verify_email_by_code.html +0 -5
  75. package/examples/directory/emails/verify_email_by_code.json +0 -8
  76. package/examples/directory/emails/welcome_email.html +0 -5
  77. package/examples/directory/emails/welcome_email.json +0 -8
  78. package/examples/directory/grants/m2m_myapp_api.json +0 -7
  79. package/examples/directory/guardian/factors/email.json +0 -4
  80. package/examples/directory/guardian/factors/otp.json +0 -4
  81. package/examples/directory/guardian/factors/push-notification.json +0 -4
  82. package/examples/directory/guardian/factors/sms.json +0 -4
  83. package/examples/directory/guardian/phoneFactorMessageTypes.json +0 -6
  84. package/examples/directory/guardian/phoneFactorSelectedProvider.json +0 -3
  85. package/examples/directory/guardian/policies.json +0 -5
  86. package/examples/directory/guardian/providers/sms-twilio.json +0 -7
  87. package/examples/directory/guardian/templates/sms.json +0 -5
  88. package/examples/directory/hooks/client-credentials-exchange.js +0 -22
  89. package/examples/directory/hooks/client-credentials-exchange.json +0 -12
  90. package/examples/directory/pages/login.html +0 -6
  91. package/examples/directory/pages/login.json +0 -4
  92. package/examples/directory/pages/password_reset.html +0 -6
  93. package/examples/directory/pages/password_reset.json +0 -4
  94. package/examples/directory/prompts/custom-text.json +0 -9
  95. package/examples/directory/prompts/prompts.json +0 -6
  96. package/examples/directory/prompts/screenRenderSettings/login-id_login-id.json +0 -33
  97. package/examples/directory/prompts/screenRenderSettings/signup-id_signup-id.json +0 -20
  98. package/examples/directory/resource-servers/My API.json +0 -19
  99. package/examples/directory/roles/Admin.json +0 -14
  100. package/examples/directory/roles/User.json +0 -10
  101. package/examples/directory/rules/Enrich-Identity-Token.js +0 -10
  102. package/examples/directory/rules/Enrich-Identity-Token.json +0 -7
  103. package/examples/directory/rules-configs/SOME_SECRET.json +0 -4
  104. package/examples/directory/tenant.json +0 -8
  105. package/examples/directory/triggers/triggers.json +0 -18
  106. package/examples/yaml/README.md +0 -111
  107. package/examples/yaml/actions/action-example/code.js +0 -4
  108. package/examples/yaml/config.json.example +0 -20
  109. package/examples/yaml/databases/users/change_email.js +0 -4
  110. package/examples/yaml/databases/users/change_password.js +0 -4
  111. package/examples/yaml/databases/users/create.js +0 -4
  112. package/examples/yaml/databases/users/delete.js +0 -4
  113. package/examples/yaml/databases/users/get_user.js +0 -4
  114. package/examples/yaml/databases/users/login.js +0 -4
  115. package/examples/yaml/databases/users/verify.js +0 -4
  116. package/examples/yaml/emails/change_email.html +0 -5
  117. package/examples/yaml/hooks/client-credentials-exchange.js +0 -22
  118. package/examples/yaml/pages/error_page.html +0 -6
  119. package/examples/yaml/pages/guardian_multifactor.html +0 -6
  120. package/examples/yaml/pages/login.html +0 -6
  121. package/examples/yaml/pages/password_reset.html +0 -6
  122. package/examples/yaml/prompts/screenRenderSettings/login-id_login-id.json +0 -33
  123. package/examples/yaml/prompts/screenRenderSettings/signup-id_signup-id.json +0 -20
  124. package/examples/yaml/rules/enrich_tokens.js +0 -10
  125. package/examples/yaml/tenant.yaml +0 -202
@@ -1,284 +0,0 @@
1
- # Resource-specific Documentation
2
-
3
- In general, the Deploy CLI resource configuration files closely match the payload schemas of the [Management API](https://auth0.com/docs/api/management/v2).
4
-
5
- However, there are some notable nuances to be aware of:
6
-
7
- ## Client Grants
8
-
9
- The Deploy CLI's own client grant is intentionally not exported nor configurable by itself. This is done to prevent breaking changes, otherwise the tool could potentially revoke access or otherwise crash in the midst of an import. In a multi-tenant, multi-environment context, it is expect that new tenants will have a designated client already established for the Deploy CLI, as mentioned in the [getting started instructions](./../README.md#create-a-dedicated-auth0-application).
10
-
11
- ## Prompts
12
-
13
- Multilingual custom text prompts follow a particular hierarchy. Under the root-level `prompts` resource property is a proprietary `customText` property that is used to bundle custom text translations with other prompts settings. Underneath `customText` is the two-character language code. Thirdly is the prompt ID, followed by the screen ID, followed by text ID.
14
-
15
- RenderSettings of a prompt-screen follow a particular hierarchy. Under the root-level `prompts` we store `screenRenderers` property that is used to configure the rendering settings of a given prompt & screen. Thirdly is the prompt Name, followed by the screen Name mapped to the respective renderer configs file. Refer [more](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens) on this.
16
-
17
- **Hierarchy**
18
-
19
- ```yaml
20
- prompts:
21
- customText:
22
- <LANGUAGE>: # two character language code
23
- <PROMPT_ID>: # prompt ID
24
- <SCREEN_ID>: # prompt screen ID
25
- <TEXT_ID>: 'Some text'
26
- screenRenderers:
27
- - <PROMPT-NAME>:
28
- <SCREEN-NAME>: ./prompts/screenRenderSettings/promptName_screenName.json #Add the renderer configs for a given prompt & a given screen
29
- ```
30
-
31
- **YAML Example**
32
-
33
- ```
34
- Folder structure when in YAML mode.
35
-
36
- ./prompts/
37
- /screenRenderSettings
38
- /signup-id_signup-id.json
39
- /login-id_login-id.json
40
- /login-passwordless_login-passwordless-email-code.json
41
- /login-passwordless_login-passwordless-sms-otp.json
42
- /login-password_login-password.json
43
- /signup-password_signup-password.json
44
- ./tenant.yaml
45
- ```
46
-
47
- ```yaml
48
- # Contents of ./tenant.yaml
49
- prompts:
50
- identifier_first: true
51
- universal_login_experience: classic
52
- customText:
53
- en:
54
- login:
55
- login:
56
- description: Login description in english
57
- buttonText: Button text
58
- mfa:
59
- mfa-detect-browser-capabilities:
60
- pickAuthenticatorText: 'Try another method'
61
- reloadButtonText: 'Reload'
62
- noJSErrorTitle: 'JavaScript Required'
63
- mfa-login-options:
64
- pageTitle: 'Log in to ${clientName}'
65
- authenticatorNamesSMS: 'SMS'
66
- screenRenderers:
67
- - signup-id:
68
- signup-id: ./prompts/screenRenderSettings/signup-id_signup-id.json
69
- - login-passwordless:
70
- login-passwordless-email-code: ./prompts/screenRenderSettings/login-passwordless_login-passwordless-email-code.json
71
- login-passwordless-sms-otp: ./prompts/screenRenderSettings/login-passwordless_login-passwordless-sms-otp.json
72
- ```
73
-
74
- **Directory Example**
75
-
76
- ```
77
- Folder structure when in directory mode.
78
-
79
- ./prompts/
80
- /screenRenderSettings
81
- /signup-id_signup-id.json
82
- /login-id_login-id.json
83
- /login-passwordless_login-passwordless-email-code.json
84
- /login-passwordless_login-passwordless-sms-otp.json
85
- /login-password_login-password.json
86
- /signup-password_signup-password.json
87
- /custom-text.json
88
- /prompts.json
89
- ```
90
-
91
- Contents of `promptName_screenName.json`
92
-
93
- ```json
94
- {
95
- "prompt": "signup-id",
96
- "screen": "signup-id",
97
- "rendering_mode": "advanced",
98
- "context_configuration": [
99
- "branding.settings",
100
- "branding.themes.default"
101
- ],
102
- "default_head_tags_disabled": false,
103
- "head_tags": [
104
- {
105
- "tag": "script",
106
- "attributes": {
107
- "src": "URL_TO_YOUR_ASSET",
108
- "async": true,
109
- "defer": true,
110
- "integrity": [
111
- "ASSET_SHA"
112
- ]
113
- }
114
- }
115
- ]
116
- }
117
- ```
118
-
119
-
120
-
121
- ## Databases
122
-
123
- When managing database connections, the values of `options.customScripts` point to specific javascript files relative to
124
- the path of the output folder. Otherwise, the payload closely matches that of the [Management API](https://auth0.com/docs/api/management/v2#!/Connections/post_connections).
125
-
126
- **YAML Example**
127
-
128
- ```
129
- Folder structure when in YAML mode.
130
-
131
- ./databases/
132
- /Username-Password-Authentication
133
- /change_password.js
134
- /create.js
135
- /delete.js
136
- /get_user.js
137
- /login.js
138
- /verify.js
139
- ./tenant.yaml
140
- ```
141
-
142
- ```yaml
143
- # Contents of ./tenant.yaml
144
- databases:
145
- - name: Username-Password-Authentication
146
- # ...
147
- options:
148
- # ...
149
- customScripts:
150
- change_password: ./databases/Username-Password-Authentication/change_password.js
151
- create: ./databases/Username-Password-Authentication/create.js
152
- delete: ./databases/Username-Password-Authentication/delete.js
153
- get_user: ./databases/Username-Password-Authentication/get_user.js
154
- login: ./databases/Username-Password-Authentication/login.js
155
- verify: ./databases/Username-Password-Authentication/verify.js
156
- ```
157
-
158
- **Directory Example**
159
-
160
- ```
161
- Folder structure when in directory mode.
162
-
163
- ./database-connections/
164
- ./Username-Password-Authentication/
165
- ./change_password.js
166
- ./create.js
167
- ./database.json
168
- ./delete.js
169
- ./get_user.js
170
- ./login.js
171
- ./verify.js
172
- ```
173
-
174
- Contents of `database.json`
175
-
176
- ```json
177
- {
178
- "options": {
179
- "customScripts": {
180
- "change_password": "./change_password.js",
181
- "create": "./create.js",
182
- "delete": "./delete.js",
183
- "get_user": "./get_user.js",
184
- "login": "./login.js",
185
- "verify": "./verify.js"
186
- }
187
- }
188
- }
189
- ```
190
-
191
- ## Universal Login
192
-
193
- ### Pages
194
-
195
- When overriding the Universal Login with custom HTML, the error, login, multi-factor authentication and password reset
196
- contents are organized in specific HTML pages.
197
-
198
- **YAML Example**
199
-
200
- ```
201
- Folder structure when in YAML mode.
202
-
203
- ./pages/
204
- /error_page.html
205
- /guardian_multifactor.html
206
- /login.html
207
- /password_reset.html
208
- ./tenant.yaml
209
- ```
210
-
211
- ```yaml
212
- # Contents of ./tenant.yaml
213
- pages:
214
- - name: error_page
215
- html: ./pages/error_page.html
216
- show_log_link: false
217
- url: https://mycompany.org/error
218
- - name: guardian_multifactor
219
- enabled: true
220
- html: ./pages/guardian_multifactor.html
221
- - name: login
222
- enabled: false
223
- html: ./pages/login.html
224
- - name: password_reset
225
- enabled: true
226
- html: ./pages/password_reset.html
227
- ```
228
-
229
- **Directory Example**
230
-
231
- ```
232
- Folder structure when in directory mode.
233
-
234
- ./pages/
235
- ./error_page.html
236
- ./error_page.json
237
- ./guardian_multifactor.html
238
- ./guardian_multifactor.json
239
- ./login.html
240
- ./login.json
241
- ./password_reset.html
242
- ./password_reset.json
243
- ```
244
-
245
- Contents of `login.json`
246
-
247
- ```json
248
- {
249
- "name": "login",
250
- "enabled": false,
251
- "html": "./login.html"
252
- }
253
- ```
254
-
255
- Contents of `error_page.json`
256
-
257
- ```json
258
- {
259
- "html": "./error_page.html",
260
- "show_log_link": false,
261
- "url": "https://mycompany.org/error",
262
- "name": "error_page"
263
- }
264
- ```
265
-
266
- Contents of `guardian_multifactor.json`
267
-
268
- ```json
269
- {
270
- "enabled": true,
271
- "html": "./guardian_multifactor.html",
272
- "name": "guardian_multifactor"
273
- }
274
- ```
275
-
276
- Contents of `password_reset.json`
277
-
278
- ```json
279
- {
280
- "enabled": true,
281
- "html": "./password_reset.html",
282
- "name": "password_reset"
283
- }
284
- ```
@@ -1,20 +0,0 @@
1
- # Auth0 Terraform Provider
2
-
3
- The Deploy CLI is not the only tool available for managing your Auth0 tenant configuration, there is also an [officially supported Terraform Provider](https://github.com/auth0/terraform-provider-auth0). [Terraform](https://terraform.io/) is a third-party tool for representing your cloud resources’s configurations as code. It has an established plug-in framework that supports a wide array of cloud providers, including Auth0.
4
-
5
- Both the Deploy CLI and Terraform Provider exist to help you manage your Auth0 tenant configurations, but each has their own set of pros and cons.
6
-
7
- You may want to consider the Auth0 Terraform Provider if:
8
-
9
- - Your development workflows already leverages Terraform
10
- - Your tenant management needs are granular or only pertain to a few specific resources
11
-
12
- You may **not** want to consider the Auth0 Terraform Provider if:
13
-
14
- - Your development workflow does not use Terraform, requiring extra setup upfront
15
- - Your development workflows are primarily concerned with managing your tenants in bulk
16
- - Your tenant has lots of existing resources, may require significant effort to “import”
17
-
18
- ---
19
-
20
- [[table of contents]](../README.md#documentation)
@@ -1,89 +0,0 @@
1
- # Using as a CLI
2
-
3
- The Deploy CLI can be used as a standalone command line utility. Doing so provides a simple way to manage your Auth0 tenant configuration in CI/CD workflows. Refer to the [Configuring the Deploy CLI](./configuring-the-deploy-cli.md) documentation for a comprehensive list of configuration settings.
4
-
5
- ## `export` command
6
-
7
- Fetching configurations from Auth0 tenant to the local machine.
8
-
9
- ### `--output_folder`, `-o`
10
-
11
- Path. Specifies the target directory for configuration files to be written to.
12
-
13
- ### `--config_file`, `-c`
14
-
15
- Path. Specifies the user-defined configuration file (`config.json`). Refer to the list of [all configurable properties](./configuring-the-deploy-cli.md).
16
-
17
- ### `--format`, `-f`
18
-
19
- Options: yaml or directory. Determines the file format of the exported resource configuration files. See: [Available Resource Config Formats](available-resource-config-formats).
20
-
21
- ### `--export_ids`, `-e`
22
-
23
- Boolean. When enabled, will export the identifier fields for each resource. Default: `false`.
24
-
25
- ### `--env`
26
-
27
- Boolean. Indicates if the tool should ingest environment variables or not. Default: `true`.
28
-
29
- ### `--debug`
30
-
31
- Boolean. Enables more verbose error logging; useful during troubleshooting. Default: `false`.
32
-
33
- ### `--proxy_url`, `-p`
34
-
35
- A url for proxying requests. Only set this if you are behind a proxy.
36
-
37
- ### Examples
38
-
39
- ```shell
40
- # Fetching Auth0 tenant configuration in the YAML format
41
- a0deploy export -c=config.json --format=yaml --output_folder=local
42
-
43
- # Fetching Auth0 tenant configuration in directory (JSON) format
44
- a0deploy export -c=config.json --format=directory --output_folder=local
45
-
46
- # Fetching Auth0 tenant configurations with IDs of all assets
47
- a0deploy export -c=config.json --format=yaml --output_folder=local --export_ids=true
48
- ```
49
-
50
- ## `import` command
51
-
52
- Applying configurations from local machine to Auth0 tenant.
53
-
54
- ### `--input_file`, `-i`
55
-
56
- Path. Specifies the location of the resource configuration files. For YAML formats, this will point to the `tenant.yaml` file, for directory formats, this will point to the resource configuration directory.
57
-
58
- ### `--config_file`, `-c`
59
-
60
- Path. Specifies the user-defined configuration file (config.json). Refer to the list of [all configurable properties](./configuring-the-deploy-cli.md).
61
-
62
- ### `--env`
63
-
64
- Boolean. Indicates if the tool should ingest environment variables or not. Default: `true`.
65
-
66
- ### `--proxy_url`, `-p`
67
-
68
- A url for proxying requests. Only set this if you are behind a proxy.
69
-
70
- ### `--debug`
71
-
72
- Boolean. Enables more verbose error logging; useful during troubleshooting. Default: `false`.
73
-
74
- ### Examples
75
-
76
- ```shell
77
- # Deploying configuration for YAML formats
78
- a0deploy import -c=config.json --input_file=local/tenant.yaml
79
-
80
- # Deploying configuration for directory format
81
- a0deploy import -c=config.json --input_file=local
82
-
83
- # Deploying configuration with environment variables ignored
84
- a0deploy import -c=config.json --input_file=local/tenant.yaml --env=false
85
- ```
86
-
87
- ---
88
-
89
- [[table of contents]](../README.md#documentation)
@@ -1,114 +0,0 @@
1
- # Using as a Node Module
2
-
3
- The Deploy CLI can not only be used as a standalone CLI, but as a node module. Doing so allows you to manage Auth0 resources within expressive node scripts. Refer to the [Configuring the Deploy CLI](./configuring-the-deploy-cli.md) documentation for a comprehensive list of configuration settings.
4
-
5
- ## `dump` function
6
-
7
- Fetches configurations from Auth0 tenant to the local machine.
8
-
9
- ### Example
10
-
11
- ```ts
12
- import { dump } from 'auth0-deploy-cli';
13
-
14
- dump({
15
- output_folder: './local',
16
- format: 'yaml',
17
- config: {
18
- AUTH0_DOMAIN: '<YOUR_AUTH0_TENANT_DOMAIN>',
19
- AUTH0_CLIENT_ID: '<YOUR_AUTH0_CLIENT_ID>',
20
- AUTH0_CLIENT_SECRET: '<YOUR_AUTH0_CLIENT_SECRET>',
21
- },
22
- })
23
- .then(() => {
24
- console.log('Auth0 configuration export successful');
25
- })
26
- .catch((err) => {
27
- console.log('Error during Auth0 configuration export:', err);
28
- });
29
- ```
30
-
31
- ## Argument parameters
32
-
33
- #### `format`
34
-
35
- Options: `yaml` or `directory`. Determines the file format of the exported resource configuration files. See: [Available Resource Configuration Formats](available-resource-config-formats).
36
-
37
- #### `output_folder`
38
-
39
- Path. Specifies the target directory for configuration files to be written to.
40
-
41
- #### `config`
42
-
43
- Object. Configures behavior of utility. Refer to the list of [all configurable properties](./configuring-the-deploy-cli.md).
44
-
45
- #### `config_file`
46
-
47
- Path. Specifies the user-defined configuration file (config.json). Refer to the list of [all configurable properties](./configuring-the-deploy-cli.md).
48
-
49
- #### `export_ids`
50
-
51
- Boolean: When enabled, will export the identifier fields for each resource. Default: false.
52
-
53
- #### `env`
54
-
55
- Boolean. Indicates if the tool should ingest environment variables or not. Default: `false`.
56
-
57
- #### `proxy_url`
58
-
59
- A url for proxying requests. Only set this if you are behind a proxy.
60
-
61
- ## `deploy` function
62
-
63
- Applies configurations from local machine to Auth0 tenant.
64
-
65
- ### Argument parameters
66
-
67
- #### `input_file`
68
-
69
- Path. Specifies the location of the resource configuration files. For YAML formats, this will point to the tenant.yaml file. For directory formats, this will point to the resource configuration directory.
70
-
71
- #### `config`
72
-
73
- Object. Configures behavior of utility. Refer to the list of [all configurable properties](./configuring-the-deploy-cli.md).
74
-
75
- #### `config_file`
76
-
77
- Path. Specifies the user-defined configuration file (config.json). Refer to the list of [all configurable properties](./configuring-the-deploy-cli.md).
78
-
79
- #### `export_ids`
80
-
81
- Boolean: When enabled, will export the identifier fields for each resource. Default: `false`.
82
-
83
- #### `env`
84
-
85
- Boolean. Indicates if the tool should ingest environment variables or not. Default: `false`.
86
-
87
- #### `proxy_url`
88
-
89
- A url for proxying requests. Only set this if you are behind a proxy.
90
-
91
- ### Example
92
-
93
- ```ts
94
- import { deploy } from 'auth0-deploy-cli';
95
-
96
- deploy({
97
- input_file: './local/tenant.yaml',
98
- config: {
99
- AUTH0_DOMAIN: '<YOUR_AUTH0_TENANT_DOMAIN>',
100
- AUTH0_CLIENT_ID: '<YOUR_AUTH0_CLIENT_ID>',
101
- AUTH0_CLIENT_SECRET: '<YOUR_AUTH0_CLIENT_SECRET>',
102
- },
103
- })
104
- .then(() => {
105
- console.log('Auth0 configuration applied to tenant successful');
106
- })
107
- .catch((err) => {
108
- console.log('Error when applying configuration to Auth0 tenant:', err);
109
- });
110
- ```
111
-
112
- ---
113
-
114
- [[table of contents]](../README.md#documentation)
@@ -1,46 +0,0 @@
1
- # V8 Migration Guide
2
-
3
- Guide to migrating from `7.x` to `8.x`
4
-
5
- - [General](#general)
6
- - [Node 18 or newer is required](#node-18-or-newer-is-required)
7
- - [Auth0 V4 Migration Guide](https://github.com/auth0/node-auth0/blob/master/v4_MIGRATION_GUIDE.md)
8
- - [Management Resources](#management-resources)
9
- - [EmailProvider](#emailProvider)
10
- - [Migrations](#migrations)
11
-
12
- ## General
13
-
14
- ### Node 18 or newer is required
15
-
16
- Node 18 LTS and newer LTS releases are supported.
17
-
18
- ## Management Resources
19
-
20
- | Resource | Change | Description |
21
- |---------------|------------------|-----------------------------------------------|
22
- | emailProvider | delete operation | Delete operation is deprecated on auth0 `4.x` |
23
- | migrations | removed support | Not supported on auth0 `4.x` |
24
-
25
- #### Note: Other resources from `7.x` are not affected and no changes are required.
26
-
27
- #### emailProvider
28
-
29
- The `delete` operation on the `emailProvider` resource will disable the email provider instead of deleting it.
30
- This is because the email provider deletion operation is deprecated on auth0 `4.x`. User can disable the email provider
31
- by email provider setting the `enabled` property to `false` from the configuration file.
32
-
33
- ```yaml
34
- emailProvider:
35
- # other properties
36
- enabled: false
37
- ```
38
-
39
- Rest of the operations on emailProvider resource will work the same as `7.x`.
40
-
41
- #### migrations
42
-
43
- The `migrations` resource is not supported on auth0 `4.x`. It's recommended to remove the `migrations` resource from the
44
- configuration file. If it's not removed, the deploy CLI will ignore the `migrations` resource for operations.
45
-
46
-