๐ฆ ํจํค์ง
๋ณต์ฌํ ์ ์๋ ์ง์์๋ฅผ ์ฌ์ฉํ์ฌ ์ด ํ๋ฌ๊ทธ์ธ์ ์ค์น ๋จ๊ณ์ ์ ์ฒด ๋งํฌ๋ค์ด ๊ฐ์ด๋๋ฅผ ๋ณต์ฌํ์ธ์.
๐ฆ 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__์ ์ ์ธํ๊ณ ) --bundleCI์์ ์ ์ฉํฉ๋๋ค. 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__CAPGO_KEEP_0__ __CAPGO_KEEP_1__ Workers AI๋ ์ด์ __CAPGO_KEEP_2__/์ฑ๋ ๋ธํ ๋งค๋ํ์คํธ์ ์ง์ญ ๋ฒ๋ค ํ์ผ์ ๋น๊ตํ๊ณ , --auto-bump ai, Capgo Cloudflare Workers AI compares local bundle files to the previous Capgo/channel delta manifest, infers major | minor | patch | metadata์งง์ ์ด์ ๋ฅผ CLI ๋ก๊ทธ์ ์ถ๋ ฅํฉ๋๋ค. ์ด์ Capgo ๋ฒ์ ์ด ์์ผ๋ฉด AI๋ ๋ฌด์๋๊ณ , patch๋ก ๊ธฐ๋ณธ๊ฐ์ด ์ค์ ๋ฉ๋๋ค..
์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๋ ํค |
| -p | string | capacitor.config์์ ์ ๊ณตํ์ง ์์ผ๋ฉด ์น ๋๋ ํ ๋ฆฌ(webDir)๋ฅผ ์ฌ์ฉํ์ฌ ์ ๋ก๋ํ ํด๋์ ๊ฒฝ๋ก |
| -c | string | ๋งํฌํ ์ฑ๋. ์๋ฅผ ๋ค์ด, production,beta |
| โrollout | string | 0์์ 100๊น์ง์ ํผ์ผํธ๋ก ์ ๋ก๋ํ ํจํค์ง๋ฅผ ์ด ์ฑ๋์ ๋กค์์ ๋ชฉํ๋ก ์ค์ |
| โrollout-percentage-bps | string | 0์์ 10000๊น์ง ์ ๋ก๋ ๋ ๋ฒ๋ค ๋กค์์ ํผ์ผํธ๋ฅผ ์ค์ ํฉ๋๋ค. |
| โ๋กค์์ ์บ์ TTL ์ด | string | Cloudflare ๋กค์์ ๊ฒฐ์ ์บ์ TTL ์ด |
| -e | string | Capgo ํด๋ผ์ฐ๋์ ์ ๋ก๋ํ์ง ์๊ณ ์ธ๋ถ URL๋ก ์ฐ๊ฒฐํฉ๋๋ค. |
| โIV ์ธ์ ํค | string | ๋ฒ๋ค URL ์ธ๋ถ์ IV ๋ฐ ์ธ์ ํค๋ฅผ ์ค์ ํฉ๋๋ค. |
| โS3 ์ง์ญ | string | ๋น์ ์ S3 ๋ฒํท์ ์ง์ญ์ ๋๋ค. |
| โS3 API ํค | string | API S3 ์๋ํฌ์ธํธ์ ํค์ ๋๋ค. |
| โS3 API ๋น๋ฐ๋ฒํธ | string | 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 ์ต์ remote ์ฑ ๋ฒ์ ์ ๋๋ค. Level: major, minor (๊ธฐ๋ณธ), patch (alias fix), metadata, ๋๋ ai (Workers AI๋ ์ง์ญ vs ์ด์ delta ๋งค๋ํ์คํธ์์ ์์ค์ ์ถ๋ก ํฉ๋๋ค; ์ด์ Capgo ๋ฒ์ ์ด ์์ผ๋ฉด patch๋ก ๋์๊ฐ๋๋ค). ์ญ์ ๋ ์ด๋ฆ์ ์ฌ์ฉ๋์ง ์์ต๋๋ค. โbundle (-b)์ ํจ๊ป ์ฌ์ฉํ ์ ์์ต๋๋ค. |
| โ๋งํฌ | string | ์ธ๋ถ ๋ฆฌ์์ค์ ๋ํ ๋งํฌ (์: GitHub ๋ฆด๋ฆฌ์ค) |
| ์ด ๋ฒ์ ์ ๋ํ ์ฃผ์, ๋ฆด๋ฆฌ์ค ๋ ธํธ, ์ปค๋ฐ ํด์, ์ปค๋ฐ ๋ฉ์์ง ๋ฑ์ด ๋ ์ ์์ต๋๋ค. | string | ์ด ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ๋ ค๋ฉด ํ์ํ ์ต์ ๋ฒ์ ์ ๋๋ค. ์ฑ๋์ disable auto update์ด metadata๋ก ์ค์ ๋ ๊ฒฝ์ฐ์๋ง ์ฌ์ฉ๋ฉ๋๋ค. |
| native ํจํค์ง์ ๊ธฐ๋ฐํ์ฌ ์ต์ ์ ๋ฐ์ดํธ ๋ฒ์ ์ ์ค์ ํฉ๋๋ค. | string | ์ ๋ก๋ ์ ๋ฉํ๋ฐ์ดํฐ (node_modules) ๊ฒ์ฌ๋ฅผ ๋ฌด์ํฉ๋๋ค. |
| ์ผ์นํ์ง ์๋ ๊ฒฝ์ฐ ์คํจํฉ๋๋ค. | boolean | โignore-metadata-check |
| โfail-on-incompatible | 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 ํด๋ผ์ฐ๋์ ์ ๋ก๋ํฉ๋๋ค (๋ ๊ฑฐ์) |
| โtus | boolean | TUS๋ฅผ ์ฌ์ฉํ์ฌ Capgo ํด๋ผ์ฐ๋์ ๋ฐฐเคเคกเคฒ์ ์ ๋ก๋ํ์ธ์. |
| โtus-chunk-size | string | TUS ์ฌ์์ ์ ๋ก๋์ ๋ฐ์ดํธ ๋จ์ ํฌ๊ธฐ (๊ธฐ๋ณธ๊ฐ: ์๋) |
| โpartial | boolean | [deprecated] โdelta๋ฅผ ์ฌ์ฉํ์ธ์. incremental ์ ๋ฐ์ดํธ๋ฅผ ์ ๋ก๋ํ์ธ์. |
| โpartial-only | boolean | [deprecated] โdelta-only๋ฅผ ์ฌ์ฉํ์ธ์. full ๋ฐฐเคเคกเคฒ์ ์ ๋ก๋ํ์ง ์๊ณ incremental ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํ์ธ์. |
| โdelta | boolean | delta ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํ์ฌ instant, super-fast ์ ๋ฐ์ดํธ๋ฅผ ์ํด ๋์ฉ๋ zip ๋ค์ด๋ก๋ ๋์ ์ฌ์ฉํ์ธ์. |
| โdelta-only | boolean | full ๋ฐฐเคเคกเคฒ ์์ด delta ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํ์ฌ ์ต๋ ์๋ (๋์ฉ๋ ์ฑ์ ์ ์ฉ)๋ฅผ ์ฌ์ฉํ์ธ์. |
| โ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) |
| โpackage.json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โnode_modules | string | ๋ชจ๋ ธ๋ ํฌ์ node_modules ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โ๋ถ๋ถ ์ํธํ | boolean | delta ์ ๋ฐ์ดํธ ํ์ผ ์ํธํ (์ ๋ฐ์ดํฐ > 6.14.4 ์์ ์๋ ํ์ฑํ) |
| โ์ ๋ก๋ ์ ์ฐ๊ฒฐ๋ ๋ฒ๋ค ์ญ์ | boolean | ํ์ฌ ์ ๋ก๋ํ๋ ค๋ ์ฑ๋์์ ์ฐ๊ฒฐ๋ ๋ฒ๋ค์ ์ฐพ๊ณ ์ญ์ |
| โ๋ธ๋กํ๋ฆฌ ํจํด ์ ์ธ | string | ๋ธ๋กํ๋ฆฌ ์์ถ์์ ์ ์ธํ ํ์ผ (์ผํ๋ก ๊ตฌ๋ถ๋ glob, ์: โ.jpg,โ โ.pngโ)โ๋ธ๋กํ๋ฆฌ ๋นํ์ฑํ์ ๋ฐ์ดํฐ ๋ฒ์ ์ด ์ง์ํ๋ ๊ฒฝ์ฐ์๋ ๋ธ๋กํ๋ฆฌ ์์ถ์ ์์ ํ ๋นํ์ฑํ |
| โ๋ฒ์ ์ด ์ด๋ฏธ ์กด์ฌํด๋ ์ฑ๊ณต์ ์ผ๋ก ์ข ๋ฃ | boolean | CI/CD ์ํฌํ๋ก์ฐ์ ํจ๊ป ๋ชจ๋ ธ๋ ํฌ๋ฅผ ์ํ ๋ฒ์ ์ด ์ด๋ฏธ ์กด์ฌํด๋ ์ฑ๊ณต์ ์ผ๋ก ์ข ๋ฃ |
| โ์์ ์๊ฒ ํ ๋น | boolean | โ์์ ์๊ฒ ํ ๋น |
| โ์์ ์๊ฒ ํ ๋น | boolean | ์ด ์ฑ๋์ ์ฅ์น๊ฐ ์๋์ผ๋ก ์ฐ๊ฒฐ๋๋๋ก ํ์ฉ (์ ๋ฐ์ดํธ ์ฑ๋ ์ค์ ) |
| โqr-preview | boolean | ์ด ๋ฒ๋ค์ ๋ฏธ๋ฆฌ๋ณด๊ธฐ ์ ๋ก๋ ํ ํฐ๋ฏธ๋ QR code ์ถ๋ ฅ |
| โsend-update-notification | boolean | ์ฅ์น์ ์ ๋ฐ์ดํธ๋ ์ฐ๊ฒฐ๋ ์ฑ๋ ๋ฒ๋ค์ ์๋ฆผ์ ์ ์ก |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon ํค (์์ฒด ํธ์คํ ) |
| โverbose | boolean | ์ธ๋ถ ๋ก๊น ๊ณผ ํจ๊ป ์์ธํ ๋ก๊ทธ ์ถ๋ ฅ์ ํ์ฑํ |
๐งช ํธํ์ฑ
Compatibilitynpx @capgo/cli@latest bundle compatibilityCapgo Cloud์์ ํน์ ์ฑ๋๊ณผ ํธํ์ฑ์ ํ์ธํ์ฌ ์ ๋ฐ์ดํธ๊ฐ ์์ ํ์ง ํ์ธํ์ธ์.
์์:
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 | ์ฌ์ฉ์ ์ ์ Supabase ์ต๋ช ํค (์์ฒด ํธ์คํ ) |
๐น ๋ฆด๋ฆฌ์ฆ ํ์
๋ฆด๋ฆฌ์ฆ ํ์ ์น์ 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 | ์ฌ์ฉ์ ์ง์ Supabase ์ต๋ช ํค (์์ฒด ํธ์คํ ์ฉ) |
๐๏ธ ์ญ์
โ ์ญ์ โ ์ ๋ชฉ์ ์น์ 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 ํค (์์ฒด ํธ์คํ ์ฉ) |
๐ ๋ชฉ๋ก
๋ชฉ๋ก ์ ๋ชฉ โ ๐ Listโ๋ณ๋ช
: 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์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| --ํค | string | ๊ฐ์ธ ์๋ช ํค์ ์ฌ์ฉ์ ์ง์ ๊ฒฝ๋ก |
| --ํค-๋ฐ์ดํฐ | string | ๊ฐ์ธ ์๋ช ํค |
| -j | boolean | JSON ํ์์ผ๋ก ์ถ๋ ฅ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
๐ ํด์
ํด์ ์น์ 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
Zipnpx @capgo/cli@latest bundle zip๐๏ธ ์ฑ ๋ฒ๋ค์ ๋ํ zip ํ์ผ์ ์์ฑํฉ๋๋ค. ์ํธํ์ ์ฌ์ฉํ ์ฒดํฌ์ฌ์ ๋ฐํํฉ๋๋ค. โjson ์ต์ ์ ์ฌ์ฉํ์ฌ ๊ธฐ๊ณ๊ฐ ์ฝ์ ์ ์๋ ์ถ๋ ฅ์ ์ป์ต๋๋ค.
์์:
npx @capgo/cli@latest bundle zip com.example.app --path ./dist์ต์ :
| Param | Type | ์ค๋ช |
|---|---|---|
| โ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 ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |