๐ฆ bundle
์ด ํ๋ฌ๊ทธ์ธ์ ์ค์น ๋จ๊ณ์ ์ ์ฒด ๋งํฌ๋ค์ด ๊ฐ์ด๋๊ฐ ํฌํจ๋ ์ค์ ํ๋กฌํํธ๋ฅผ ๋ณต์ฌํ์ธ์.
๐ฆ Capgo Cloud์์ ๋ฐฐํฌํ ์ฑ bundle์ ๊ด๋ฆฌํฉ๋๋ค. ์ ๋ก๋, ํธํ์ฑ ๊ฒ์ฌ, ์ํธํ๋ฅผ ํฌํจํฉ๋๋ค.
โฌ๏ธ ์ ๋ก๋
โ โฌ๏ธ Uploadโ ์น์ ๋ณ์นญ: u
npx @capgo/cli@latest bundle upload๋ฐฐํฌ๋ฅผ ์ํด Capgo Cloud์ ์ ์ฑ ๋ฒ๋ค์ ์ ๋ก๋ํฉ๋๋ค. ๋ฒ์ ์ 0.0.0๋ณด๋ค ์ปค์ผ ํ๋ฉฐ ๊ณ ์ ํด์ผ ํฉ๋๋ค. ๋ณด์์ ์ํด ์ญ์ ๋ ๋ฒ์ ์ ์ฌ์ฌ์ฉํ ์ ์์ต๋๋ค. External ์ต์ : URL ๋งํฌ๋ง ์ ์ฅํฉ๋๋ค(200MB ์ด๊ณผ ์ฑ์ด๋ ๊ฐ์ธ์ ๋ณด ๋ณดํธ ์๊ตฌ์ฌํญ์ด ์์ ๋ ์ ์ฉ). Capgo์ ์ธ๋ถ ์ฝํ ์ธ ๋ฅผ ์ ํ ๊ฒ์ฌํ์ง ์์ต๋๋ค. trustless ๋ณด์์ ์ํด ์ํธํ๋ฅผ ์ถ๊ฐํ์ธ์.
์์:
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 ai์ฌ์ฉํ๋ฉด --auto-bump ai, Capgo Cloudflare Workers AI๊ฐ ๋ก์ปฌ bundle ํ์ผ๊ณผ ์ด์ Capgo/์ฑ๋ delta manifest๋ฅผ ๋น๊ตํ์ฌ ์ถ๋ก ํฉ๋๋ค major | minor | patch | metadata, ๊ทธ๋ฆฌ๊ณ CLI ๋ก๊ทธ์ ์งง์ ์ด์ ๋ฅผ ์ถ๋ ฅํฉ๋๋ค. ์ด์ Capgo ๋ฒ์ ์ด ์์ผ๋ฉด AI๊ฐ ๊ฑด๋๋ฐ๊ณ bump๊ฐ ๊ธฐ๋ณธ๊ฐ์ผ๋ก ์ค์ ๋ฉ๋๋ค patch๋.
์ต์ :
| ํ๋ผ๋ฏธํฐ | ์ ํ | ์ค๋ช |
|---|---|---|
| -a | string | ๊ณ์ ์ ์ฐ๊ฒฐํ API ํค |
| -p | string | ์ ๋ก๋ํ ํด๋ ๊ฒฝ๋ก์ ๋๋ค. ์ง์ ํ์ง ์์ผ๋ฉด capacitor.config์ ์ค์ ๋ webDir์ ์ฌ์ฉํฉ๋๋ค. |
| -c | string | ์ฐ๊ฒฐํ Channel. ์ฌ๋ฌ Channel์ ์ผํ๋ก ๊ตฌ๋ถํ์ฌ ์ง์ ํฉ๋๋ค. ์: production,beta |
| โrollout | string | ์ ๋ก๋๋ bundle์ 0~100 ์ฌ์ด์ ๋ฐฑ๋ถ์จ๋ก ์ด Channel์ rollout ๋์์ผ๋ก ์ค์ ํฉ๋๋ค |
| โstable | boolean | rollout์ด ๊ตฌ์ฑ๋ Channel์์ rollout ๋์ ๋์ stable fallback์ ๋์ฒดํฉ๋๋ค |
| โrollout-percentage-bps | string | ์ ๋ก๋๋ bundle์ rollout ๋ฐฑ๋ถ์จ์ 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 ์ ๋ก๋ ์ 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 | ์ ๋ก๋ํ bundle์ ๋ฒ์ ๋ฒํธ |
| โauto-bump | string | ์ฑ๋์ ์ฐ๊ฒฐ๋ bundle์ ๊ธฐ์ค์ผ๋ก ์๋ ์ฆ๋ถํ๋ฉฐ, ์์ผ๋ฉด ์ต์ ์๊ฒฉ ์ฑ ๋ฒ์ ์ ๊ธฐ์ค์ผ๋ก ํฉ๋๋ค. ๋ ๋ฒจ: major, minor(๊ธฐ๋ณธ๊ฐ), patch(๋ณ์นญ: fix), metadata ๋๋ ai(Workers AI๊ฐ ๋ก์ปฌ๊ณผ ์ด์ delta manifest๋ฅผ ๋น๊ตํด ๋ ๋ฒจ์ ์ถ๋ก ํ๋ฉฐ, ์ด์ Capgo ๋ฒ์ ์ด ์์ผ๋ฉด patch๋ก ํด๋ฐฑํฉ๋๋ค). ์ฌ์ฉ ๊ฐ๋ฅํ ์ด๋ฆ์ด ๋์ฌ ๋๊น์ง ์ฆ๋ถํฉ๋๋ค(์ญ์ ๋ ์ด๋ฆ์ ๊ณ์ ์ ์ ๋ฉ๋๋ค). โbundle(-b)๊ณผ ํจ๊ป ์ฌ์ฉํ ์ ์์ต๋๋ค |
| โlink | string | ์ธ๋ถ ๋ฆฌ์์ค ๋งํฌ (์: GitHub ๋ฆด๋ฆฌ์ค) |
| โcomment | string | ์ด ๋ฒ์ ์ ๋ํ ์ฝ๋ฉํธ. ๋ฆด๋ฆฌ์ค ๋ ธํธ, ์ปค๋ฐ ํด์, ์ปค๋ฐ ๋ฉ์์ง ๋ฑ์ด ๋ ์ ์์ต๋๋ค. |
| โmin-update-version | string | ์ด ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ๋ ๋ฐ ํ์ํ ์ต์ ๋ฒ์ . ์ฑ๋์ disable auto update๊ฐ metadata๋ก ์ค์ ๋ ๊ฒฝ์ฐ์๋ง ์ฌ์ฉ๋ฉ๋๋ค. |
| โauto-min-update-version | boolean | ๋ค์ดํฐ๋ธ ํจํค์ง๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ต์ ์ ๋ฐ์ดํธ ๋ฒ์ ์ ์ค์ ํฉ๋๋ค. |
| โignore-metadata-check | boolean | ์ ๋ก๋ ์ ๋ฉํ๋ฐ์ดํฐ(node_modules) ๊ฒ์ฌ๋ฅผ ๋ฌด์ํฉ๋๋ค. |
| โfail-on-incompatible | boolean | ๋ฒ๋ค์ด ์ฑ๋์ ํ์ฌ ๋ค์ดํฐ๋ธ ํจํค์ง์ ํธํ๋์ง ์์ ๊ฒฝ์ฐ ์ ๋ก๋ ๋์ ์ ๋ก๋๋ฅผ ์คํจ์ํต๋๋ค(๋น์ ์ข ๋ฃ). ์ธํฐ๋ํฐ๋ธ ํฐ๋ฏธ๋์์๋ ๋ค์ดํฐ๋ธ ๋น๋๋ฅผ ์ ํํ ์ ์์ผ๋ฉฐ, ๊ฑฐ์ ํ๋ฉด ์คํจํฉ๋๋ค. โignore-metadata-check์ ํจ๊ป ์ฌ์ฉํ ์ ์์ต๋๋ค. |
| โignore-checksum-check | boolean | ์ ๋ก๋ ์ ์ฒดํฌ์ฌ ๊ฒ์ฌ๋ฅผ ๋ฌด์ํฉ๋๋ค |
| โforce-crc32-checksum | boolean | ์ ๋ก๋์ CRC32 ์ฒดํฌ์ฌ์ ๊ฐ์ ์ ์ฉํฉ๋๋ค (์๋ ๊ฐ์ง ์ค๋ฒ๋ผ์ด๋) |
| โtimeout | string | ์ ๋ก๋ ํ๋ก์ธ์ค์ ํ์์์(์ด) |
| โmultipart | boolean | [๋น์ถ์ฒ] ๋์ โtus๋ฅผ ์ฌ์ฉํ์ธ์. S3 ์ ๋ก๋์ multipart ํ๋กํ ์ฝ์ ์ฌ์ฉํฉ๋๋ค |
| โzip | boolean | zip์ ์ฌ์ฉํ์ฌ ๋ฒ๋ค์ Capgo ํด๋ผ์ฐ๋์ ์ ๋ก๋ํฉ๋๋ค (๋ ๊ฑฐ์) |
| โtus | boolean | TUS๋ฅผ ์ฌ์ฉํ์ฌ ๋ฒ๋ค์ Capgo ํด๋ผ์ฐ๋์ ์ ๋ก๋ํฉ๋๋ค |
| โtus-chunk-size | string | TUS ์ฌ๊ฐ ๊ฐ๋ฅ ์ ๋ก๋์ ๋ฐ์ดํธ ๋จ์ chunk size (๊ธฐ๋ณธ๊ฐ: 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์ bundle ์ค์ |
| โdry-upload | boolean | bundle ์ ๋ก๋ ํ๋ก์ธ์ค๋ฅผ Dry upload๋ก ์คํ: ํ์ผ์ ์ ๋ก๋ํ๊ฑฐ๋ ์ฑ๋์ ์ ๋ฐ์ดํธํ์ง ์๊ณ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ row๋ง ์ถ๊ฐํฉ๋๋ค (Capgo ๋ด๋ถ ํ ์คํธ์ฉ) |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โnode-modules | string | ๋ชจ๋ ธ๋ ํฌ์ node_modules ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โencrypt-partial | boolean | Delta ์ ๋ฐ์ดํธ ํ์ผ ์ํธํ (updater > 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 | ๋๋ฐ์ด์ค๊ฐ ์ด ์ฑ๋์ ์๋์ผ๋ก ์ฐธ์ฌํ๋๋ก ํ์ฉํฉ๋๋ค (updates ์ฑ๋ ์ค์ ) |
| โqr-preview | boolean | ์ ๋ก๋ ํ ์ด ๋ฒ๋ค ๋ฏธ๋ฆฌ๋ณด๊ธฐ๋ฅผ ์ํ ํฐ๋ฏธ๋ QR code๋ฅผ ์ถ๋ ฅํฉ๋๋ค |
| โsend-update-notification | boolean | ๋งํฌ๋ ์ฑ๋ bundle ์ ๋ฐ์ดํธ ํ ๊ธฐ๊ธฐ์ ๋ค์ดํฐ๋ธ ์ ๋ฐ์ดํธ ํ์ธ ์๋ฆผ์ ๋ณด๋ ๋๋ค |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
| โverbose | boolean | ์์ธ ๋ก๊ทธ๊ฐ ํฌํจ๋ verbose ์ถ๋ ฅ์ ํ์ฑํํฉ๋๋ค |
๐งช ํธํ์ฑ
โ๐งช ํธํ์ฑโ ์น์ npx @capgo/cli@latest bundle compatibility๐งช Capgo Cloud์์ ํน์ ์ฑ๋๊ณผ ๋ฒ๋ค์ ํธํ์ฑ์ ํ์ธํ์ฌ ์ ๋ฐ์ดํธ๊ฐ ์์ ํ์ง ๊ฒ์ฆํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle compatibility com.example.app --channel production์ต์ :
| ํ๋ผ๋ฏธํฐ | ์ ํ | ์ค๋ช |
|---|---|---|
| -a | string | ๊ณ์ ์ ์ฐ๊ฒฐํ API ํค |
| -c | string | ํธํ์ฑ์ ํ์ธํ ์ฑ๋ |
| โ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 | ๋น๊ตํ Channel |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โnode-modules | string | ๋ชจ๋ ธ๋ ํฌ์ node_modules ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
๐๏ธ ์ญ์
โ ๐๏ธ ์ญ์ โ ์น์ ๋ณ์นญ: d
npx @capgo/cli@latest bundle delete๐๏ธ Capgo Cloud์์ ํน์ ๋ฒ์ ์ ๋์์ผ๋ก ์ง์ ํ์ฌ ํน์ bundle์ ์ญ์ ํฉ๋๋ค.
์์:
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โ ์ ๋ชฉ์ ์น์ ๋ณ์นญ: l
npx @capgo/cli@latest bundle list๐ Capgo Cloud์์ ์ฑ์ ์ ๋ก๋๋ ๋ชจ๋ bundle์ ๋์ดํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle list com.example.app์ต์ :
| ํ๋ผ๋ฏธํฐ | ์ ํ | ์ค๋ช |
|---|---|---|
| -a | string | ๊ณ์ ์ ์ฐ๊ฒฐํ API ํค |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
๐งน ์ ๋ฆฌ
โ๐งน Cleanupโ ์น์ ๋ณ์นญ: c
npx @capgo/cli@latest bundle cleanup์ง์ ๋ ์ต๊ทผ ๋ฒ์ ์๋ฅผ ์ ์งํ๋ฉด์ Capgo Cloud์ ์ค๋๋ bundle์ ์ญ์ ํฉ๋๋ค. ์ฑ๋์ ์ฐ๊ฒฐ๋ bundle์ โignore-channel์ ์ฌ์ฉํ์ง ์๋ ํ ๋ณด์กด๋ฉ๋๋ค.
์์:
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 | ์ฑ๋์ ์ฐ๊ฒฐ๋์ด ์๋๋ผ๋ ๋ฒ๋ค์ ์ญ์ ํฉ๋๋ค (๊ฒฝ๊ณ : ์ฑ๋๋ ํจ๊ป ์ญ์ ๋จ) |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
๐ ์ํธํ
โ๐ Encryptโ ์น์ npx @capgo/cli@latest bundle encrypt์์ ํ ์ธ๋ถ ์ ์ฅ์ ์ํด zip ๋ฒ๋ค์ ์ํธํํฉ๋๋ค. ์ ๋ก๋/๋ณตํธํ๋ฅผ ์ํ ivSessionKey๋ฅผ ๋ฐํํฉ๋๋ค. ์ฒดํฌ์ฌ์ โ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์ํธํ๋ bundle์ ๋ณตํธํํฉ๋๋ค(ํ ์คํธ ์ฉ๋๋ก ์ฃผ๋ก ์ฌ์ฉ). ๊ฒ์ฆ์ ์ํด base64 ์ธ์ ํค๋ฅผ ์ถ๋ ฅํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle decrypt ./myapp_encrypted.zip CHECKSUM์ต์ :
| ํ๋ผ๋ฏธํฐ | ์ ํ | ์ค๋ช |
|---|---|---|
| โkey | string | ๊ฐ์ธ ์๋ช ํค์ ์ฌ์ฉ์ ์ง์ ๊ฒฝ๋ก |
| โkey-data | string | ๊ฐ์ธ ์๋ช ํค |
| โchecksum | string | Bundle์ ๋ฌด๊ฒฐ์ฑ์ ๊ฒ์ฆํ๊ธฐ ์ํ checksum |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
๐น ์์ถ
โ ๐น 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 ํ์ผ ์ด๋ฆ์ ์ฌ์ฉํ Bundle ๋ฒ์ ๋ฒํธ์ ๋๋ค. |
| -n | string | zip ํ์ผ ์ด๋ฆ |
| -j | boolean | JSON์ผ๋ก ์ถ๋ ฅ |
| โno-code-check | boolean | ์์ค code์์ notifyAppReady() ํธ์ถ ์ฌ๋ถ์ ๋ฃจํธ ํด๋์ index ์กด์ฌ ์ฌ๋ถ ๊ฒ์ฌ๋ฅผ ๋ฌด์ํฉ๋๋ค |
| โkey-v2 | boolean | v2 ์ํธํ ์ฌ์ฉ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |