|
1 | 1 | # Kitura command-line interface |
2 | 2 |
|
3 | | -This Node.js package provides a `kitura` command-line interface, to simplify the process of creating [Kitura](https://github.com/IBM-Swift/Kitura) applications. |
| 3 | +This Go package provides a `kitura` command-line interface, to simplify the process of creating [Kitura](https://github.com/IBM-Swift/Kitura) applications. |
4 | 4 |
|
5 | | -## Installation via Homebrew |
| 5 | +## Installation on macOS (via Homebrew) |
6 | 6 |
|
| 7 | +Kitura's CLI may be installed using [Homebrew](https://brew.sh): |
7 | 8 | ``` |
8 | 9 | $ brew tap ibm-swift/kitura |
9 | 10 | $ brew install kitura |
10 | 11 | ``` |
11 | 12 |
|
12 | | -Installing via Homebrew will also install the latest version of Node.js on your system. |
13 | | - |
14 | | -## Installation via NPM |
| 13 | +## Installation (simple) |
15 | 14 |
|
| 15 | +You can install (either on Mac or Linux) with this one-liner: |
16 | 16 | ``` |
17 | | -$ npm install -g kitura-cli |
| 17 | +$ curl -fsSL https://github.com/IBM-Swift/kitura-cli/releases/latest/download/install.sh | sudo bash |
18 | 18 | ``` |
| 19 | +The `kitura` binary will be placed in your `/usr/local/bin` directory. |
19 | 20 |
|
20 | | -> If you encounter permissions errors such as `ENOENT` you may need to make changes to your NPM configuration. See [here](https://docs.npmjs.com/getting-started/fixing-npm-permissions) for further details. |
| 21 | +## Installation (manual) |
21 | 22 |
|
22 | | -## Usage |
| 23 | +If you'd prefer not to use a script, the binary can be installed manually by downloading the release binary from GitHub. In the following commands, substitute `<release>` for the version of the CLI you are installing. |
23 | 24 |
|
| 25 | +On Mac: |
| 26 | +``` |
| 27 | +$ curl -LO https://github.com/IBM-Swift/kitura-cli/releases/download/<release>/kitura-cli_<release>_darwin.tar.gz |
| 28 | +$ tar -xzf kitura-cli_<release>_darwin.tar.gz |
| 29 | +$ sudo mv darwin-amd64/kitura /usr/local/bin/ |
24 | 30 | ``` |
25 | | -$ kitura |
26 | | -
|
27 | | - Usage: kitura [options] [command] |
28 | | -
|
29 | | - Kitura command-line interface |
30 | | -
|
31 | | -
|
32 | | - Options: |
33 | | -
|
34 | | - -V, --version output the version number |
35 | | - -h, --help output usage information |
36 | 31 |
|
| 32 | +On Linux: |
| 33 | +``` |
| 34 | +curl -LO https://github.com/IBM-Swift/kitura-cli/releases/download/<release>/kitura-cli_<release>_amd64.deb |
| 35 | +sudo dpkg -i kitura-cli_<release>_amd64.deb |
| 36 | +``` |
37 | 37 |
|
38 | | - Commands: |
| 38 | +## Usage |
39 | 39 |
|
40 | | - build build the project in a local container |
41 | | - create interactively create a Kitura project |
42 | | - idt install IBM Cloud Developer Tools |
43 | | - init scaffold a bare-bones Kitura project |
44 | | - kit print Cocoapods boilerplate for KituraKit |
45 | | - run run the project in a local container |
46 | | - help [cmd] display help for [cmd] |
| 40 | +``` |
| 41 | +Usage: |
| 42 | + kitura [command] |
| 43 | +
|
| 44 | +Available Commands: |
| 45 | + build Build the project in a local container |
| 46 | + help Help about any command |
| 47 | + idt Install IBM Cloud Developer Tools |
| 48 | + init Initialize a Kitura project |
| 49 | + run Run the project in a local container. |
| 50 | +
|
| 51 | +Flags: |
| 52 | + -h, --help help for kitura |
| 53 | + -v, --version Prints the kitura-cli version number. |
47 | 54 | ``` |
48 | 55 |
|
49 | 56 | ## Release process |
|
0 commit comments