You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strapi comes with a full featured Command Line Interface (CLI) which lets you scaffold and manage your project in seconds.
9
+
Strapi comes with a full featured Command Line Interface (CLI) which lets you scaffold and manage your project in seconds. The CLI works with both the `yarn` and `npm` package managers.
10
+
11
+
:::caution
12
+
Interactive commands such as `strapi admin:create-user` don't display prompts with `npm`. A fix for the `npm` package manager is anticipated by March 2023. In the meantime, consider using the `yarn` package manager.
13
+
:::
10
14
11
15
::: note
12
16
It is recommended to install Strapi locally only, which requires prefixing all of the following `strapi` commands with the package manager used for the project setup (e.g `npm run strapi help` or `yarn strapi help`) or a dedicated node package executor (e.g. `npx strapi help`).
17
+
18
+
To pass options with `npm` use the syntax: `npm run strapi <command> -- --<option>`
19
+
20
+
To pass options with `yarn` use the syntax: `yarn run strapi <command> --<option>`
This integration guide is following the [Quick Start Guide](/developer-docs/latest/getting-started/quick-start.md). We assume that you have fully completed its "Hands-on" path, and therefore can consume the API by browsing this [url](http://localhost:1337/api/restaurants).
10
10
11
-
If you haven't gone through the Quick Start Guide, the way you request a Strapi API with [Nuxt 3](https://v3.nuxtjs.org/) remains the same except that you will not fetch the same content.
11
+
If you haven't gone through the Quick Start Guide, the way you request a Strapi API with [Nuxt 3](https://nuxtjs.org/) remains the same except that you will not fetch the same content.
12
12
13
13
## Create a Nuxt 3 app
14
14
@@ -20,7 +20,7 @@ npx nuxi init nuxt-app
20
20
21
21
## Use an HTTP client
22
22
23
-
For this example we are using the awesome [@nuxt/strapi](https://strapi.nuxtjs.org/) module and Nuxt helper function [$fetch](https://v3.nuxtjs.org/api/utils/dollarfetch/) (based on `ohmyfetch`). You may choose any of this variants.
23
+
For this example we are using the awesome [@nuxt/strapi](https://strapi.nuxtjs.org/) module and Nuxt helper function [$fetch](https://nuxt.com/docs/api/utils/dollarfetch/) (based on `ohmyfetch`). You may choose any of this variants.
24
24
25
25
:::: tabs card
26
26
@@ -62,15 +62,15 @@ Be sure that you activated the `find` and `findOne` permission for the `restaura
62
62
63
63
`@nuxtjs/strapi` exposes composables that are auto-imported by Nuxt 3. Note that `delete` function must be renamed because it's reserved word in JavaScript.
64
64
65
+
::: request Example GET request with @nuxtjs/strapi
Copy file name to clipboardExpand all lines: docs/developer-docs/latest/developer-resources/data-management.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,10 @@ Occasionally you need to move data out of or into a Strapi instance. The data ma
23
23
The `strapi export` and `strapi import` CLI commands with all of the available options are listed in the [Command Line Interface documentation](/developer-docs/latest/developer-resources/cli/CLI.md#strapi-export).
24
24
:::
25
25
26
+
:::caution
27
+
Interactive CLI commands do not currently work with the `npm` package manager. For `strapi export` and `strapi import` this means the encryption key prompt is not visible in the CLI. A fix is anticipated by early March 2023. In the meantime consider using the `yarn` package manager.
28
+
:::
29
+
26
30
## Export data using the CLI tool
27
31
28
32
The `strapi export` command, by default, exports data as an encrypted and compressed `.tar.gz.enc` file. The default export command exports:
0 commit comments