directus-template-cli 0.3.3 → 0.3.4
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.
- package/LICENSE +21 -0
- package/README.md +5 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/templates/agencyos/src/users.json +25 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Directus Community
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -7,10 +7,12 @@ A CLI tool to make applying or extracting Directus "templates" a little easier..
|
|
|
7
7
|
- This is a pre-release. It is recommended for use on POC or demo projects only.
|
|
8
8
|
- ⚠️ Known issues with using MySQL currently, please use ONLY PostgreSQL or SQLite for your database provider.
|
|
9
9
|
- Templates are applied / extracted on an all or nothing basis – meaning that all the schema, content, and system settings are extracted or applied. We'd love to support more granular operations in the future. (PRs welcome 🙏)
|
|
10
|
-
- If you are extracting or applying from a remote source, the script can take quite a while
|
|
10
|
+
- If you are extracting or applying from a remote source, the script can take quite a while depending on the "size" of your instance (how many collections, how many items in each collection, number and size of assets, etc). The script applies a strict rate limit of 10 requests per second using bottleneck.
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
|
+
Using the @latest tag ensures you're receiving the latest version of the packaged templates with the CLI. You can review [the specific versions on NPM](https://www.npmjs.com/package/directus-template-cli) and use @{version} syntax to apply the templates included with that version.
|
|
15
|
+
|
|
14
16
|
### Applying a Template
|
|
15
17
|
|
|
16
18
|
**To avoid potential conflicts and bad outcomes, templates can only be applied to a blank instance currently.**
|
|
@@ -21,7 +23,7 @@ A CLI tool to make applying or extracting Directus "templates" a little easier..
|
|
|
21
23
|
4. Run the following command on the terminal and follow the prompts.
|
|
22
24
|
|
|
23
25
|
```
|
|
24
|
-
$ npx directus-template-cli apply
|
|
26
|
+
$ npx directus-template-cli@latest apply
|
|
25
27
|
```
|
|
26
28
|
|
|
27
29
|
You can choose from our templates bundled with the CLI or you can also choose a template from a local directory.
|
|
@@ -36,7 +38,7 @@ The CLI can also extract a template from a Directus instance so that it can be a
|
|
|
36
38
|
4. Run the following command on the terminal and follow the prompts.
|
|
37
39
|
|
|
38
40
|
```
|
|
39
|
-
$ npx directus-template-cli extract
|
|
41
|
+
$ npx directus-template-cli@latest extract
|
|
40
42
|
```
|
|
41
43
|
|
|
42
44
|
## License
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -98,5 +98,30 @@
|
|
|
98
98
|
"description": null,
|
|
99
99
|
"email_notifications": true,
|
|
100
100
|
"contacts": null
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "95e535d2-f45b-4d94-891b-a89ee6ed1475",
|
|
104
|
+
"avatar": null,
|
|
105
|
+
"role": "2d490b3f-7528-4b85-a05f-44aac2f2e05d",
|
|
106
|
+
"last_access": "2023-10-23T16:22:59.035Z",
|
|
107
|
+
"first_name": "Admin",
|
|
108
|
+
"last_name": "User",
|
|
109
|
+
"email": "admin.me@example.com",
|
|
110
|
+
"password": "password",
|
|
111
|
+
"location": null,
|
|
112
|
+
"title": null,
|
|
113
|
+
"language": null,
|
|
114
|
+
"theme": "auto",
|
|
115
|
+
"tfa_secret": null,
|
|
116
|
+
"status": "active",
|
|
117
|
+
"token": "**********",
|
|
118
|
+
"last_page": "/content/navigation",
|
|
119
|
+
"provider": "default",
|
|
120
|
+
"external_identifier": null,
|
|
121
|
+
"auth_data": null,
|
|
122
|
+
"tags": null,
|
|
123
|
+
"description": null,
|
|
124
|
+
"email_notifications": true,
|
|
125
|
+
"contacts": null
|
|
101
126
|
}
|
|
102
127
|
]
|