๐ฆ ํจํค์ง
์ค์น
๐ฆ Capgo Cloud์์ ๋ฐฐํฌ๋ฅผ ์ํด ์ฑ ํจํค์ง๋ฅผ ๊ด๋ฆฌํฉ๋๋ค. ์ ๋ก๋, ํธํ์ฑ ๊ฒ์ฌ ๋ฐ ์ํธํ๊ฐ ํฌํจ๋ฉ๋๋ค.
โฌ๏ธ ์ ๋ก๋
์ ๋ก๋ ์ ๋ชฉAlias: u
npx @capgo/cli@latest bundle uploadโฌ๏ธ Capgo Cloud๋ก ์๋ก์ด ์ฑ ํจํค์ง๋ฅผ ์ ๋ก๋ํ์ฌ ๋ฐฐํฌํฉ๋๋ค. ๋ฒ์ ์ 0.0.0๋ณด๋ค ๋์์ผ ํ๋ฉฐ ๊ณ ์ ํด์ผ ํฉ๋๋ค. ์ญ์ ๋ ๋ฒ์ ์ ๋ณด์์ ์ํด ์ฌ์ฌ์ฉํ ์ ์์ต๋๋ค. ์ธ๋ถ ์ต์ : URL ๋งํฌ๋ง ์ ์ฅ(200MB ์ด์์ ์ฑ ๋๋ ๊ฐ์ธ ์ ๋ณด ๋ณดํธ ์๊ตฌ ์ฌํญ์ ์ ์ฉํฉ๋๋ค). Capgo๋ ์ธ๋ถ ์ฝํ ์ธ ๋ฅผ ๊ฒ์ฌํ์ง ์์ต๋๋ค. ์ ๋ขฐํ ์ ์๋ ๋ณด์์ ์ํด ์ํธํ ์ถ๊ฐ.
์์:
npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel production,beta__CAPGO_KEEP_0__ ์ฑ๋ (๋๋ ์ต์ ่ฟ็จๅบ็จ็ๆฌ)์์ ๋ค์ ๋ฌด๋ฃ ์ธ๋ฏธ๋ฒ์ ๋ฅผ ์๋์ผ๋ก ์
๋ฐ์ดํธํฉ๋๋ค. __CAPGO_KEEP_0__์ ์ ๋ฌํ์ง ์์ ๋ --bundle__CAPGO_KEEP_0__์ด CI์์ ์ ์ฉํฉ๋๋ค. package.json Capgo์ด ์ด๋ฏธ Capgo๊ณผ ์ผ์นํ ๋:
npx @capgo/cli@latest bundle upload --channel=production --auto-bumpnpx @capgo/cli@latest bundle upload --auto-bump majornpx @capgo/cli@latest bundle upload --auto-bump minor # default when the flag has no valuenpx @capgo/cli@latest bundle upload --auto-bump patch # alias: fixnpx @capgo/cli@latest bundle upload --auto-bump metadatanpx @capgo/cli@latest bundle upload --channel=production --auto-bump ai__CAPGO_KEEP_0__ __CAPGO_KEEP_1__์ ํจ๊ป, Workers AI๋ ์ด์ __CAPGO_KEEP_2__/์ฑ๋ ๋ธํ ๋งค๋ํ์คํธ์ __CAPGO_KEEP_0__์ ๋ก๊ทธ์ ์งง์ ์ด์ ๋ฅผ ์ถ๋ ฅํฉ๋๋ค. ์ด์ __CAPGO_KEEP_1__ ๋ฒ์ ์ด ์์ผ๋ฉด AI๊ฐ ์๋ต๋๊ณ ์
๋ฐ์ดํธ๋ __CAPGO_KEEP_0__๋ก ๊ธฐ๋ณธ๊ฐ์ด ๋ฉ๋๋ค. --auto-bump ai, Capgo Cloudflare Workers AI compares local bundle files to the previous Capgo/channel delta manifest, infers major | minor | patch | metadata, and prints a short reason in the CLI log. If no previous Capgo version exists, AI is skipped and the bump defaults to __CAPGO_KEEP_0__.
__CAPGO_KEEP_1__
| Param | Type | ์ค๋ช |
|---|---|---|
| -a | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๋ ํค |
| -p | string | capacitor.config์์ webDir๋ก ์ค์ ํ์ง ์์ ๊ฒฝ์ฐ ์ ๋ก๋ํ ํด๋์ ๊ฒฝ๋ก |
| -c | string | ๋งํฌํ ์ฑ๋. ์๋ฅผ ๋ค์ด production,beta |
| โrollout | string | 0์์ 100๊น์ง์ ํผ์ผํธ๋ก ์ ๋ก๋ํ ํจํค์ง๋ฅผ ์ด ์ฑ๋์ ๋กค์์ ๋ชฉํ๋ก ์ค์ |
| โrollout-percentage-bps | string | 0์์ 10000๊น์ง ์ ๋ก๋ ๋ ๋ฒ๋ค ๋กค์์ ํผ์ผํธ๋ฅผ ์ค์ ํฉ๋๋ค. |
| โrollout-cache-ttl-seconds | string | Cloudflare ๋กค์์ ๊ฒฐ์ ์บ์ TTL (์ด) |
| -e | string | Capgo ํด๋ผ์ฐ๋์ ์ ๋ก๋ํ๋ ๋์ ์ธ๋ถ URL๋ก ์ฐ๊ฒฐํฉ๋๋ค. |
| โiv-session-key | string | ๋ฒ๋ค URL ์ธ๋ถ์์ IV ๋ฐ ์ธ์ ํค๋ฅผ ์ค์ ํฉ๋๋ค. |
| โs3-region | string | ๋น์ ์ S3 ๋ฒํท์ ์ง์ญ |
| โs3-apikey | string | API S3 ์๋ํฌ์ธํธ์ ํค |
| โs3-apisecret | string | API API์ S3 ์๋ํฌ์ธํธ์ ๋ํ ๋น๋ฐ ํค |
| โ s3-endpoint | string | S3 ์๋ํฌ์ธํธ์ URL |
| โ s3-bucket-name | string | AWS S3 ๋ฒํท์ ์ด๋ฆ |
| โ s3-port | string | S3 ์๋ํฌ์ธํธ์ ํฌํธ |
| โ no-s3-ssl | boolean | S3 ์ ๋ก๋์ ๋ํ SSL์ ๋นํ์ฑํ |
| โ key-v2 | string | ์ฌ์ฉ์ ์ง์ ๊ฐ์ธ ์๋ช ํค์ ๊ฒฝ๋ก (v2 ์์คํ ) |
| โ key-data-v2 | string | ๊ฐ์ธ ์๋ช ํค (v2 ์์คํ ) |
| โbundle-url | boolean | ์ถ๋ ฅ ์คํธ๋ฆผ์ผ๋ก ๋ฒ๋ค URL์ ์ถ๋ ฅํฉ๋๋ค. |
| โno-key | boolean | ์๋ช ํค๋ฅผ ๋ฌด์ํ๊ณ ์ ๋ฐ์ดํธ ๋ด์ฉ์ ํด๋ฆฌ์ด๋ก ์ ์กํฉ๋๋ค. |
| โno-code-check | boolean | ์์ค code์ ์ธ๋ฑ์ค ๋ฃจํธ ํด๋์ ์๋์ง ํ์ธํ์ง ์์ต๋๋ค. |
| โdisplay-iv-session | boolean | ์ฝ์์ ์ ๋ฐ์ดํธ๋ฅผ ์ํธํํ ๋ ์ฌ์ฉํ๋ IV์ ์ธ์ ํค๋ฅผ ํ์ํฉ๋๋ค. |
| -b | string | ์ ๋ก๋ํ ๋ฒ๋ค์ ๋ฒ์ ๋ฒํธ |
| โauto-bump | string | ์ฑ๋๊ณผ ์ฐ๊ฒฐ๋ ๋ฒ๋ค์์ ์๋์ผ๋ก ์ฆ๊ฐํ๊ฑฐ๋, else ์ต์ ่ฟ็จ ์ฑ ๋ฒ์ ์ ๋๋ค. Level: major, minor (๊ธฐ๋ณธ), patch (alias fix), metadata, ๋๋ ai (์น ์์ปค AI๋ ์ง์ญ vs ์ด์ delta ๋งค๋ํ์คํธ์์ ์์ค์ ์ถ๋ก ํฉ๋๋ค; ์ด์ Capgo ๋ฒ์ ์ด ์์ผ๋ฉด patch๋ก ๋์๊ฐ๋๋ค). ์ญ์ ๋ ์ด๋ฆ์ด ์ฐจ์งํ ์ฑ๋์ด ์์ผ๋ฉด free ์ด๋ฆ์ด ๋ฐ๊ฒฌ๋ ๋๊น์ง ๋ฒ์ ์ ์ ๋ฐ์ดํธํฉ๋๋ค. โbundle (-b)์ ํจ๊ป ์ฌ์ฉํ ์ ์์ต๋๋ค. |
| โ๋งํฌ | string | ์ธ๋ถ ๋ฆฌ์์ค์ ์ฐ๊ฒฐํฉ๋๋ค (์: GitHub ๋ฆด๋ฆฌ์ค) |
| ์ด ๋ฒ์ ์ ๋ํ ์ฃผ์์ ๋๋ค. ๋ฆด๋ฆฌ์ค ๋ ธํธ, ์ปค๋ฐ ํด์, ์ปค๋ฐ ๋ฉ์์ง ๋ฑ์ด ๋ ์ ์์ต๋๋ค. | string | ์ด ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ๋ ค๋ฉด ํ์ํ ์ต์ ๋ฒ์ ์ ๋๋ค. ์ฑ๋์ disable auto update์ด metadata๋ก ์ค์ ๋ ๊ฒฝ์ฐ์๋ง ์ฌ์ฉ๋ฉ๋๋ค. |
| ์์ฒด ํจํค์ง์ ๊ธฐ๋ฐํ์ฌ ์ต์ ์ ๋ฐ์ดํธ ๋ฒ์ ์ ์ค์ ํฉ๋๋ค. | string | ์ ๋ก๋ ์ ๋ฉํ๋ฐ์ดํฐ (node_modules) ๊ฒ์ฌ๋ฅผ ๋ฌด์ํฉ๋๋ค. |
| ์ผ์นํ์ง ์๋ ๋ฒ์ ์ผ ๊ฒฝ์ฐ ์คํจํฉ๋๋ค. | boolean | โfail-on-incompatible |
| โignore-metadata-check | boolean | โauto-min-update-version |
| โmin-update-version | boolean | ์ ๋ก๋ ์คํจ (0์ด ์๋ ์ข ๋ฃ ์ฝ๋) ๋์ ์ฑ๋์ ํ์ฌ ๋ค์ดํฐ๋ธ ํจํค์ง์ ๋ถ์ผ์นํ๋ ๋ฐฐเคเคกเคฒ์ ์ ๋ก๋ํ์ง ์์ต๋๋ค. ์ธํฐ๋ํฐ๋ธ ํฐ๋ฏธ๋์์ ๋ค์ดํฐ๋ธ ๋น๋๋ฅผ ์ ํํ ์ ์์ต๋๋ค; ๊ฑฐ๋ถํ๋ฉด ์คํจํฉ๋๋ค. โignore-metadata-check์ ํจ๊ป ์ฌ์ฉํ ์ ์์ต๋๋ค. |
| โignore-checksum-check | boolean | ์ฒดํฌ์ฌ ๊ฒ์ฌ๋ฅผ ๋ฌด์ํ ๋ ์ ๋ก๋ |
| โforce-crc32-checksum | boolean | ์ ๋ก๋์ ๋ํ CRC32 ์ฒดํฌ์ฌ ๊ฐ์ (์๋ ๊ฐ์ง ์ค๋ฒ๋ผ์ด๋) |
| โtimeout | string | ์ ๋ก๋ ํ๋ก์ธ์ค์ ํ์์์ (์ด) |
| โmultipart | boolean | [deprecated] โtus๋ฅผ ์ฌ์ฉํ์ธ์. S3 ์ ๋ก๋์ multipart ํ๋กํ ์ฝ ์ฌ์ฉ |
| โzip | boolean | ๋ฐฐเคเคกเคฒ์ Capgo ํด๋ผ์ฐ๋์ ์ ๋ก๋ํ๋ ๋ฐ zip์ ์ฌ์ฉํฉ๋๋ค (legacy) |
| โtus | boolean | Capgo ํด๋ผ์ฐ๋์ ์ ๋ก๋ํ ๋ฐฐเคเคกเคฒ์ TUS๋ก ์ ๋ก๋ํ์ธ์. |
| โtus-chunk-size | string | TUS ์ฌ์์ ์ ๋ก๋์ ๋ฐ์ดํธ ๋จ์๋ก์ ๋ธ๋ก ํฌ๊ธฐ (๊ธฐ๋ณธ๊ฐ: ์๋) |
| โpartial | boolean | [deprecated] โdelta๋ฅผ ์ฌ์ฉํ์ธ์. incremental ์ ๋ฐ์ดํธ๋ฅผ ์ ๋ก๋ํ์ธ์. |
| โpartial-only | boolean | [deprecated] โdelta-only๋ฅผ ์ฌ์ฉํ์ธ์. ์ ์ฒด ๋ฐฐเคเคกเคฒ์ ์ ๋ก๋ํ์ง ์๊ณ incremental ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํ์ธ์. |
| โdelta | boolean | delta ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํ์ธ์. (์ ๋ฐ์ดํธ๋ ํ์ผ๋ง ์ ๋ก๋). ๋์ฉ๋ ๋ค์ด๋ก๋ ๋์ ๋น ๋ฅธ ์ ๋ฐ์ดํธ๋ฅผ ์ํด. |
| โdelta-only | boolean | ๋์ฉ๋ ์ฑ์ ์ํ ์ต๋ ์๋ (์ ๋ฐ์ดํธ๋ ํ์ผ๋ง ์ ๋ก๋). |
| โno-delta | boolean | ์ ๋ฐ์ดํธ๋ฅผ ์ค์งํ๊ธฐ ์ํด ์ฆ์ ์ ๋ฐ์ดํธ๊ฐ ํ์ฑํ๋์ด๋ |
| โ์ํธํ๋ ์ฒดํฌ์ฌ | string | ์ํธํ๋ ์ฒดํฌ์ฌ(์๋ช ). ์ธ๋ถ ๋ฐฐํฌ๋ณธ์ ์ ๋ก๋ํ ๋๋ง ์ฌ์ฉ๋ฉ๋๋ค. |
| โ์๋์ผ๋ก ๋ฐฐํฌ๋ณธ ์ค์ | boolean | ๋ฐฐํฌ๋ณธ์ capacitor.config.json์ ์ค์ ํฉ๋๋ค. |
| โdry ์ ๋ก๋ | boolean | Dry upload the bundle process: add the row in database without uploading files or updating channels (Used by Capgo for internal testing) |
| โํจํค์ง json | string | ๋ชจ๋ ธ๋ ํฌ์ ํจํค์ง json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โ๋ ธ๋ ๋ชจ๋ | string | ๋ชจ๋ ธ๋ ํฌ์ ๋ ธ๋ ๋ชจ๋ ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โ๋ถ๋ถ ์ํธํ | boolean | ์ ๋ฐ์ดํธ ํ์ผ ์ํธํ (์ ๋ฐ์ดํฐ ๋ฒ์ 6.14.4 ์ด์๋ถํฐ ์๋ ํ์ฑํ) |
| โ์ ๋ก๋ ์ ์ฐ๊ฒฐ๋ ๋ฒ๋ค ์ญ์ | boolean | ์ ๋ก๋ํ๋ ค๋ ์ฑ๋์์ ํ์ฌ ์ฐ๊ฒฐ๋ ๋ฒ๋ค์ ์ฐพ๊ณ ์ญ์ ํฉ๋๋ค |
| โ๋ธ๋กํ๋ฆฌ ํจํด ์ ์ธ | string | ๋ธ๋กํ๋ฆฌ ์์ถ์์ ์ ์ธํ ํ์ผ ๋ชฉ๋ก (์ผํ๋ก ๊ตฌ๋ถ๋ glob ํจํด, ์: โ.jpg, .pngโ)โ๋ธ๋กํ๋ฆฌ ๋นํ์ฑํ์ ๋ฐ์ดํฐ ๋ฒ์ ์ด ์ง์ํ๋ ๊ฒฝ์ฐ์๋ ๋ธ๋กํ๋ฆฌ ์์ถ์ ์์ ํ ๋นํ์ฑํํฉ๋๋ค |
| โ๋ฒ์ ์ด ์ด๋ฏธ ์กด์ฌํด๋ ์ฑ๊ณต์ ์ผ๋ก ์ข ๋ฃ | boolean | CI/CD ์ํฌํ๋ก์ฐ์์ ๋ชจ๋ ธ๋ ํฌ๋ฅผ ์ํ ๋ฒ์ ์ด ์ด๋ฏธ ์กด์ฌํด๋ ์ฑ๊ณต์ ์ผ๋ก ์ข ๋ฃํฉ๋๋ค |
| โ์์ ์๊ฒ ํ ๋น | boolean | __CAPGO_KEEP_0__ |
| __CAPGO_KEEP_0__ | boolean | ์ด ์ฑ๋์ ์ฅ์น๊ฐ ์๋์ผ๋ก ๊ฐ์ ํ ์ ์๋๋ก ํ์ฉ (์ ๋ฐ์ดํธ ์ฑ๋ ์ค์ ) |
| โqr-preview | boolean | ์ด ๋ฒ๋ค์ ๋ฏธ๋ฆฌ๋ณด๊ธฐ ์ ๋ก๋ ํ ํฐ๋ฏธ๋ QR code ์ถ๋ ฅ |
| โsend-update-notification | boolean | ์ฅ์น์ ์ ๋ฐ์ดํธ๋ ๋งํฌ ์ฑ๋ ๋ฒ๋ค์ ์ ๋ฐ์ดํธํ ํ ๋ค์ดํฐ๋ธ ์ ๋ฐ์ดํธ ์ฒดํฌ ์๋ฆผ์ ๋ณด๋ด๋ |
| โsupa-host | string | ์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ ์ํ ์ปค์คํ Supabase ํธ์คํธ URL |
| โsupa-anon | string | ์์ฒด ํธ์คํ ์ ์ํ ์ปค์คํ Supabase anon ํค |
| โverbose | boolean | ์ธ๋ถ ๋ก๊น ๊ณผ ํจ๊ป ์์ธํ ๋ก๊ทธ ์ถ๋ ฅ์ ํ์ฑํ |
๐งช ํธํ์ฑ
Compatibilitynpx @capgo/cli@latest bundle compatibilityCapgo ํด๋ผ์ฐ๋์์ ์ ๋ฐ์ดํธ๊ฐ ์์ ํ์ง ํ์ธํ๊ธฐ ์ํด ํน์ ์ฑ๋๊ณผ Capgo์ ๋ฐฐํฌ๋ณธ์ด ํธํ๋๋์ง ํ์ธํ์ธ์.
์์:
npx @capgo/cli@latest bundle compatibility com.example.app --channel production์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๋ ํค |
| -c | string | ์ฑ๋์ ํ์ธํ๊ธฐ ์ํด |
| โํ ์คํธ | boolean | ์ด๋ชจํฐ์ฝ ๋์ ํ ์คํธ๋ฅผ ์ถ๋ ฅ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โnode-modules | string | ๋ชจ๋ ธ๋ ํฌ์ node_modules ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โsupa-host | string | ์ฌ์ฉ์ ์ง์ Supabase ํธ์คํธ URL (์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ) |
| โsupa-anon | string | ๊ฐ์ธ ํธ์คํ ์ ์ํ Custom Supabase anon ํค |
๐น ๋ฆด๋ฆฌ์ฆ ํ์
๋ฆด๋ฆฌ์ฆ ํ์ ์น์ npx @capgo/cli@latest bundle releaseType๐งญ ํธ์คํธ ์ฑ๋์ ์ต์ ๋ฉํ๋ฐ์ดํฐ์ ํธํ์ฑ์ ๊ธฐ๋ฐ์ผ๋ก '๋ค์ดํฐ๋ธ' ๋๋ 'OTA'๋ฅผ ์ถ๋ ฅํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle releaseType com.example.app --channel production์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | API ํค๋ฅผ ์ฌ์ฉํ์ฌ ๊ณ์ ์ ์ฐ๊ฒฐ |
| -c | string | ๋น๊ตํ ์ฑ๋ |
| --package-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก(์ผํ๋ก ๊ตฌ๋ถ) |
| --node-modules | string | ๋ชจ๋ ธ๋ ํฌ์ node_modules ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก(์ผํ๋ก ๊ตฌ๋ถ) |
| --supa-host | string | ์ฌ์ฉ์ ์ง์ Supabase ํธ์คํธ URL(์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| --supa-anon | string | ๊ฐ์ธ ํธ์คํ ์ ์ํ Custom Supabase anon ํค |
๐๏ธ ์ญ์
์ญ์ ์ ๋ชฉ โ ๐๏ธ ์ญ์ โ๋ณ์นญ: d
npx @capgo/cli@latest bundle delete๐๏ธ Capgo Cloud์์ ํน์ ๋ฒ๋ค์ ์ญ์ ํฉ๋๋ค. ๋จ, ๋ฒ์ ์ ์ง์ ํ ์ ์์ต๋๋ค.
์์:
npx @capgo/cli@latest bundle delete BUNDLE_ID com.example.app์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | API ํค๋ฅผ ์ฌ์ฉํ์ฌ ๊ณ์ ์ ์ฐ๊ฒฐ |
| โsupa-host | string | ์ฌ์ฉ์ ์ง์ Supabase ํธ์คํธ URL (์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ฌ์ฉ์ ์ง์ Supabase anon ํค (์์ฒด ํธ์คํ ์ฉ) |
๐ ๋ชฉ๋ก
๋ชฉ๋ก ์ ๋ชฉ โ ๐ โ๋ณ๋ช
: l
npx @capgo/cli@latest bundle listCapgo ์ฑ์ ์ ๋ก๋ ๋ ๋ชจ๋ ๋ฒ๋ค์ ๋ชฉ๋กํํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle list com.example.app์ต์ :
| Param | Type | ์ค๋ช |
|---|---|---|
| -a | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๊ธฐ ์ํ ํค |
| --supa-host | string | Custom Supabase host URL (for self-hosting or Capgo development) |
| โsupa-anon | string | ์ฌ์ฉ์ ์ง์ Supabase ์ต๋ช ํค (์์ฒด ํธ์คํ ) |
๐งน ์ ๋ฆฌ
์ ๋ฆฌ๋ณ๋ช
: c
npx @capgo/cli@latest bundle cleanup๐งน Capgo Cloud์์ ์ง์ ๋ ์ต๊ทผ ๋ฒ์ ์ ์๋ฅผ ์ ์งํ๋ฉด์ ์ญ์ ํฉ๋๋ค. ์ฑ๋๊ณผ ์ฐ๊ฒฐ๋ ๋ฒ๋ค์ ๋ณด์กดํ๋ ๊ฒฝ์ฐ โignore-channel ์ต์ ์ ์ฌ์ฉํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle cleanup com.example.app --bundle=1.0 --keep=3์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -b | string | ์ฑ ์ญ์ ํ ๋ฒ์ ๋ฒํธ |
| -a | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๋ ํค |
| -k | string | ๋ณด์กดํ ๋ฒ์ ์ |
| -f | boolean | ๊ฐ์ ์ญ์ |
| โ์ฑ๋ ๋ฌด์ | boolean | ์ฑ๋๊ณผ ์ฐ๊ฒฐ๋ ๋ฐฐ๋๋ ์ญ์ (๊ฒฝ๊ณ : ์ฑ๋๋ ์ญ์ ) |
| โ์ํ๋ฒ ์ค ํธ์คํธ | string | Custom Supabase host URL (for self-hosting or Capgo development) |
| โ์ํ๋ฒ ์ค ์ต๋ช | string | ์ฌ์ฉ์ ์ง์ ์ํ๋ฒ ์ค ์ต๋ช ํค (์์ฒด ํธ์คํ ์ฉ) |
๐ ์ํธํ
์ํธํnpx @capgo/cli@latest bundle encrypt๐ ๋ฐฐ๋๋ฅผ ์์ ํ ์ธ๋ถ ์ ์ฅ์์ ๋ณด๊ดํ๊ธฐ ์ํด ์ํธํํฉ๋๋ค. ์ ๋ก๋/ํด๋ ์ ์ํด ivSessionKey๋ฅผ ๋ฐํํฉ๋๋ค. ์ฒดํฌ์ฌ์ ์ป์ผ๋ ค๋ฉด '๋ฐฐ๋ zip โjson'์ ์ฌ์ฉํ์ธ์.
์์:
npx @capgo/cli@latest bundle encrypt ./myapp.zip CHECKSUM์ต์ :
| Param | Type | ์ค๋ช |
|---|---|---|
| โkey | string | ๊ฐ์ธ ์๋ช ํค์ ์ฌ์ฉ์ ์ง์ ๊ฒฝ๋ก |
| โkey-data | string | ๊ฐ์ธ ์๋ช ํค |
| -j | boolean | JSON ํ์์ผ๋ก ์ถ๋ ฅ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
๐ ํด๋
ํด๋npx @capgo/cli@latest bundle decrypt์ํธํ๋ ๋ฒ๋ค์ ํด๋ (์ฃผ๋ก ํ ์คํธ ์ฉ๋). ๊ธฐ๋ณธ 64์ง๋ฒ ์ธ์ ํค๋ฅผ ์ถ๋ ฅํ์ฌ ๊ฒ์ฆ ๊ฐ๋ฅ.
์์:
npx @capgo/cli@latest bundle decrypt ./myapp_encrypted.zip CHECKSUM์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| โํค | string | ์ฌ์ฉ์ ์ง์ ํค ๊ฒฝ๋ก (์ฌ์ฉ์ ์ง์ ํค) |
| โํค ๋ฐ์ดํฐ | string | ์ฌ์ฉ์ ์ง์ ํค |
| โ์ฒดํฌ์ฌ | string | ๋ฐฐํฌ๋ฌผ์ ๋ฌด๊ฒฐ์ฑ์ ํ์ธํ๊ธฐ ์ํ ์ฒดํฌ์ฌ |
| โํจํค์ง json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
๐น ์์ถ ํ์ผ
๐น ์์ถ ํ์ผnpx @capgo/cli@latest bundle zip๐๏ธ ์ฑ ๋ฒ๋ค์ ๋ํ zip ํ์ผ์ ์์ฑํฉ๋๋ค. ์ํธํ์ ์ฌ์ฉํ ์ฒดํฌ์ฌ์ ๋ฐํํฉ๋๋ค. โjson ์ต์ ์ ์ฌ์ฉํ์ฌ ๊ธฐ๊ณ๊ฐ ์ฝ์ ์ ์๋ ์ถ๋ ฅ์ ์ป์ต๋๋ค.
์์:
npx @capgo/cli@latest bundle zip com.example.app --path ./dist์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -p | string | capacitor.config์์ webDir์ ์ค์ ํ์ง ์์ ๊ฒฝ์ฐ ์ ๋ก๋ํ ํด๋์ ๊ฒฝ๋ก |
| -b | string | ์์ถ ํ์ผ ์ด๋ฆ์ zip ํ์ผ ์ด๋ฆ์ผ๋ก ์ง์ ํ๋ ๋ฒ์ ๋ฒํธ |
| -n | string | zip ํ์ผ ์ด๋ฆ |
| -j | boolean | JSON ํ์์ผ๋ก ์ถ๋ ฅ |
| โno-code-check | boolean | ์์ค code์ root ํด๋ ๋ด index๊ฐ ์กด์ฌํ๋์ง ํ์ธํ์ง ์์ |
| โkey-v2 | boolean | ์ํธํ v2 ์ฌ์ฉ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |