mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 12:57:05 +00:00
72 lines
1.6 KiB
Markdown
72 lines
1.6 KiB
Markdown
## Package information
|
|
|
|
This package is the command line tool for [../](https://github.com/kataras/iris).
|
|
|
|
[](https://raw.githubusercontent.com/iris-contrib/website/gh-pages/assets/iris_cli_screen.png)
|
|
|
|
[](https://raw.githubusercontent.com/iris-contrib/website/gh-pages/assets/iris_cli_screen2.png)
|
|
|
|
## Install
|
|
Current version: 0.0.4
|
|
```sh
|
|
|
|
go get -u github.com/kataras/iris/iris
|
|
|
|
```
|
|
|
|
## Usage
|
|
|
|
|
|
```sh
|
|
$ iris [command] [-flags]
|
|
```
|
|
|
|
> Note that you must have $GOPATH/bin to your $PATH system/environment variable.
|
|
|
|
|
|
## Create
|
|
|
|
|
|
**The create command** creates for you a start project in a directory
|
|
|
|
|
|
```sh
|
|
iris create -t basic -d myprojects/iris1
|
|
```
|
|
|
|
Will create the [basic](https://github.com/iris-contrib/iris-command-assets/tree/master/basic) sample package to the `$GOPATH/src/myprojects/iris1` directory and run the app.
|
|
|
|
```sh
|
|
iris create -t static -d myprojects/iris1
|
|
```
|
|
|
|
Will create the [static](https://github.com/iris-contrib/iris-command-assets/tree/master/static) sample package to the `$GOPATH/src/myprojects/iris1` directory and run the app.
|
|
|
|
|
|
The default
|
|
|
|
```sh
|
|
iris create
|
|
```
|
|
|
|
Will create the basic sample package to `$GOPATH/src/myiris` directory and run the app.
|
|
|
|
```sh
|
|
iris create -d myproject
|
|
```
|
|
|
|
Will create the basic sample package to the `$GOPATH/src/myproject` folder and run the app.
|
|
|
|
|
|
## Version
|
|
|
|
```sh
|
|
iris version
|
|
```
|
|
|
|
Will print the current iris' installed version to your machine
|
|
|
|
## TODO
|
|
|
|
- [ ] Add more templates
|