|
1 | 1 | [](https://github.com/the-codegen-project/cli/blob/master/LICENSE)
|
2 | 2 | [](https://www.npmjs.com/package/@the-codegen-project/cli)
|
3 | 3 | 
|
4 |
| - |
5 |
| - |
6 |
| - |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +<!--  |
7 | 8 | 
|
8 | 9 | 
|
9 | 10 | 
|
10 | 11 | 
|
11 | 12 | 
|
12 |
| - |
| 13 | + |
| 14 | +--> |
13 | 15 | ---
|
14 | 16 |
|
15 |
| -The Codegen Project solves a single problem, how to simplify the implementation phase of software development for different standards. |
| 17 | +Simplifying your implementation phase when using standards such as AsyncAPI has never been easier. |
16 | 18 |
|
17 |
| -Here are all the ways you can integrate and run The Codegen Project CLI. For a full list of commands [checkout the usage documentation](./docs/usage.md). |
18 |
| - |
19 |
| -<h2 align="center">MacOS</h2> |
20 |
| -<!-- prettier-ignore-start --> |
21 |
| -<!-- markdownlint-disable --> |
22 |
| -<table align="center" style="width: 100%;"> |
| 19 | +<table> |
23 | 20 | <tr>
|
24 |
| - <td> |
25 |
| -<b><a href="https://brew.sh/">Brew</a></b> |
26 |
| - |
27 |
| -``` |
28 |
| -brew install codegen |
29 |
| -``` |
30 |
| -</td> |
| 21 | + <th colspan="3" style="text-align: center;">Anywhere</th> |
31 | 22 | </tr>
|
32 | 23 | <tr>
|
33 | 24 | <td>
|
34 |
| -<b>MacOS x64</b> |
35 |
| - |
36 |
| -Install it through a dedicated `.pkg` file as a MacOS Application |
37 |
| - |
38 |
| -``` |
39 |
| -# Download latest release |
40 |
| -curl -OL https://github.com/the-codegen-project/cli/releases/latest/download/codegen.x64.pkg |
41 |
| -# Install it |
42 |
| -sudo installer -pkg codegen.pkg -target / |
43 |
| -``` |
44 |
| -</td> |
45 |
| - </tr> |
46 |
| - <tr> |
| 25 | + <div style="text-align: center;"> |
| 26 | +TypeScript <video src='https://github.com/the-codegen-project/cli/assets/13396189/ef400456-3583-4e7a-aa65-f1db95f1c0ec' width=360></video> |
| 27 | + </div> |
| 28 | + </td> |
47 | 29 | <td>
|
48 |
| -<b>MacOS arm64</b> |
49 |
| - |
50 |
| -Install it through a dedicated `.pkg` file as a MacOS Application for arm64 |
51 |
| -``` |
52 |
| -# Download latest release |
53 |
| -curl -OL https://github.com/the-codegen-project/cli/releases/latest/download/codegen.arm64.pkg |
54 |
| -# Install it |
55 |
| -sudo installer -pkg codegen.pkg -target / |
56 |
| -``` |
57 |
| -</td> |
| 30 | + <div> |
| 31 | +Java Maven <video src='https://github.com/the-codegen-project/cli/assets/13396189/79b6019a-4e8f-4893-82ae-5b9f5c2cf2e6' width=360></video> |
| 32 | + </div> |
| 33 | + </td> |
| 34 | + <td> |
| 35 | + <div> |
| 36 | +Next.js <video src='https://github.com/the-codegen-project/cli/assets/13396189/e54aa060-61fc-49bd-b603-0a5f82667286' width=360></video> |
| 37 | + </div> |
| 38 | + </td> |
58 | 39 | </tr>
|
59 | 40 | </table>
|
60 | 41 |
|
61 |
| -<h2 align="center">Windows</h2> |
62 |
| -<!-- prettier-ignore-start --> |
63 |
| -<!-- markdownlint-disable --> |
64 |
| -<table align="center" style="width: 100%;"> |
| 42 | +## Install |
| 43 | +Install The Codegen Project any way you wish. |
| 44 | + |
| 45 | +<table style="table-layout: fixed;"> |
| 46 | + <tr style="height: 50px;"> |
| 47 | + <th>NPM (All Platforms)</th> |
| 48 | + <th>MacOS x64</th> |
| 49 | + <th>MacOS arm64</th> |
| 50 | + <th>Windows x64</th> |
| 51 | + <th>Windows x32</th> |
| 52 | + <th>Linux (Debian)</th> |
| 53 | + <th>Linux (Others)</th> |
| 54 | + </tr> |
65 | 55 | <tr>
|
66 |
| - <td> |
67 |
| -<b><a href="https://chocolatey.org/install">Chocolatey</a></b> |
| 56 | + <td style="vertical-align: top; min-width: 300px;"> |
| 57 | + <div> |
68 | 58 |
|
| 59 | +#### Globally |
| 60 | + |
| 61 | +```sh |
| 62 | +npm install -g @the-codegen-project/cli |
69 | 63 | ```
|
70 |
| -choco install codegen |
| 64 | + |
| 65 | +#### Locally |
| 66 | + |
| 67 | +```sh |
| 68 | +npm install --save-dev @the-codegen-project/cli |
71 | 69 | ```
|
72 |
| -</td> |
73 |
| - </tr> |
74 |
| - <tr> |
75 |
| - <td><b>Windows x64</b> |
| 70 | +</div> |
| 71 | + </td> |
| 72 | + <td style="vertical-align: top;"> |
| 73 | + <div> |
76 | 74 |
|
77 |
| -Manually download and run [`codegen.x64.exe`](https://github.com/the-codegen-project/cli/releases/latest/download/codegen.x64.exe) |
78 |
| -</td> |
79 |
| - </tr> |
80 |
| - <tr> |
81 |
| - <td> |
82 |
| -<b>Windows x32</b> |
| 75 | +#### Download |
| 76 | +```sh |
| 77 | +curl -OL https://github.com/the-codegen-project/cli/releases/latest/download/codegen.x64.pkg |
| 78 | +``` |
83 | 79 |
|
84 |
| -Manually download and run the executable [`codegen.x86.exe`](https://github.com/the-codegen-project/cli/releases/latest/download/codegen.x86.exe) |
85 |
| -</td> |
86 |
| - </tr> |
87 |
| -</table> |
| 80 | +#### Install |
| 81 | +```sh |
| 82 | +sudo installer -pkg codegen.x64.pkg -target / |
| 83 | +``` |
88 | 84 |
|
| 85 | +</div> |
| 86 | + </td> |
| 87 | + <td style="vertical-align: top;"> |
| 88 | + <div> |
89 | 89 |
|
90 |
| -<h2 align="center">Linux</h2> |
91 |
| -<!-- prettier-ignore-start --> |
92 |
| -<!-- markdownlint-disable --> |
93 |
| -<table align="center" style="width: 100%;"> |
94 |
| - <tr> |
95 |
| - <td><b>Debian</b> |
| 90 | +#### Download |
| 91 | +```sh |
| 92 | +curl -OL https://github.com/the-codegen-project/cli/releases/latest/download/codegen.arm64.pkg |
| 93 | +``` |
| 94 | +#### Install |
96 | 95 |
|
| 96 | +```sh |
| 97 | +sudo installer -pkg codegen.arm64.pkg -target / |
97 | 98 | ```
|
98 |
| -# Download |
| 99 | +</div> |
| 100 | + </td> |
| 101 | + <td style="vertical-align: top;"> |
| 102 | + <div> |
| 103 | +<a href="https://github.com/the-codegen-project/cli/releases/latest/download/codegen.x64.exe">Download and run codegen.x64.exe</a> |
| 104 | +</div> |
| 105 | + </td> |
| 106 | + <td style="vertical-align: top;"> |
| 107 | + <div> |
| 108 | +<a href="https://github.com/the-codegen-project/cli/releases/latest/download/codegen.x86.exe">Download and run codegen.x86.exe</a> |
| 109 | +</div> |
| 110 | + </td> |
| 111 | + <td style="vertical-align: top;"> |
| 112 | + <div> |
| 113 | + |
| 114 | +#### Download |
| 115 | +```sh |
99 | 116 | curl -OL https://github.com/the-codegen-project/cli/releases/latest/download/codegen.deb
|
| 117 | +``` |
100 | 118 |
|
101 |
| -# Install |
| 119 | +#### Install |
| 120 | +```sh |
102 | 121 | sudo apt install ./codegen.deb
|
103 | 122 | ```
|
104 |
| -</td> |
105 |
| - </tr> |
106 |
| - <tr> |
107 |
| - <td> |
108 |
| -<b>Others</b> |
| 123 | +</div> |
| 124 | + </td> |
| 125 | + <td style="vertical-align: top;"> |
| 126 | + <div> |
109 | 127 |
|
110 |
| -``` |
111 |
| -# Download |
| 128 | +#### Download |
| 129 | +```sh |
112 | 130 | curl -OL https://github.com/the-codegen-project/cli/releases/latest/download/codegen.tar.gz
|
113 |
| -# Install |
| 131 | +``` |
| 132 | + |
| 133 | +#### Install |
| 134 | + |
| 135 | +```sh |
114 | 136 | tar -xzf codegen.tar.gz
|
115 | 137 | ```
|
116 | 138 |
|
117 |
| -Remember to symlink the binaries `ln -s <absolute-path>/bin/codegen /user/local/bin/codegen` to access the CLI anywhere. |
118 |
| -</td> |
| 139 | +#### Symlink |
| 140 | +```sh |
| 141 | +ln -s <absolute-path>/bin/codegen /usr/local/bin/codegen |
| 142 | +``` |
| 143 | + |
| 144 | +</div> |
| 145 | + </td> |
119 | 146 | </tr>
|
120 | 147 | </table>
|
121 | 148 |
|
122 |
| -<h2 align="center">Other ways</h2> |
123 |
| -<!-- prettier-ignore-start --> |
124 |
| -<!-- markdownlint-disable --> |
125 |
| -<table align="center" style="width: 100%;"> |
126 |
| - <tr> |
127 |
| - <td> |
128 |
| -<b>NPM</b> |
| 149 | +## Initialize |
| 150 | +Add The Codegen Project configuration file, either manually or through the CLI; |
| 151 | +```sh |
| 152 | +codegen init |
| 153 | +``` |
129 | 154 |
|
130 |
| -```typescript |
131 |
| -npm install -g @the-codegen-project/cli |
| 155 | +<video src='https://github.com/the-codegen-project/cli/assets/13396189/6a351e0d-b5b2-4ca3-845a-556aeba490c9' width=1920></video> |
| 156 | + |
| 157 | +Check out all the new generators here: https://github.com/the-codegen-project/cli/tree/main/docs/generators |
| 158 | + |
| 159 | +## Generate |
| 160 | +With your configuration file in hand, time to generate the code and use it! |
| 161 | + |
| 162 | +```sh |
| 163 | +codegen generate |
132 | 164 | ```
|
133 |
| -</td> |
134 |
| - </tr> |
135 |
| -</table> |
|
0 commit comments