aerocoding 0.0.3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,136 @@
1
+ # AeroCoding CLI
2
+
3
+ Generate production-ready code from your UML diagrams via command line.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g aerocoding
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ### 1. Login
14
+
15
+ Authenticate with your AeroCoding account:
16
+
17
+ ```bash
18
+ aerocoding login
19
+ ```
20
+
21
+ This will open your browser for OAuth Device Flow authentication.
22
+
23
+ ### 2. Generate Code
24
+
25
+ Generate code from your project:
26
+
27
+ ```bash
28
+ aerocoding generate --project <project-id> --targets dotnet-entity typescript-interface
29
+ ```
30
+
31
+ ## Commands
32
+
33
+ ### Authentication
34
+
35
+ - `aerocoding login` - Authenticate with AeroCoding (OAuth Device Flow)
36
+ - `aerocoding logout` - Clear stored credentials
37
+ - `aerocoding whoami` - Show current authenticated user
38
+
39
+ ### Code Generation
40
+
41
+ - `aerocoding generate` - Generate code from project schema
42
+
43
+ Options:
44
+ - `--project <id>` - Project ID (required)
45
+ - `--targets <targets...>` - Generation targets (e.g., `dotnet-entity typescript-interface`)
46
+ - `--entities <entities...>` - Filter by specific entities
47
+ - `--preset <preset>` - Architecture preset
48
+ - `--layers <layers...>` - Specific layers to generate
49
+ - `--output <dir>` - Output directory (default: `./generated`)
50
+ - `--preview` - Preview without writing files
51
+
52
+ ### Project Management
53
+
54
+ - `aerocoding init` - Initialize config in current directory (coming soon)
55
+ - `aerocoding pull` - Pull schema from cloud (coming soon)
56
+ - `aerocoding status` - Show local schema status (coming soon)
57
+
58
+ ## Examples
59
+
60
+ ### Generate .NET entities only
61
+
62
+ ```bash
63
+ aerocoding gen --project abc123 --targets dotnet-entity
64
+ ```
65
+
66
+ ### Generate full stack (backend + frontend)
67
+
68
+ ```bash
69
+ aerocoding gen --project abc123 \
70
+ --targets dotnet-entity dotnet-repository typescript-interface
71
+ ```
72
+
73
+ ### Generate for specific entities
74
+
75
+ ```bash
76
+ aerocoding gen --project abc123 \
77
+ --targets dotnet-entity \
78
+ --entities User Product Order
79
+ ```
80
+
81
+ ### Preview without writing files
82
+
83
+ ```bash
84
+ aerocoding gen --project abc123 --targets dotnet-entity --preview
85
+ ```
86
+
87
+ ## Configuration
88
+
89
+ The CLI uses environment variables for configuration. Create a `.env` file:
90
+
91
+ ```env
92
+ API_URL=https://aerocoding.dev
93
+ SUPABASE_URL=https://your-project.supabase.co
94
+ SUPABASE_ANON_KEY=your-anon-key
95
+ ```
96
+
97
+ ## Security
98
+
99
+ Tokens are stored securely using your operating system's credential manager:
100
+
101
+ - **macOS**: Keychain
102
+ - **Windows**: Credential Manager
103
+ - **Linux**: Secret Service API (libsecret)
104
+
105
+ ## Troubleshooting
106
+
107
+ ### Not authenticated
108
+
109
+ If you see "Not authenticated", run:
110
+
111
+ ```bash
112
+ aerocoding logout
113
+ aerocoding login
114
+ ```
115
+
116
+ ### Token expired
117
+
118
+ Tokens are automatically refreshed. If refresh fails:
119
+
120
+ ```bash
121
+ aerocoding login
122
+ ```
123
+
124
+ ### Network errors
125
+
126
+ Check your API URL configuration and internet connection.
127
+
128
+ ## Links
129
+
130
+ - [Documentation](https://docs.aerocoding.dev)
131
+ - [GitHub](https://github.com/aerocoding/aerocoding)
132
+ - [Website](https://aerocoding.dev)
133
+
134
+ ## License
135
+
136
+ MIT
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node