๐ฆ bundle
์ด ํ๋ฌ๊ทธ์ธ์ ์ค์น ๋จ๊ณ์ ์ ์ฒด markdown ๊ฐ์ด๋๊ฐ ํฌํจ๋ ์ค์ ํ๋กฌํํธ๋ฅผ ๋ณต์ฌํ์ธ์.
๐ฆ ์ ๋ก๋, ํธํ์ฑ ๊ฒ์ฌ, ์ํธํ๋ฅผ ํฌํจํ์ฌ Capgo Cloud ๋ฐฐํฌ๋ฅผ ์ํ ์ฑ ๋ฒ๋ค์ ๊ด๋ฆฌํฉ๋๋ค.
โฌ๏ธ ์ ๋ก๋
โ โฌ๏ธ Uploadโ ์น์ Alias: u
npx @capgo/cli@latest bundle upload๋ฐฐํฌ๋ฅผ ์ํด ์๋ก์ด ์ฑ ๋ฒ๋ค์ Capgo Cloud์ ์ ๋ก๋ํฉ๋๋ค. ๋ฒ์ ์ 0.0.0๋ณด๋ค ์ปค์ผ ํ๋ฉฐ ์ค๋ณต๋ ์ ์์ต๋๋ค. ๋ณด์์ ์ํด ์ญ์ ๋ ๋ฒ์ ์ ์ฌ์ฌ์ฉํ ์ ์์ต๋๋ค. External ์ต์ : URL ๋งํฌ๋ง ์ ์ฅํฉ๋๋ค (200MB ์ด์์ ์ฑ์ด๋ ๊ฐ์ธ์ ๋ณด ๋ณดํธ ์๊ตฌ์ฌํญ์ด ์๋ ๊ฒฝ์ฐ ์ ์ฉ). Capgo์ ์ธ๋ถ ์ฝํ ์ธ ๋ฅผ ์ ๋ ๊ฒ์ฌํ์ง ์์ต๋๋ค. ์ ๋ขฐํ ์ ์๋ ๋ณด์์ ์ํด ์ํธํ๋ฅผ ์ถ๊ฐํ์ธ์.
Example:
npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel production,beta๋ฒ์ ์ ์ ๋ฌํ์ง ์์ผ๋ฉด ์ฑ๋(๋๋ ์ต์ ์๊ฒฉ ์ฑ ๋ฒ์ )์์ ๋ค์ ์ฌ์ฉ ๊ฐ๋ฅํ semver๋ฅผ ์๋์ผ๋ก ์ฌ๋ฆฝ๋๋ค. --bundle. CI ํ๊ฒฝ์์ ๋ค์ ์ํฉ์ ์ ์ฉํฉ๋๋ค: package.json ์ด๋ฏธ 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 aiGCP๋ --auto-bump ai, Capgo Cloudflare Workers AI๊ฐ ๋ก์ปฌ ๋ฒ๋ค ํ์ผ๊ณผ ์ด์ Capgo/channel ๋ธํ ๋งค๋ํ์คํธ๋ฅผ ๋น๊ตํ์ฌ ๋ถ์ํ๊ณ , major | minor | patch | metadata CLI ๋ก๊ทธ์ ์งง์ ์ด์ ๋ฅผ ์ถ๋ ฅํฉ๋๋ค. ์ด์ Capgo ๋ฒ์ ์ด ์๋ ๊ฒฝ์ฐ AI ๋ถ์์ ๊ฑด๋๋ฐ๋ฉฐ, ๋ฒ์ ์ ๊ธฐ๋ณธ์ ์ผ๋ก patch.
์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | ๊ณ์ ๊ณผ ์ฐ๊ฒฐํ๊ธฐ ์ํ API ํค |
| -p | string | ์ ๋ก๋ํ ํด๋ ๊ฒฝ๋ก์ ๋๋ค. ์ง์ ํ์ง ์์ผ๋ฉด capacitor.config์ ์ค์ ๋ webDir์ ์ฌ์ฉํฉ๋๋ค. |
| -c | string | ์ฐ๊ฒฐํ ์ฑ๋์ ๋๋ค. ์ฌ๋ฌ ์ฑ๋์ ์ง์ ํ๋ ค๋ฉด production,beta์ ๊ฐ์ด ์ผํ๋ก ๊ตฌ๋ถํ์ธ์. |
| โrollout | string | ์ ๋ก๋๋ ๋ฒ๋ค์ ํด๋น ์ฑ๋์ ๋กค์์ ๋์์ผ๋ก ์ค์ ํ๋ฉฐ, ๋น์จ์ 0์์ 100 ์ฌ์ด๋ก ์ง์ ํฉ๋๋ค. |
| โstable | boolean | ๋กค์์์ด ์ค์ ๋ ์ฑ๋์์ ๋กค์์ ๋์์ ์ค์ ํ๋ ๋์ stable ํด๋ฐฑ์ ๊ต์ฒดํฉ๋๋ค. |
| โrollout-percentage-bps | string | ์ ๋ก๋๋ ๋ฒ๋ค์ ๋กค์์ ๋น์จ์ 0์์ 10000 ์ฌ์ด์ basis points ๋จ์๋ก ์ค์ ํฉ๋๋ค. |
| โrollout-cache-ttl-seconds | string | Cloudflare ๋กค์์ ๊ฒฐ์ ์บ์ TTL(์ด ๋จ์) |
| -e | string | Capgo Cloud์ ์ ๋ก๋ํ๋ ๋์ ์ธ๋ถ URL๋ก ์ฐ๊ฒฐ |
| โiv-session-key | string | ์ธ๋ถ ๋ฒ๋ค URL์ฉ IV ๋ฐ ์ธ์ ํค ์ค์ |
| โs3-region | string | S3 ๋ฒํท์ ๋ฆฌ์ |
| โs3-apikey | string | S3 ์๋ํฌ์ธํธ์ฉ API ํค |
| โs3-apisecret | string | S3 ์๋ํฌ์ธํธ์ฉ API secret |
| โs3-endpoint | string | S3 ์๋ํฌ์ธํธ URL |
| โs3-bucket-name | string | AWS S3 ๋ฒํท ์ด๋ฆ |
| โs3-port | string | S3 ์๋ํฌ์ธํธ ํฌํธ |
| โno-s3-ssl | boolean | S3 upload ์ SSL ๋นํ์ฑํ |
| โkey-v2 | string | ๊ฐ์ธ ์๋ช ํค ์ปค์คํ ๊ฒฝ๋ก (v2 ์์คํ ) |
| โkey-data-v2 | string | ๊ฐ์ธ ์๋ช ํค (v2 ์์คํ ) |
| โbundle-url | boolean | bundle URL์ stdout์ ์ถ๋ ฅ |
| โno-key | boolean | ์๋ช ํค๋ฅผ ๋ฌด์ํ๊ณ ํ๋ฌธ ์ ๋ฐ์ดํธ ์ ์ก |
| โno-code-check | boolean | ์์ค code ๋ด notifyAppReady() ํธ์ถ ์ฌ๋ถ ๋ฐ ๋ฃจํธ ํด๋์ index ์กด์ฌ ์ฌ๋ถ ํ์ธ ๋ฌด์ |
| โdisplay-iv-session | boolean | ์ ๋ฐ์ดํธ ์ํธํ์ ์ฌ์ฉ๋ IV ๋ฐ ์ธ์ ํค๋ฅผ ์ฝ์์ ํ์ |
| -b | string | ์ ๋ก๋ํ ๋ฒ๋ค์ ๋ฒ์ ๋ฒํธ |
| โauto-bump | string | ์ฑ๋์ ์ฐ๊ฒฐ๋ ๋ฒ๋ค ๋๋ ์ต์ ์๊ฒฉ ์ฑ ๋ฒ์ ์์ ์๋ ์ฆ๊ฐ. ๋ ๋ฒจ: major, minor(๊ธฐ๋ณธ๊ฐ), patch(fix ๋ณ์นญ), metadata, ๋๋ ai(Workers AI๊ฐ ๋ก์ปฌ๊ณผ ์ด์ ๋ธํ manifest๋ฅผ ๋น๊ตํ์ฌ ๋ ๋ฒจ ์ถ๋ก , ์ด์ Capgo ๋ฒ์ ์ด ์์ผ๋ฉด patch๋ก ๋์ฒด). ์ฌ์ฉ ๊ฐ๋ฅํ ์ด๋ฆ์ด ๋์ฌ ๋๊น์ง bump ์ํ(์ญ์ ๋ ์ด๋ฆ์ ์ ์ ์ํ ์ ์ง). โbundle (-b)์ ํจ๊ป ์ฌ์ฉํ ์ ์์ |
| โlink | string | ์ธ๋ถ ๋ฆฌ์์ค ์ฐ๊ฒฐ (์: GitHub release) |
| โcomment | string | ์ด ๋ฒ์ ์ ๋ํ ์ค๋ช ์ ๋๋ค. ๋ฆด๋ฆฌ์ค ๋ ธํธ, ์ปค๋ฐ ํด์, ์ปค๋ฐ ๋ฉ์์ง ๋ฑ์ ์ ๋ ฅํ ์ ์์ต๋๋ค. |
| โmin-update-version | string | ์ด ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ๊ธฐ ์ํด ํ์ํ ์ต์ ๋ฒ์ ์ ๋๋ค. ์ฑ๋์ ์๋ ์ ๋ฐ์ดํธ ์ค์ ์ด metadata๋ก ๋์ด ์๋ ๊ฒฝ์ฐ์๋ง ์ฌ์ฉ๋ฉ๋๋ค. |
| โauto-min-update-version | boolean | ๋ค์ดํฐ๋ธ ํจํค์ง๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ต์ ์ ๋ฐ์ดํธ ๋ฒ์ ์ ์ค์ ํฉ๋๋ค. |
| โignore-metadata-check | boolean | ์ ๋ก๋ ์ ๋ฉํ๋ฐ์ดํฐ(node_modules) ์ฒดํฌ๋ฅผ ๋ฌด์ํฉ๋๋ค. |
| โfail-on-incompatible | boolean | ๋ฒ๋ค์ด ์ฑ๋์ ํ์ฌ ๋ค์ดํฐ๋ธ ํจํค์ง์ ํธํ๋์ง ์์ ๊ฒฝ์ฐ, ์ ๋ก๋๋ฅผ ์งํํ์ง ์๊ณ ์คํจ(exit non-zero) ์ฒ๋ฆฌํฉ๋๋ค. ๋ํํ ํฐ๋ฏธ๋์์๋ ๋ค์ดํฐ๋ธ ๋น๋๋ฅผ ์ ํํ ์ ์์ผ๋ฉฐ, ๊ฑฐ์ ์ ์คํจํฉ๋๋ค. โignore-metadata-check์ ํจ๊ป ์ฌ์ฉํ ์ ์์ต๋๋ค. |
| โignore-checksum-check | boolean | ์ ๋ก๋ ์ ์ฒดํฌ์ฌ ์ฒดํฌ๋ฅผ ๋ฌด์ํฉ๋๋ค. |
| โforce-crc32-checksum | boolean | ์ ๋ก๋ ์ CRC32 ์ฒดํฌ์ฌ ๊ฐ์ ์ ์ฉ (์๋ ๊ฐ์ง ๋ฌด์) |
| โtimeout | string | ์ ๋ก๋ ํ๋ก์ธ์ค ํ์์์(์ด) |
| โmultipart | boolean | [DEPRECATED] ๋์ โtus๋ฅผ ์ฌ์ฉํ์ธ์. S3 ์ ๋ก๋์ multipart ํ๋กํ ์ฝ์ ์ฌ์ฉํฉ๋๋ค |
| โzip | boolean | zip์ผ๋ก Capgo ํด๋ผ์ฐ๋์ ๋ฒ๋ค ์ ๋ก๋ (๋ ๊ฑฐ์) |
| โtus | boolean | TUS๋ก Capgo ํด๋ผ์ฐ๋์ ๋ฒ๋ค ์ ๋ก๋ |
| โtus-chunk-size | string | TUS ์ฌ๊ฐ ์ ๋ก๋์ ์ฒญํฌ ํฌ๊ธฐ(๋ฐ์ดํธ, ๊ธฐ๋ณธ๊ฐ: auto) |
| โpartial | boolean | [DEPRECATED] ๋์ โdelta๋ฅผ ์ฌ์ฉํ์ธ์. ์ฆ๋ถ ์ ๋ฐ์ดํธ๋ฅผ ์ ๋ก๋ํฉ๋๋ค. |
| โpartial-only | boolean | [DEPRECATED] ๋์ โdelta-only๋ฅผ ์ฌ์ฉํ์ธ์. ์ ์ฒด ๋ฒ๋ค์ ๊ฑด๋๋ฐ๊ณ ์ฆ๋ถ ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํฉ๋๋ค. |
| โdelta | boolean | ๋์ฉ๋ zip ๋ค์ด๋ก๋ ๋์ , ๋ณ๊ฒฝ๋ ํ์ผ๋ง ์ ๋ก๋ํ๋ delta ์ ๋ฐ์ดํธ๋ฅผ ํตํด ์ฆ๊ฐ์ ์ด๊ณ ๋งค์ฐ ๋น ๋ฅธ ์ ๋ฐ์ดํธ๋ฅผ ์ ๊ณตํฉ๋๋ค. |
| โdelta-only | boolean | ์ต๋ ์๋๋ฅผ ์ํด ์ ์ฒด ๋ฒ๋ค ์์ด delta ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํฉ๋๋ค (๋๊ท๋ชจ ์ฑ์ ์ ์ฉ). |
| โno-delta | boolean | ์ฆ๊ฐ์ ์ธ ์ ๋ฐ์ดํธ๊ฐ ํ์ฑํ๋์ด ์์ด๋ delta ์ ๋ฐ์ดํธ๋ฅผ ๋นํ์ฑํํฉ๋๋ค. |
| โencrypted-checksum | string | ์ํธํ๋ ์ฒดํฌ์ฌ(์๋ช )์ ๋๋ค. ์ธ๋ถ ๋ฒ๋ค์ ์ ๋ก๋ํ ๋๋ง ์ฌ์ฉ๋ฉ๋๋ค. |
| โauto-set-bundle | boolean | capacitor.config.json์ ๋ฒ๋ค ์ค์ |
| โdry-upload | boolean | ๋ฒ๋ค ์ ๋ก๋ ํ๋ก์ธ์ค ์๋ฎฌ๋ ์ด์ : ํ์ผ ์ ๋ก๋๋ ์ฑ๋ ์ ๋ฐ์ดํธ ์์ด ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ ์ฝ๋๋ง ์ถ๊ฐํฉ๋๋ค (Capgo ๋ด๋ถ ํ ์คํธ์ฉ) |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ฉ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โnode-modules | string | ๋ชจ๋ ธ๋ ํฌ์ฉ node_modules ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โencrypt-partial | boolean | ๋ธํ ์ ๋ฐ์ดํธ ํ์ผ ์ํธํ (์ ๋ฐ์ดํฐ 6.14.4 ์ด์ ๋ฒ์ ์์ ์๋ ํ์ฑํ) |
| โdelete-linked-bundle-on-upload | boolean | ์ ๋ก๋ํ๋ ค๋ ์ฑ๋์ ํ์ฌ ์ฐ๊ฒฐ๋ ๋ฒ๋ค์ ์ฐพ์ ์ญ์ ํฉ๋๋ค |
| โno-brotli-patterns | string | Brotli ์์ถ์์ ์ ์ธํ ํ์ผ (์ผํ๋ก ๊ตฌ๋ถ๋ glob ํจํด, ์: โ.jpg,.pngโ) |
| โdisable-brotli | boolean | ์ ๋ฐ์ดํฐ ๋ฒ์ ์ด ์ง์ํ๋๋ผ๋ Brotli ์์ถ์ ์์ ํ ๋นํ์ฑํํฉ๋๋ค |
| โversion-exists-ok | boolean | ๋ฒ๋ค ๋ฒ์ ์ด ์ด๋ฏธ ์กด์ฌํ๋ฉด ์ฑ๊ณต์ ์ผ๋ก ์ข ๋ฃํฉ๋๋ค. ๋ชจ๋ ธ๋ ํฌ CI/CD ์ํฌํ๋ก์ฐ์ ์ ์ฉํฉ๋๋ค |
| โself-assign | boolean | ๋๋ฐ์ด์ค๊ฐ ์ด ์ฑ๋์ ์๋์ผ๋ก ์ฐธ์ฌํ๋๋ก ํ์ฉํฉ๋๋ค (์ ๋ฐ์ดํธ ์ฑ๋ ์ค์ ) |
| โqr-preview | boolean | ์ ๋ก๋ ํ ์ด ๋ฒ๋ค ๋ฏธ๋ฆฌ๋ณด๊ธฐ๋ฅผ ์ํ ํฐ๋ฏธ๋ QR code๋ฅผ ์ถ๋ ฅํฉ๋๋ค |
| โsend-update-notification | boolean | ์ฐ๊ฒฐ๋ ์ฑ๋์ ๋ฒ๋ค์ ์ ๋ฐ์ดํธํ ํ ๊ธฐ๊ธฐ์ ๋ค์ดํฐ๋ธ ์ ๋ฐ์ดํธ ํ์ธ ์๋ฆผ์ ๋ณด๋ ๋๋ค. |
| โsupa-host | string | ์ฌ์ฉ์ ์ ์ Supabase ํธ์คํธ URL (Capgo ๊ฐ๋ฐ ๋๋ ์ ํ ํธ์คํ ์ฉ) |
| โsupa-anon | string | ์ฌ์ฉ์ ์ ์ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
| โverbose | boolean | ์์ธ ๋ก๊ทธ๋ฅผ ํฌํจํ ์์ธ ์ถ๋ ฅ์ ํ์ฑํํฉ๋๋ค. |
๐งช ํธํ์ฑ
โ ๐งช ํธํ์ฑโ ์น์ npx @capgo/cli@latest bundle compatibility๐งช ์ ๋ฐ์ดํธ๊ฐ ์์ ํ์ง ํ์ธํ๊ธฐ ์ํด Capgo Cloud์์ ํน์ ์ฑ๋๊ณผ ๋ฒ๋ค์ ํธํ์ฑ์ ์ฒดํฌํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle compatibility com.example.app --channel production์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | ๊ณ์ ๊ณผ ์ฐ๊ฒฐํ API ํค |
| -c | string | ํธํ์ฑ์ ํ์ธํ Channel |
| โtext | boolean | ์ด๋ชจ์ง ๋์ ํ ์คํธ ์ถ๋ ฅ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โnode-modules | string | ๋ชจ๋ ธ๋ ํฌ์ node_modules ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
๐น ReleaseType
โ ๐น ReleaseTypeโ ์น์ npx @capgo/cli@latest bundle releaseType๐งญ ์ฑ๋์ ์ต์ ๋ฉํ๋ฐ์ดํฐ ํธํ์ฑ์ ๋ฐ๋ผ โnativeโ ๋๋ โ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 | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
๐๏ธ ์ญ์
โ ๐๏ธ Deleteโ ์น์ Alias: 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 key (์ ํ ํธ์คํ ์ฉ) |
๐ ๋ชฉ๋ก
โ ๐ Listโ ์น์ Alias: l
npx @capgo/cli@latest bundle list๐ Capgo Cloud์ ์ ๋ก๋๋ ์ฑ์ ๋ชจ๋ bundle ๋ชฉ๋ก์ ํ์ํฉ๋๋ค.
Example:
npx @capgo/cli@latest bundle list com.example.app์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | ๊ณ์ ์ฐ๊ฒฐ์ ์ํ API key |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
๐งน ์ ๋ฆฌ
โ ๐งน Cleanupโ ์น์ Alias: c
npx @capgo/cli@latest bundle cleanup๐งน ์ง์ ๋ ๊ฐ์์ ์ต์ ๋ฒ์ ๋ง ๋จ๊ธฐ๊ณ Capgo Cloud์์ ์ค๋๋ bundle์ ์ญ์ ํฉ๋๋ค. โignore-channel ์ต์ ์ ์ฌ์ฉํ์ง ์๋ ํ, channel์ ์ฐ๊ฒฐ๋ bundle์ ๋ณด์กด๋ฉ๋๋ค.
Example:
npx @capgo/cli@latest bundle cleanup com.example.app --bundle=1.0 --keep=3์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -b | string | ์ญ์ ํ ์ฑ์ Bundle ๋ฒ์ ๋ฒํธ |
| -a | string | ๊ณ์ ์ฐ๊ฒฐ์ ์ํ API ํค |
| -k | string | ์ ์งํ ๋ฒ์ ์ |
| -f | boolean | ๊ฐ์ ์ญ์ |
| โignore-channel | boolean | ์ฑ๋์ ์ฐ๊ฒฐ๋ Bundle๋ ์ญ์ (์ฃผ์: ์ฑ๋๋ ํจ๊ป ์ญ์ ๋จ) |
| โsupa-host | string | ์ฌ์ฉ์ ์ ์ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ฌ์ฉ์ ์ ์ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
๐ ์ํธํ
โ ๐ Encryptโ ์น์ npx @capgo/cli@latest bundle encrypt๐ ์ธ๋ถ ์ ์ฅ์์ ์์ ํ๊ฒ ๋ณด๊ดํ zip bundle์ ์ํธํํฉ๋๋ค. upload/๋ณตํธํ์ ํ์ํ ivSessionKey๋ฅผ ๋ฐํํฉ๋๋ค. checksum์ โbundle zip โjsonโ์ผ๋ก ํ์ธํ์ธ์.
์์:
npx @capgo/cli@latest bundle encrypt ./myapp.zip CHECKSUM์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| โkey | string | ๊ฐ์ธ ์๋ช ํค์ ์ฌ์ฉ์ ์ง์ ๊ฒฝ๋ก |
| โkey-data | string | ๊ฐ์ธ ์๋ช ํค |
| -j | boolean | JSON ํ์์ผ๋ก ์ถ๋ ฅ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ฉ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
๐ ๋ณตํธํ
โ ๐ Decryptโ ์น์ npx @capgo/cli@latest bundle decrypt๐ ์ํธํ๋ ๋ฒ๋ค์ ๋ณตํธํํฉ๋๋ค (์ฃผ๋ก ํ ์คํธ์ฉ). ๊ฒ์ฆ์ ์ํด base64 ์ธ์ ํค๋ฅผ ์ถ๋ ฅํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle decrypt ./myapp_encrypted.zip CHECKSUM์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| โkey | string | ๊ฐ์ธ ์๋ช ํค์ ์ฌ์ฉ์ ์ง์ ๊ฒฝ๋ก |
| โkey-data | string | ๊ฐ์ธ ์๋ช ํค |
| โchecksum | string | ๋ฒ๋ค์ ๋ฌด๊ฒฐ์ฑ ๊ฒ์ฆ์ ์ํ ๋ฒ๋ค ์ฒดํฌ์ฌ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ฉ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
๐น Zip
โ ๐น Zipโ ์น์ 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 ๋ด notifyAppReady() ํธ์ถ ์ฌ๋ถ ๋ฐ ๋ฃจํธ ํด๋์ index ์กด์ฌ ์ฌ๋ถ ํ์ธ์ ๊ฑด๋๋๋๋ค |
| โkey-v2 | boolean | v2 ์ํธํ ์ฌ์ฉ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ฉ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |