Skip to content

Commit 8952f61

Browse files
author
Andrei Canta
committed
improve readme & docs
1 parent 13c0340 commit 8952f61

File tree

2 files changed

+90
-79
lines changed

2 files changed

+90
-79
lines changed

DOCUMENTATION.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
## :book: Documentation
2+
3+
Here are the sub-commands for `stacker` CLI.
4+
5+
### `$ stacker init`
6+
7+
Generates `stacker.yaml` based on your responses.
8+
9+
| Type | Name | Description | Required |
10+
| --- | --- | --- | --- |
11+
| argument | `[stack]` | Stack name | no |
12+
| option | `-y | --defaults` | Use default options | no |
13+
14+
### `$ stacker link`
15+
16+
- creates a local IP alias (eg. `127.20.17.1`)
17+
- adds your chosen domain name in `/etc/hosts`
18+
- adds the project to the projects list
19+
20+
### `$ stacker unlink`
21+
22+
Does the opposite of `stacker link`.
23+
24+
### `$ stacker up`
25+
26+
Builds and starts the project.
27+
28+
| Type | Name | Description | Required |
29+
| --- | --- | --- | --- |
30+
| option | `--ip` | IP address | no |
31+
| option | `--detached` (`-d`) | Detached mode | no |
32+
33+
### `$ stacker build`
34+
35+
Builds the project.
36+
37+
| Type | Name | Description | Required |
38+
| --- | --- | --- | --- |
39+
| option | `--ip` | IP address | no |
40+
41+
### `$ stacker start`
42+
43+
Starts the application.
44+
45+
### `$ stacker stop`
46+
47+
Stops the application.
48+
49+
### `$ stacker restart`
50+
51+
Restarts the application.
52+
53+
### `$ stacker down`
54+
55+
Removes and stops the application.
56+
57+
### `$ stacker shell`
58+
59+
Opens an interactive shell for a given service.
60+
61+
| Type | Name | Description | Required |
62+
| --- | --- | --- | --- |
63+
| argument | `[service]` | Service name | no |
64+
65+
### `$ stacker run`
66+
67+
Executes a pre-defined shell command.
68+
69+
| Type | Name | Description | Required |
70+
| --- | --- | --- | --- |
71+
| argument | `[command]` | Runnable name | no |
72+
73+
### `$ stacker eject`
74+
75+
Ejects a config file so you'll be able to customize it.
76+
77+
| Type | Name | Description | Required |
78+
| --- | --- | --- | --- |
79+
| argument | `[file]` | Ejectable name | no |
80+
81+
### `$ stacker links`
82+
83+
Displays all the linked projects.

README.md

Lines changed: 7 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Stacker is a simple tool for defining application environments, aka *stacks*. Ea
3030

3131
## :checkered_flag: Installation
3232

33+
> Requirements: `node 6+`, `docker 17+`, `docker-compose 1.10+`.
34+
3335
Install the CLI app globally using NPM.
3436

3537
```bash
@@ -72,89 +74,15 @@ Before going further, make sure you `cd` into the root path of your project (`cd
7274

7375
After this you will be able to reach your application using the domain name you choose previously. (eg. `test-project.dev`)
7476

75-
## :book: Commands
76-
77-
Here are the sub-commands for `stacker` CLI.
78-
79-
### `$ stacker init`
80-
81-
Generates `stacker.yaml` based on your responses.
82-
83-
| Type | Name | Description | Required |
84-
| --- | --- | --- | --- |
85-
| argument | `[stack]` | Stack name | no |
86-
| option | `-y | --defaults` | Use default options | no |
87-
88-
### `$ stacker link`
89-
90-
- creates a local IP alias (eg. `127.20.17.1`)
91-
- adds your chosen domain name in `/etc/hosts`
92-
- adds the project to the projects list
93-
94-
### `$ stacker unlink`
95-
96-
Does the opposite of `stacker link`.
97-
98-
### `$ stacker up`
99-
100-
Builds and starts the project.
101-
102-
| Type | Name | Description | Required |
103-
| --- | --- | --- | --- |
104-
| option | `--ip` | IP address | no |
105-
| option | `--detached` (`-d`) | Detached mode | no |
106-
107-
### `$ stacker build`
108-
109-
Builds the project.
110-
111-
| Type | Name | Description | Required |
112-
| --- | --- | --- | --- |
113-
| option | `--ip` | IP address | no |
114-
115-
### `$ stacker start`
116-
117-
Starts the application.
118-
119-
### `$ stacker stop`
120-
121-
Stops the application.
122-
123-
### `$ stacker restart`
124-
125-
Restarts the application.
126-
127-
### `$ stacker down`
128-
129-
Removes and stops the application.
130-
131-
### `$ stacker shell`
132-
133-
Opens an interactive shell for a given service.
134-
135-
| Type | Name | Description | Required |
136-
| --- | --- | --- | --- |
137-
| argument | `[service]` | Service name | no |
138-
139-
### `$ stacker run`
140-
141-
Executes a pre-defined shell command.
142-
143-
| Type | Name | Description | Required |
144-
| --- | --- | --- | --- |
145-
| argument | `[command]` | Runnable name | no |
146-
147-
### `$ stacker eject`
77+
## :hand: Add your favorite stack!
14878

149-
Ejects a config file so you'll be able to customize it.
79+
Is your stack missing? Please open an issue and we'll take care of it. Since we're not experts in all stacks, your input and guidance will be helpful to make a top notch stack. For the moment, we will keep all the stacks inside the official repos just to make sure they all follow best practices.
15080

151-
| Type | Name | Description | Required |
152-
| --- | --- | --- | --- |
153-
| argument | `[file]` | Ejectable name | no |
81+
Here is a list of the stacks we want to add with your help: Symfony, Ruby on Rails, Django, Meteor, Play, Ghost. If you have other stacks in mind just let us know.
15482

155-
### `$ stacker links`
83+
## :memo: Documentation
15684

157-
Displays all the linked projects.
85+
For full CLI reference, checkout the [DOCUMENTATION.md](DOCUMENTATION.md) file.
15886

15987
## :scroll: License
16088

0 commit comments

Comments
 (0)