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
Framework7 command line utility makes easier to create [Framework7](http://framework7.io) apps. Since Framework7 v4 release, CLI the most recommended way to start Framework7 app development.
3
+
Framework7 command line utility makes easier to create [Framework7](https://framework7.io) apps. Since Framework7 v4 release, CLI the most recommended way to start Framework7 app development.
4
4
5
5
## Install
6
6
7
7
First of all make sure you have globally installed cordova (may require "sudo"):
8
+
8
9
```
9
10
$ npm install -g cordova
10
11
```
11
12
12
13
Then install framework7-cli (may require "sudo"):
14
+
13
15
```
14
16
$ npm install -g framework7-cli
15
17
```
16
18
17
19
## Create Framework7 app
18
20
19
21
To create Framework7 app, run the following command in the directory where you want to create app:
22
+
20
23
```
21
24
$ framework7 create
22
25
```
@@ -26,18 +29,21 @@ Program will prompt for few questions about framework and template you want to s
26
29
## Create Framework7 app with user interface
27
30
28
31
Run the following command in the directory where you want to create app:
32
+
29
33
```
30
34
$ framework7 create --ui
31
35
```
32
36
33
37
It will launch UI where you will be able to configure the project. By default it launches server on `localhost:3001` address. If you want to change the port then use `--port <n>` argument:
38
+
34
39
```
35
40
$ framework7 create --ui --port 8080
36
41
```
37
42
38
43
## Generate assets
39
44
40
45
In created project there is an `assets-src` directory. It contains required icons and splash screens source images. To generate your own icons and splash screen images, you will need to replace all assets in this directory with your own images (pay attention to image size and format), and run the following command in the project directory:
46
+
41
47
```
42
48
$ framework7 assets
43
49
```
@@ -47,26 +53,13 @@ That is all, script will generate all required sizes of icons and splash screens
47
53
## Generate assets with user interface
48
54
49
55
Run the following command in the directory with Framework7 project:
56
+
50
57
```
51
58
$ framework7 assets --ui
52
59
```
53
60
54
61
It will launch UI where you will be able to change icons and splash screens. By default it launches server on `localhost:3001` address. If you want to change the port then use `--port <n>` argument:
55
-
```
56
-
$ framework7 assets --ui --port 8080
57
-
```
58
62
59
-
## Cordova APIs
60
-
61
-
To run cordova related commands run the following command in the project root directory:
0 commit comments