๐ฆ ํจํค์ง
์ค์น
๐ฆ 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์ฑ๋ (๋๋ ์ต์ remote ์ฑ ๋ฒ์ )์์ ๋ค์ ๋ฌด๋ฃ semver๋ฅผ ์๋์ผ๋ก ์ฆ๊ฐ์ํต๋๋ค. (๋ฒ์ __CAPGO_KEEP_0__์ ์ ์ธํ๊ณ ) --bundleCI์์ ์ ์ฉํฉ๋๋ค. __CAPGO_KEEP_0__ ๋ฒ์ ์ด ์ด๋ฏธ __CAPGO_KEEP_1__๊ณผ ์ผ์นํ ๋ package.json Capgo ๋ฒ์ ์ด ์ด๋ฏธ __CAPGO_KEEP_1__๊ณผ ์ผ์นํ ๋
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 aiWith --auto-bump ai, Capgo Cloudflare ์์ปค๋ ๋ก์ปฌ ๋ฒ๋ค ํ์ผ์ ์ด์ Capgo/์ฑ๋ ๋ธํ ๋งค๋ํ์คํธ์ ๋น๊ตํ์ฌ, ์ถ๋ก 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__
| Param | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๋ ํค |
| -p | string | capacitor.config์์ ์ ๊ณตํ์ง ์์ผ๋ฉด ์ฌ์ฉํ ํด๋ ์ ๋ก๋ ๊ฒฝ๋ก |
| -c | string | ์ฐ๊ฒฐํ ์ฑ๋. ์ฌ๋ฌ ์ฑ๋์ ์ฌ์ฉํ๋ ค๋ฉด ์๋ฅผ ๋ค์ด production,beta์ ๊ฐ์ด ์ผํ๋ก ๊ตฌ๋ถ |
| --rollout | string | 0์์ 100๊น์ง์ ๋ฐฑ๋ถ์จ์์ ์ ๋ก๋ํ ํจํค์ง๋ฅผ ์ด ์ฑ๋์ ๋กค์์ ๋ชฉํ๋ก ์ค์ |
| --stable | boolean | ๋กค์์ ๊ตฌ์ฑ๋ ์ฑ๋์์ ์์ ์ ์ธ ๋์ฒด ๋์ ๋กค์์ ๋ชฉํ๋ฅผ ์ค์ |
| โ๋ฐฐํฌ์จ-ํผ์ผํธ-bps | string | 0์์ 10000๊น์ง์ ๋ฐฐํฌ์จ ํผ์ผํธ๋ฅผ ์ค์ ํฉ๋๋ค. |
| โ๋ฐฐํฌ-์บ์-TTL-์ด | string | Cloudflare ๋ฐฐํฌ ๊ฒฐ์ ์บ์ TTL ์ด |
| -e | string | Capgo์ ์ ๋ก๋ํ์ง ์๊ณ ์ธ๋ถ URL๋ก ์ฐ๊ฒฐํฉ๋๋ค. |
| โiv-์ธ์ -ํค | string | ๋ฐฐํฌ URL ์ธ๋ถ์์ IV ๋ฐ ์ธ์ ํค๋ฅผ ์ค์ ํฉ๋๋ค. |
| โs3-์ง์ญ | string | S3 ๋ฒํท์ ์ง์ญ์ ์ค์ ํฉ๋๋ค. |
| โs3-apikey | string | API ํค๋ฅผ ์ค์ ํฉ๋๋ค. |
| โs3-apisecret | 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 | bundle URL์ stdout๋ก ์ถ๋ ฅํฉ๋๋ค. |
| โno-key | boolean | ์๋ช ํค๋ฅผ ๋ฌด์ํ๊ณ ์ ๋ฐ์ดํธ ๋ด์ฉ์ ํด๋ฆฌ์ด๋ก ์ ์กํฉ๋๋ค. |
| โno-code-check | boolean | notifyAppReady()๊ฐ ์์ค code์์ ํธ์ถ๋์๋์ง ๋ฐ ๋ฃจํธ ํด๋์ ์ธ๋ฑ์ค๊ฐ ์กด์ฌํ๋์ง ํ์ธํ์ง ์์ต๋๋ค. |
| โdisplay-iv-session | boolean | ์ ๋ฐ์ดํธ๋ฅผ ์ํธํํ ๋ ์ฌ์ฉํ๋ IV์ ์ธ์ ํค๋ฅผ ์ฝ์์ ํ์ํฉ๋๋ค. |
| -b | string | ์ ๋ก๋ํ ๋ฐฐํฌ๋ณธ์ ๋ฒ์ ๋ฒํธ |
| โauto-bump | string | ์ฑ๋์ ์ฐ๊ฒฐ๋ ๋ฒ๋ค์์ ์๋์ผ๋ก ์ฆ๊ฐํฉ๋๋ค. (๊ธฐ๋ณธ๊ฐ: ์ต์ ่ฟ็จ์ฑ ๋ฒ์ ). ๋ ๋ฒจ: ๋ฉ์ด์ , ๋ง์ด๋, ํจ์น(๊ธฐ๋ณธ๊ฐ), ๋ฉํ๋ฐ์ดํฐ, ๋๋ ai (์น์์ปค AI๋ ๋ก์ปฌ vs ์ด์ ๋ธํ ๋งค๋ํ์คํธ์์ ๋ ๋ฒจ์ ์ถ๋ก ํฉ๋๋ค. ์ด์ Capgo ๋ฒ์ ์ด ์์ผ๋ฉด ํจ์น๋ก ๋์๊ฐ๋๋ค). ์ญ์ ๋ ์ด๋ฆ์ ์ฌ์ฉ๋์ง ์์ต๋๋ค. |
| โlink | string | ์ธ๋ถ ๋ฆฌ์์ค์ ์ฐ๊ฒฐํฉ๋๋ค (์: GitHub ๋ฆด๋ฆฌ์ค) |
| โcomment | string | ์ด ๋ฒ์ ์ ๋ํ ์ค๋ช ์ ๋๋ค. ๋ฆด๋ฆฌ์ค ๋ ธํธ, ์ปค๋ฐ ํด์, ์ปค๋ฐ ๋ฉ์์ง ๋ฑ์ด ๋ ์ ์์ต๋๋ค. |
| โmin-update-version | string | ์ด ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ ์ ์๋ ์ต์ ๋ฒ์ ์ ๋๋ค. ์ฑ๋์ ์๋ ์ ๋ฐ์ดํธ๋ฅผ ๋นํ์ฑํํ๊ณ ๋ฉํ๋ฐ์ดํฐ๋ก ์ค์ ํ ๊ฒฝ์ฐ์๋ง ์ฌ์ฉ๋ฉ๋๋ค. |
| โauto-min-update-version | boolean | ๋ค์ดํฐ๋ธ ํจํค์ง์ ๋ฐ๋ผ ์ต์ ์ ๋ฐ์ดํธ ๋ฒ์ ์ ์ค์ ํฉ๋๋ค. |
| โignore-metadata-check | boolean | ์ ๋ก๋ ์ ๋ฉํ๋ฐ์ดํฐ(๋ ธ๋ ๋ชจ๋) ๊ฒ์ฌ๋ฅผ ๋ฌด์ํฉ๋๋ค. |
| โfail-on-incompatible | 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์ ์ฌ์ฉํฉ๋๋ค. |
| โtus | boolean | Capgo ํด๋ผ์ฐ๋์ TUS๋ฅผ ์ฌ์ฉํ์ฌ ํจํค์ง๋ฅผ ์ ๋ก๋ํ์ธ์. |
| โtus-chunk-size | string | TUS ์ฌ์์ ์ ๋ก๋์ ๋ฐ์ดํธ ๋จ์๋ก ์ฟผ๋ฆฌ (๊ธฐ๋ณธ๊ฐ: ์๋) |
| โpartial | boolean | [deprecated] โdelta๋ฅผ ์ฌ์ฉํ์ธ์. ๋น ๋ฅธ ์ ๋ฐ์ดํธ๋ฅผ ์ํด incremental ์ ๋ฐ์ดํธ๋ฅผ ์ ๋ก๋ํ์ธ์. |
| โpartial-only | boolean | [deprecated] โdelta-only๋ฅผ ์ฌ์ฉํ์ธ์. ํฐ ์ฑ์ ๊ฒฝ์ฐ ์ต๋ ์๋์ ๋๋ฌํ๊ธฐ ์ํด full bundle๋ฅผ ์๋ตํ๊ณ incremental ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํ์ธ์. |
| โdelta | boolean | ๋น ๋ฅธ ์ ๋ฐ์ดํธ๋ฅผ ์ํด delta ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํ์ธ์. |
| โdelta-only | boolean | ๋ํ ์ฑ์ ๊ฒฝ์ฐ ์ต๋ ์๋์ ๋๋ฌํ๊ธฐ ์ํด full bundle๋ฅผ ์๋ตํ๊ณ delta ์ ๋ฐ์ดํธ๋ง ์ ๋ก๋ํ์ธ์. |
| โno-delta | boolean | delta ์ ๋ฐ์ดํธ๋ฅผ ๋นํ์ฑํํ์ญ์์ค. (instant ์ ๋ฐ์ดํธ๊ฐ ํ์ฑํ๋์ด๋) |
| โencrypted-checksum | string | ์ํธํ๋ ์ฒดํฌ์ฌ (์๋ช ). ์ธ๋ถ ๋ฐฐํฌ๋ณธ์ ์ ๋ก๋ํ ๋๋ง ์ฌ์ฉ๋ฉ๋๋ค. |
| โauto-set-bundle | boolean | capacitor.config.json์ ๋ฐฐํฌ๋ณธ์ ์ค์ ํฉ๋๋ค. |
| โdry-upload | boolean | bundle ์ ๋ก๋ ํ๋ก์ธ์ค: ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ํ์ ์ถ๊ฐํ๊ณ ํ์ผ ์ ๋ก๋ ๋๋ ์ฑ๋ ์ ๋ฐ์ดํธ ์์ด (Capgo ๋ด๋ถ ํ ์คํธ๋ฅผ ์ํด ์ฌ์ฉ๋จ) |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โnode-modules | string | ๋ชจ๋ ธ๋ ํฌ์ node_modules ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
| โ์ํธํ-๋ถ๋ถ | boolean | ์ ๋ฐ์ดํธ ๋ธํ ํ์ผ ์ํธํ (์ ๋ฐ์ดํฐ > 6.14.4๋ถํฐ ์๋ ํ์ฑํ) |
| โ์ ๋ก๋ ์ ์ฐ๊ฒฐ๋ ๋ฒ๋ค ์ญ์ | boolean | ํ์ฌ ์ ๋ก๋ ์ค์ธ ์ฑ๋์์ ์ฐ๊ฒฐ๋ ๋ฒ๋ค์ ์ฐพ๊ณ ์ญ์ |
| โ๋ธ๋กํ๋ฆฌ ํจํด ์ ์ธ | string | ์์ถ์์ ์ ์ธํ ํ์ผ (์ผํ๋ก ๊ตฌ๋ถ๋ glob, ์: โ.jpg,.pngโ) |
| โ๋ธ๋กํ๋ฆฌ ๋นํ์ฑํ | boolean | ์ ๋ฐ์ดํฐ ๋ฒ์ ์ด ์ง์ํ๋ ๊ฒฝ์ฐ์๋ ๋ธ๋กํ๋ฆฌ ์์ถ์ ์์ ํ ๋นํ์ฑํ |
| โ๋ฒ์ ์ด ์ด๋ฏธ ์กด์ฌํด๋ ์ฑ๊ณต | boolean | ๋ฒ์ ์ด ์ด๋ฏธ ์กด์ฌํ๋ ๊ฒฝ์ฐ ์ฑ๊ณต์ ์ผ๋ก ์ข ๋ฃ, CI/CD ์ํฌํ๋ก์ฐ์ ๋ชจ๋ ธ๋ ํฌ์ ์ ์ฉ |
| โ์์ฒด ํ ๋น | boolean | ์ด ์ฑ๋ (์ ๋ฐ์ดํธ ์ฑ๋ ์ค์ )์ ์๋์ผ๋ก ๊ฐ์ ํ๋๋ก ์ฅ์น์ ํ์ฉํฉ๋๋ค. |
| โqr ๋ฏธ๋ฆฌ๋ณด๊ธฐ | boolean | ์ ๋ก๋ ํ ์ด ๋ฒ๋ค์ ๋ฏธ๋ฆฌ๋ณด๊ธฐ ํ ํฐ๋ฏธ๋ QR code๋ฅผ ์ถ๋ ฅํฉ๋๋ค. |
| โ์ ๋ฐ์ดํธ ์๋ฆผ ์ ์ก | boolean | ๋งํฌ๋ ์ฑ๋ ๋ฒ๋ค์ ์ ๋ฐ์ดํธ๊ฐ ์๋ฃ๋ ํ ์ฅ์น์ ์์์ ์ธ ์ ๋ฐ์ดํธ ์ฒดํฌ ์๋ฆผ์ ์ ์กํฉ๋๋ค. |
| โ์ํ ํธ์คํธ | string | ์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ ์ํ ์ํ๋ฒ ์ด์ค ํธ์คํธ URL |
| โ์ํ ์ต๋ช | string | ์์ฒด ํธ์คํ ์ ์ํ ์ํ๋ฒ ์ด์ค ์ต๋ช ํค |
| โ์ธ๋ถ ์ ๋ณด | boolean | ์ธ๋ถ ์ ๋ณด ์ถ๋ ฅ์ ํ์ฑํํ์ฌ ์์ธํ ๋ก๊น ์ ํ์ํฉ๋๋ค. |
๐งช ํธํ์ฑ
Compatibilitynpx @capgo/cli@latest bundle compatibility๐งช Capgo์์ ํน์ ์ฑ๋๊ณผ ํธํ์ฑ์ ํ์ธํ์ฌ ์ ๋ฐ์ดํธ๊ฐ ์์ ํ์ง ํ์ธํ์ธ์.
Example:
npx @capgo/cli@latest bundle compatibility com.example.app --channel productionOptions:
| Param | ์์: | Example: |
|---|---|---|
| -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 | ์์ฒด ํธ์คํ ์ ์ํ Custom Supabase anon ํค |
๐น ReleaseType
ReleaseTypenpx @capgo/cli@latest bundle releaseType๐งญ ํธํ์ฑ์ ๋ฐ๋ผ ์ฑ๋์ ์ต์ ๋ฉํ๋ฐ์ดํฐ์ native ๋๋ OTA๋ฅผ ์ถ๋ ฅํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle releaseType com.example.app --channel production์ต์ :
| Param | ํ์ | ์ค๋ช |
|---|---|---|
| -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 ํค (์์ฒด ํธ์คํ ) |
๐๏ธ ์ญ์
์ ๋ชฉ " ์ญ์ "Alias: d
npx @capgo/cli@latest bundle deleteCapgo Cloud์์ ํน์ ๋ฒ๋ค ์ญ์ , ์ต์ ์ผ๋ก ๋จ์ผ ๋ฒ์ ์ ๋์์ผ๋ก ํ ์ ์์ต๋๋ค.
์์:
npx @capgo/cli@latest bundle delete BUNDLE_ID com.example.app์ต์ :
| Param | Type | ์ค๋ช |
|---|---|---|
| -a | string | API |
| โsupa-host | string | ์ฌ์ฉ์ ์ง์ Supabase ํธ์คํธ URL (์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ฌ์ฉ์ ์ง์ Supabase ์ต๋ช ํค (์์ฒด ํธ์คํ ์ฉ) |
๐ ๋ชฉ๋ก
๋ณ์นญ:์ค๋ช
l
npx @capgo/cli@latest bundle list๐ Capgo ์ฑ์ ์ ๋ก๋ ๋ ๋ชจ๋ ๋ฒ๋ค์ ๋ชฉ๋กํํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle list com.example.app์ต์ :
| Param | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๋ ํค |
| โ์๋ฒ ํธ์คํธ | string | Custom Supabase host URL (for self-hosting or Capgo development) |
| โanon ํค | string | ์์ฒด ํธ์คํ ์ ์ํ ์ปค์คํ Supabase anon ํค |
๐งน ์ ๋ฆฌ
์ ๋ชฉ: ์ ๋ฆฌ๋ณ๋ช
: c
npx @capgo/cli@latest bundle cleanup๐งน Capgo ํด๋ผ์ฐ๋์์ __CAPGO_KEEP_1__ ๋ฒ์ ์ ์ต๊ทผ ๋ฒ์ ์ ๋ณด์กดํ๋ ๋์ ์ญ์ ํ๋ ์ ๋ฒ๋๋ค์ ์ญ์ ํฉ๋๋ค. ์ฑ๋๊ณผ ์ฐ๊ฒฐ๋ ๋ฒ๋ค์ ์ญ์ ํ๋ ค๋ฉด โignore-channel ์ต์ ์ ์ฌ์ฉํฉ๋๋ค.
์์:
npx @capgo/cli@latest bundle cleanup com.example.app --bundle=1.0 --keep=3์ต์ :
| Param | ํ์ | ์ค๋ช |
|---|---|---|
| -b | string | ์ญ์ ํ ์ฑ์ ๋ฒ์ ๋ฒํธ |
| -a | string | API |
| -k | string | ๋ณด์กดํ ๋ฒ์ ์ |
| -f | boolean | ๊ฐ์ ์ญ์ |
| โignore-channel | boolean | ์ฑ๋๊ณผ ์ฐ๊ฒฐ๋ ๋ฐฐํฌ๋ณธ๊น์ง ์ญ์ ํ์ญ์์ค (๊ฒฝ๊ณ : ์ฑ๋๋ ์ญ์ ๋ฉ๋๋ค) |
| โsupa-host | string | Custom Supabase host URL (for self-hosting or Capgo development) |
| โsupa-anon | string | ์ฌ์ฉ์ ์ง์ Supabase ์ต๋ช ํค (์์ฒด ํธ์คํ ์ฉ) |
๐ ์ํธํ
์ํธํ ๐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์ต์ :
| Param | Type | ์ค๋ช |
|---|---|---|
| โkey | string | ์ฌ์ฉ์ ์ง์ ํค ๊ฒฝ๋ก |
| โkey-data | string | ์ฌ์ฉ์ ์ง์ ํค |
| โchecksum | string | ๋ฐฐํฌ๋ฌผ์ ๋ฌด๊ฒฐ์ฑ์ ํ์ธํ๊ธฐ ์ํ ์ฒดํฌ์ฌ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |
npx @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์ ์ธ๋ฑ์ค ํด๋๊ฐ ๋ฃจํธ ํด๋์ ์กด์ฌํ๋์ง ํ์ธํ์ง ์์ |
| โkey-v2 | boolean | ์ํธํ v2 ์ฌ์ฉ |
| โpackage-json | string | ๋ชจ๋ ธ๋ ํฌ์ package.json ํ์ผ ๊ฒฝ๋ก (์ผํ๋ก ๊ตฌ๋ถ) |