-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathindex.html
More file actions
521 lines (430 loc) · 16.2 KB
/
Copy pathindex.html
File metadata and controls
521 lines (430 loc) · 16.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multigravity Pro</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
color: #24292f;
background: #fff;
line-height: 1.6;
font-size: 16px;
}
.container {
max-width: 880px;
margin: 0 auto;
padding: 40px 24px 80px;
}
h1 {
font-size: 2em;
font-weight: 600;
color: #0969da;
margin-bottom: 12px;
}
h2 {
font-size: 1.5em;
font-weight: 600;
margin-top: 48px;
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #d1d9e0;
}
h3 {
font-size: 1.17em;
font-weight: 600;
margin-top: 24px;
margin-bottom: 8px;
}
p { margin: 12px 0; }
a { color: #0969da; text-decoration: none; }
a:hover { text-decoration: underline; }
.badges {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.badges img { height: 20px; }
.logo {
width: 80px;
height: 80px;
border-radius: 12px;
margin-bottom: 20px;
}
.tagline {
font-size: 1.05em;
font-weight: 600;
}
.subtitle { color: #656d76; }
blockquote {
border-left: 4px solid #d1d9e0;
padding: 4px 16px;
color: #656d76;
margin: 16px 0;
}
hr {
border: none;
border-top: 1px solid #d1d9e0;
margin: 32px 0;
}
/* Code blocks */
.code-block {
position: relative;
margin: 12px 0;
}
.code-block pre {
background: #f6f8fa;
border-radius: 8px;
padding: 16px;
padding-right: 48px;
overflow-x: auto;
font-size: 0.9em;
line-height: 1.5;
}
.code-block code {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
.copy-btn {
position: absolute;
top: 8px;
right: 8px;
background: #fff;
border: 1px solid #d1d9e0;
border-radius: 6px;
padding: 4px 8px;
cursor: pointer;
font-size: 12px;
color: #656d76;
opacity: 0;
transition: opacity 0.15s;
}
.code-block:hover .copy-btn { opacity: 1; }
.copy-btn:hover {
background: #f6f8fa;
color: #24292f;
}
.copy-btn.copied {
color: #1a7f37;
border-color: #1a7f37;
}
/* Inline code */
p code, li code, td code {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
background: #f6f8fa;
padding: 2px 6px;
border-radius: 4px;
font-size: 0.88em;
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
font-size: 0.95em;
}
th, td {
text-align: left;
padding: 10px 14px;
border: 1px solid #d1d9e0;
}
th {
background: #f6f8fa;
font-weight: 600;
}
/* Lists */
ul, ol {
padding-left: 24px;
margin: 8px 0;
}
li { margin: 4px 0; }
/* Terminal output */
.terminal {
background: #24292f;
color: #e6edf3;
border-radius: 8px;
padding: 16px;
margin: 12px 0;
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-size: 0.85em;
line-height: 1.6;
overflow-x: auto;
}
.terminal .g { color: #3fb950; }
.terminal .y { color: #d29922; }
.terminal .b { color: #58a6ff; }
.terminal .d { color: #8b949e; }
/* Command table */
.cmd-table td:first-child {
white-space: nowrap;
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-size: 0.85em;
}
.credits {
color: #656d76;
font-size: 0.9em;
}
.credits a { color: #0969da; }
@media (max-width: 640px) {
h1 { font-size: 1.6em; }
.container { padding: 24px 16px 60px; }
}
</style>
</head>
<body>
<div class="container">
<h1>multigravity-pro</h1>
<div class="badges">
<a href="https://github.com/Pulkit7070/multigravity-pro"><img src="https://img.shields.io/badge/GitHub-Repository-blue?logo=github" alt="Repository"></a>
<a href="https://github.com/Pulkit7070"><img src="https://img.shields.io/badge/GitHub-Profile-blue?logo=github" alt="Profile"></a>
<img src="https://img.shields.io/github/stars/Pulkit7070/multigravity-pro?style=social" alt="Stars">
</div>
<img src="assets/multigravity-logo.jpg" alt="Multigravity" class="logo">
<h2 style="margin-top: 0;">Multigravity</h2>
<p class="tagline">Run multiple Antigravity IDE profiles at the same time — each with its own accounts, settings, and extensions.</p>
<p class="subtitle">No more logging in and out. Just switch profiles instantly or use them all at once.</p>
<blockquote>Supported OS: macOS, Windows, and Linux.</blockquote>
<hr>
<!-- Install -->
<h2>Install</h2>
<h3>macOS / Linux</h3>
<p>Open your terminal and paste this:</p>
<div class="code-block">
<pre><code>/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Pulkit7070/multigravity-pro/main/install.sh)"</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<h3>Windows</h3>
<p>Open <strong>PowerShell</strong> and paste:</p>
<div class="code-block">
<pre><code>irm https://raw.githubusercontent.com/Pulkit7070/multigravity-pro/main/install.ps1 | iex</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<p>That's it. Multigravity is now installed. Verify everything is set up correctly:</p>
<div class="code-block">
<pre><code>multigravity doctor</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<!-- Beginner nudge -->
<div style="
margin: 28px 0;
border: 1px solid #d1d9e0;
border-radius: 8px;
overflow: hidden;
">
<div style="
background: #f6f8fa;
padding: 20px 24px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
flex-wrap: wrap;
">
<div>
<div style="font-weight: 600; color: #24292f; margin-bottom: 4px;">Already feeling overwhelmed?</div>
<div style="color: #656d76; font-size: 0.9em; line-height: 1.5;">
No worries — we have a visual, step-by-step guide made for people who are new to terminals, coding, and AI tools.
It explains everything from scratch.
</div>
</div>
<a href="start.html" style="
flex-shrink: 0;
display: inline-block;
background: #24292f;
color: #fff;
padding: 10px 22px;
border-radius: 6px;
font-size: 0.88em;
font-weight: 600;
white-space: nowrap;
transition: background 0.15s;
" onmouseover="this.style.background='#32383f'" onmouseout="this.style.background='#24292f'">Take me to the Beginner's Guide</a>
</div>
</div>
<hr>
<!-- Getting Started -->
<h2>Getting Started</h2>
<h3>1. Create a profile</h3>
<p>Give it any name you like — your name, a project, a client, anything:</p>
<div class="code-block">
<pre><code>multigravity new work
multigravity new personal</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<p>This also creates a clickable launcher:</p>
<ul>
<li>macOS: <code>~/Applications/Multigravity <name>.app</code></li>
<li>Windows: <strong>Start Menu</strong> shortcut</li>
<li>Linux: <code>~/.local/share/applications/multigravity-<name>.desktop</code></li>
</ul>
<h3>2. Open a profile</h3>
<div class="code-block">
<pre><code>multigravity work</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<p>Antigravity will open using that profile's isolated settings, accounts, and extensions.</p>
<p>You can also pass normal Antigravity arguments through:</p>
<div class="code-block">
<pre><code>multigravity work --new-window
multigravity work .
multigravity work path/to/file.py</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<h3>3. Enable tab completion (optional)</h3>
<p>Get autocomplete for all commands and profile names in your shell:</p>
<div class="code-block">
<pre><code>multigravity completion</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<p class="subtitle">Follow the printed instructions to add it to your shell profile. Works with bash and zsh.</p>
<hr>
<!-- Auth-Only Profiles -->
<h2>Auth-Only Profiles</h2>
<p>Most people just need separate logins, not separate extensions. Auth-only profiles share your existing extensions and settings via symlinks — only the account is isolated.</p>
<div class="code-block">
<pre><code>multigravity new client-a --auth-only
multigravity new client-b --auth-only</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<table>
<tr><th></th><th>Full Profile</th><th>Auth-Only</th></tr>
<tr><td>Extensions</td><td>Separate copy</td><td>Shared (symlink)</td></tr>
<tr><td>Settings</td><td>Separate copy</td><td>Shared (symlink)</td></tr>
<tr><td>Account / Auth</td><td>Isolated</td><td>Isolated</td></tr>
<tr><td>Disk usage</td><td>~500 MB</td><td>~2 MB</td></tr>
</table>
<hr>
<!-- Templates -->
<h2>Templates</h2>
<p>Set up one perfect environment, reuse it forever.</p>
<div class="code-block">
<pre><code># Save your configured profile as a template
multigravity template save work python-dev
# See all templates
multigravity template list
# Create a new profile from it
multigravity new new-client --from python-dev
# Remove a template
multigravity template delete python-dev</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<hr>
<!-- Status -->
<h2>Status</h2>
<p>See what's happening across all your profiles:</p>
<div class="code-block">
<pre><code>multigravity status</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<div class="terminal">
<span class="d">PROFILE STATUS TYPE LAST USED SIZE</span>
<span class="d">------- ------ ---- --------- ----</span>
<span class="b">client-a</span> <span class="g">running</span> auth-only 2026-03-10 14:30 2 MB
<span class="b">client-b</span> <span class="y">stopped</span> auth-only 2026-03-08 09:15 1 MB
<span class="b">personal</span> <span class="y">stopped</span> full 2026-03-09 20:00 487 MB
<span class="b">work</span> <span class="g">running</span> full 2026-03-10 14:32 523 MB</div>
<hr>
<!-- Export / Import -->
<h2>Export / Import</h2>
<p>Move profiles between machines, share with teammates, or back up.</p>
<div class="code-block">
<pre><code># Export
multigravity export work ~/Desktop/work.tar.gz # macOS/Linux
multigravity export work C:\backup\work.zip # Windows
# Import (auto-detects profile name from the file)
multigravity import work.tar.gz
multigravity import work.zip client-setup # custom name</code></pre>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
<hr>
<!-- All Commands -->
<h2>All Commands</h2>
<table class="cmd-table">
<tr><th>Command</th><th>Description</th></tr>
<tr><td>multigravity new <name></td><td>Create a new full profile</td></tr>
<tr><td>multigravity new <name> --auth-only</td><td>Create an auth-only profile</td></tr>
<tr><td>multigravity new <name> --from <tpl></td><td>Create from a saved template</td></tr>
<tr><td>multigravity <name> [args...]</td><td>Launch a profile</td></tr>
<tr><td>multigravity list</td><td>List all profiles</td></tr>
<tr><td>multigravity status</td><td>Show running/stopped, type, last used, size</td></tr>
<tr><td>multigravity clone <src> <dest></td><td>Copy a profile</td></tr>
<tr><td>multigravity rename <old> <new></td><td>Rename a profile</td></tr>
<tr><td>multigravity delete <name></td><td>Delete a profile (with confirmation)</td></tr>
<tr><td>multigravity template save <profile> <name></td><td>Save profile as template</td></tr>
<tr><td>multigravity template list</td><td>List all templates</td></tr>
<tr><td>multigravity template delete <name></td><td>Remove a template</td></tr>
<tr><td>multigravity export <name> [path]</td><td>Export profile to archive</td></tr>
<tr><td>multigravity import <archive> [name]</td><td>Import profile from archive</td></tr>
<tr><td>multigravity doctor</td><td>Check environment health</td></tr>
<tr><td>multigravity stats</td><td>Disk usage per profile</td></tr>
<tr><td>multigravity update</td><td>Self-update</td></tr>
<tr><td>multigravity completion</td><td>Shell autocompletion setup</td></tr>
<tr><td>multigravity help</td><td>Show help</td></tr>
</table>
<hr>
<!-- Profile Name Rules -->
<h2>Profile Name Rules</h2>
<ul>
<li>Letters, numbers, and hyphens only</li>
<li>Must start with a letter or number</li>
<li>Valid: <code>work</code>, <code>client-a</code>, <code>test1</code></li>
<li>Invalid: <code>-name</code>, <code>my_profile</code>, <code>has spaces</code></li>
</ul>
<hr>
<!-- What's New in Pro -->
<h2>What's New in Pro</h2>
<table>
<tr><th>Feature</th><th>Command</th><th>What it does</th></tr>
<tr>
<td>Auth-only profiles</td>
<td><code>new work --auth-only</code></td>
<td>Share extensions and settings across profiles, isolate only the login. Near-zero disk usage.</td>
</tr>
<tr>
<td>Profile templates</td>
<td><code>template save work py-dev</code></td>
<td>Save a configured profile as a reusable starting point. <code>new x --from py-dev</code> to stamp out copies.</td>
</tr>
<tr>
<td>Status dashboard</td>
<td><code>status</code></td>
<td>See which profiles are running, their type, last used time, and disk size.</td>
</tr>
<tr>
<td>Export / Import</td>
<td><code>export work ./work.zip</code></td>
<td>Pack a profile into one portable file. Move between machines, share with teammates.</td>
</tr>
<tr>
<td>Windows support fixed</td>
<td>All commands</td>
<td>The original Windows support was broken. Rewrote the PowerShell script with proper stream handling, symlink creation, and tested all 40+ edge cases.</td>
</tr>
</table>
<p>Everything from the original <a href="https://github.com/sujitagarwal/multigravity-cli">multigravity-cli</a> still works — <code>new</code>, <code>list</code>, <code>clone</code>, <code>rename</code>, <code>delete</code>, <code>doctor</code>, <code>stats</code>, <code>update</code>, <code>completion</code>.</p>
<hr>
<!-- Credits -->
<div class="credits">
<h2>Credits</h2>
<p>Multigravity Pro is built on top of <a href="https://github.com/sujitagarwal/multigravity-cli">multigravity-cli</a> by <a href="https://github.com/sujitagarwal">Sujit Agarwal</a>.</p>
<p style="margin-top: 24px;">MIT License</p>
</div>
</div>
<script>
function copyCode(btn) {
const code = btn.previousElementSibling.querySelector('code');
const text = code.innerText;
navigator.clipboard.writeText(text).then(function () {
btn.textContent = 'Copied!';
btn.classList.add('copied');
setTimeout(function () {
btn.textContent = 'Copy';
btn.classList.remove('copied');
}, 2000);
});
}
</script>
</body>
</html>