๐ข ์ฑ๋
Copy-ready
๐ข Manage distribution channels for app updates in Capgo Cloud, controlling how updates are delivered to devices.
โ โ ์ถ๊ฐ
Alias:โ ์ถ๊ฐ a
npx @capgo/cli@latest channel addCapgo Cloud์์ ์ฑ ๋ฐฐํฌ๋ฅผ ์ํ ์๋ก์ด ์ฑ๋์ ์์ฑํ์ฌ ์ ๋ฐ์ดํธ ์ ์ก์ ๊ด๋ฆฌํ์ธ์.
์์:
npx @capgo/cli@latest channel add production com.example.app --default์ต์ :
| Param | Type | ์ค๋ช |
|---|---|---|
| -d | boolean | ๊ธฐ๋ณธ ์ฑ๋๋ก ์ค์ |
| โ์์ ํ ๋น | boolean | ์ด ์ฑ๋์ ์ฅ์น๊ฐ ์์ฒด ํ ๋น์ ํ์ฉํฉ๋๋ค. |
| -a | string | API ํค๋ฅผ ์ฌ์ฉํ์ฌ ๊ณ์ ์ ์ฐ๊ฒฐํฉ๋๋ค. |
| โ์ฌ์ฉ์ ํธ์คํธ | string | ์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ ์ํ ์ฌ์ฉ์ ์ง์ Supabase ํธ์คํธ URL |
| โ์ฌ์ฉ์ ์ต๋ช | string | ์์ฒด ํธ์คํ ์ ์ํ ์ฌ์ฉ์ ์ง์ Supabase ์ต๋ช ํค |
๐๏ธ ์ญ์
์ ๋ชฉ์ด โ๐๏ธ ์ญ์ โ์ธ ์น์ ๋ณ๋ช
: d
npx @capgo/cli@latest channel deleteCloudflare, Capgo Cloud์์ ์ฑ๋์ ์ญ์ ํ๊ณ optionally ๊ด๋ จ๋ ๋ฒ๋ค์ ์ ๊ฑฐํ์ฌ ์์ ์ฌ์ฉ์ ์ต์ ํํฉ๋๋ค.
์์:
npx @capgo/cli@latest channel delete production com.example.app์ต์ :
| Param | Type | ์ค๋ช |
|---|---|---|
| -a | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๊ธฐ ์ํ ํค |
| --delete-bundle | boolean | ์ฑ๋๊ณผ ๊ด๋ จ๋ ๋ฒ๋ค์ ์ญ์ ํฉ๋๋ค. App Preview ํค๋ ์ํ๋ ํ๋ฆฌ๋ทฐ ์ฑ๋๊ณผ ์ฐ๊ฒฐ๋, ๊ณต์ ๋์ง ์์ ๋ฒ๋ค์ ์์์ ์ผ๋ก ์ญ์ ํ ์ ์์ต๋๋ค. |
| โsuccess-if-not-found | boolean | ์ฑ๋์ด ๋ฐ๊ฒฌ๋์ง ์์ผ๋ฉด ์ฑ๊ณต |
| โsupa-host | string | Custom Supabase host URL (for self-hosting or Capgo development) |
| โsupa-anon | string | ์ฌ์ฉ์ ์ง์ Supabase anon ํค (์์ฒด ํธ์คํ ์ฉ) |
๐ ๋ชฉ๋ก
๋ชฉ๋ก ์ ๋ชฉ: " ๐ List"๋ณ๋ช
: l
npx @capgo/cli@latest channel list๐ ์ฑ์ ๋ํ ๋ชจ๋ ์ฑ๋์ Capgo Cloud์์ ๊ฒํ ํ๊ธฐ ์ํด ๋ฐฐํฌ ์ค์ ์ ๊ฒํ ํฉ๋๋ค.
์์:
npx @capgo/cli@latest channel list com.example.app์ต์ :
| Param | Type | ์ค๋ช |
|---|---|---|
| -a | string | API ํค๋ฅผ ์ฌ์ฉํ์ฌ ๊ณ์ ์ ์ฐ๊ฒฐ |
| --supa-host | string | ์ฌ์ฉ์ ์ง์ Supabase ํธ์คํธ URL (์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| --supa-anon | string | ์ฌ์ฉ์ ์ง์ Supabase anon ํค (์์ฒด ํธ์คํ ์ฉ) |
๐ฆ ํ์ฌ ๋ฒ์
Section titled โ ๐ฆ ํ์ฌ ์ฑ๋์ ์ฐ๊ฒฐ๋ ์ ๋ฐ์ดํธ๋ฅผ ์ถ์ ํ๊ธฐ ์ํ __CAPGO_KEEP_0__ Cloud์ ํ์ฌ ๋ฒ์ โnpx @capgo/cli@latest channel currentBundle๐ฆ Capgo Cloud์์ ํน์ ์ฑ๋์ ์ฐ๊ฒฐ๋ ํ์ฌ ๋ฒ์ ์ ๊ฐ์ ธ์ต๋๋ค.
์์:
npx @capgo/cli@latest channel currentBundle production com.example.app์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -c | string | ํ์ฌ ๋ฒ๋ธ์ ๊ฐ์ ธ์ฌ ์ฑ๋ |
| -a | string | API ํค๋ฅผ ์ฌ์ฉํ์ฌ ๊ณ์ ์ ์ฐ๊ฒฐ |
| โquiet | boolean | ๋ฒ์ ๋ง ์ถ๋ ฅ |
| โsupa-host | string | ์ฌ์ฉ์ ์ง์ Supabase ํธ์คํธ URL (์์ฒด ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ) |
| โsupa-anon | string | ์ฌ์ฉ์ ์ง์ Supabase anon ํค (์์ฒด ํธ์คํ ) |
โ๏ธ ์ค์
Alias: โ๏ธ ์ค์ s
npx @capgo/cli@latest channel setโ๏ธ ์ฑ๋์ ๋ํ ์ค์ ์ ๊ตฌ์ฑํฉ๋๋ค. ์๋ฅผ ๋ค์ด, ๋ฒ์ ์ ๋ฐ์ดํธ ์ ๋ต (major, minor, metadata, patch, none), ๋๋ฐ์ด์ค ํ๊ฒํ (iOS, Android, dev, prod, emulator, device)๊ณผ ๊ฐ์ ๋ฒ๊ทธ๋ฅผ ์ฐ๊ฒฐํ๊ฑฐ๋.
ํ ์ฑ๋์ ๊ธฐ๋ณธ๊ฐ์ด์ด์ผ ํฉ๋๋ค.
npx @capgo/cli@latest channel set production com.example.app --bundle 1.0.0 --state defaultํด๋ฆฝ๋ณด๋์ ๋ณต์ฌ
| ์ต์ : | ํ๋ผ๋ฏธํฐ | ํ์ |
|---|---|---|
| ์ค๋ช | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๊ธฐ ์ํ ํค |
| -b | string | ํ์ผ์ ๋ฒ์ ๋ฒํธ๋ฅผ ์ค์ ํ ๋ ์ฌ์ฉํ๋ ๋ฒ๋ค ๋ฒ์ |
| -s | string | ์ฑ๋์ ์ํ๋ฅผ ์ค์ , ๊ธฐ๋ณธ ๋๋ ์ผ๋ฐ |
| โlatest-remote | boolean | capgo ํด๋ผ์ฐ๋์ ์ ๋ก๋๋ ์ต์ ๋ฒ๋ค์ ๊ฐ์ ธ์ ์ฑ๋์ ์ค์ |
| โlatest | boolean | package.json์ ์ต์ ๋ฒ์ ํค๋ฅผ ๊ฐ์ ธ์ ์ฑ๋์ ์ค์ |
| โdowngrade | boolean | ์์ฐ์ค๋ฌ์ด ๋ฒ์ ์ดํ๋ก ๋ค์ด๊ทธ๋ ์ด๋ ํ์ฉ |
| โno-downgrade | boolean | ์์ฐ์ค๋ฌ์ด ๋ฒ์ ์ดํ๋ก ๋ค์ด๊ทธ๋ ์ด๋ ํ์ฉํ์ง ์์ |
| โiOS | boolean | iOS ์ฅ์น๋ก ์ ๋ฐ์ดํธ ๋ณด๋ด๊ธฐ ํ์ฉ |
| โno-iOS | boolean | iOS ์ฅ์น๋ก ์ ๋ฐ์ดํธ ๋ณด๋ด๊ธฐ ๊ธ์ง |
| โandroid | boolean | ์๋๋ก์ด๋ ์ฅ์น๋ก ์ ๋ฐ์ดํธ ๋ณด๋ด๊ธฐ ํ์ฉ |
| โno-android | boolean | ์๋๋ก์ด๋ ์ฅ์น๋ก ์ ๋ฐ์ดํธ ๋ณด๋ด๊ธฐ ๊ธ์ง |
| โself-assign | boolean | ์ด ์ฑ๋์ ์ฅ์น ์์ฒด ํ ๋น ํ์ฉ |
| โno-self-assign | boolean | ์ด ์ฑ๋์ ์ฅ์น ์์ฒด ํ ๋น ๊ธ์ง |
| โ์ ๋ฐ์ดํธ ์ฐจ๋จ | string | ์ ๋ฐ์ดํธ ์ฐจ๋จ ์ ํ: major, minor, metadata, patch, ๋๋ none (๋ชจ๋ ํ์ฉ) |
| โํจํค์ง ์ ๋ฐ์ดํธ | string | zip, delta, ๋๋ ๋ ๋ค ์ ๊ณต: all, zip, delta, zip_from_builtin, ๋๋ delta_from_builtin |
| โ๋กค์์ ๋ฒ๋ค | string | ์ด ์ฑ๋์์ ์ ์ง์ ์ผ๋ก ๋ฆด๋ฆฌ์ฆํ ๋ฒ๋ค์ ๋ฒ์ |
| โ๋กค์์ ํผ์ผํธ | string | 0์์ 100๊น์ง์ ํผ์ผํธ |
| โ๋กค์์ ํผ์ผํธ BPS | string | 0์์ 10000๊น์ง์ ํผ์ผํธ BPS |
| โ๋กค์์ ํ์ฑํ | boolean | ๊ตฌ์ฑ๋ ๋กค์์ ํ์ฑํ |
| โrollout-disable | boolean | ์ค์ ๋ ๋กค์์ ๋นํ์ฑํ |
| โrollout-pause | boolean | ์ ํ๋ ๊ธฐ๊ธฐ ๋กค์์ ๋ ธ์ถ์ ์ค๋จํ์ง ์๊ณ ๋กค์์ ์ค๋จ |
| โrollout-resume | boolean | ์ค๋จ๋ ๋กค์์ ์ฌ๊ฐ |
| โrollout-rollback | boolean | ๋กค์์ ์ํ๋ฅผ ์ด๊ธฐํํ๊ณ ๊ธฐ๊ธฐ๋ค์ ์์ ์ํ๋ก ๋๋๋ ค์ค |
| โrollout-promote | boolean | ๋กค์์ ๋์์ ์์ ์ํ๋ก ์ ํํ๊ณ ๋กค์์ ์ํ ์ด๊ธฐํ |
| โrollout-cache-ttl-seconds | string | Cloudflare ๋กค์์ ๊ฒฐ์ ์บ์ TTL (์ด) |
| โauto-pause-enabled | boolean | ๋กค์์ ์๋ ์ค๋จ ์ ์ฑ ํ์ฑํ |
| โauto-pause-disabled | boolean | ๋กค์์ ์๋ ์ค๋จ ์ ์ฑ ๋นํ์ฑํ |
| โauto-pause-window-minutes | string | ๋กค์์ ์๋ ์ค๋จ ์ ์ฑ ์๋์ฐ ์๊ฐ |
| โauto-pause-failure-rate-bps | string | ์คํจ์จ ๊ธฐ์ค์ |
| โauto-pause-confidence | string | 0์์ 1 ์ฌ์ด์ ์ ๋ขฐ๋ |
| โauto-pause-min-attempts | string | ์ค์น ๋ฐ ์คํจ ์๋ ํ์ ์ต์์น |
| ---auto-pause-min-failures | string | ์๋ ์ผ์์ ์ง ์ ์ต์ ์คํจ ํ์ |
| ---auto-pause-action | string | ์๋ ์ผ์์ ์ง ๋์: ์ผ์์ ์ง, ๋กค๋ฐฑ, ๋๋ ์๋ฆผ |
| ---auto-pause-cooldown-minutes | string | ์๋ ์ผ์์ ์ง ์ฌ์๋ ๋๊ธฐ ์๊ฐ |
| ---dev | boolean | ๊ฐ๋ฐ ์ฅ์น๋ก ์ ๋ฐ์ดํธ ๋ณด๋ด๊ธฐ ํ์ฉ |
| ---no-dev | boolean | ๊ฐ๋ฐ ์ฅ์น๋ก ์ ๋ฐ์ดํธ ๋ณด๋ด๊ธฐ ๊ธ์ง |
| ---prod | boolean | ์ด์ ์ฅ์น๋ก ์ ๋ฐ์ดํธ ๋ณด๋ด๊ธฐ ํ์ฉ |
| โno-prod | boolean | ์์ฐ ๊ธฐ๊ธฐ์๊ฒ ์ ๋ฐ์ดํธ ์ ์ก ์ฐจ๋จ |
| โemulator | boolean | ์๋ฎฌ๋ ์ดํฐ ๊ธฐ๊ธฐ์๊ฒ ์ ๋ฐ์ดํธ ์ ์ก ํ์ฉ |
| โno-emulator | boolean | ์๋ฎฌ๋ ์ดํฐ ๊ธฐ๊ธฐ์๊ฒ ์ ๋ฐ์ดํธ ์ ์ก ์ฐจ๋จ |
| โdevice | boolean | ๋ฌผ๋ฆฌ ๊ธฐ๊ธฐ์๊ฒ ์ ๋ฐ์ดํธ ์ ์ก ํ์ฉ |
| โno-device | boolean | ๋ฌผ๋ฆฌ ๊ธฐ๊ธฐ์๊ฒ ์ ๋ฐ์ดํธ ์ ์ก ์ฐจ๋จ |
| โqr-preview | boolean | ์ ๋ฐ์ดํธ ํ ์ฑ๋ ๋ฏธ๋ฆฌ๋ณด๊ธฐ์ ๋ํ ํฐ๋ฏธ๋ QR code ์ถ๋ ฅ |
| __CAPGO_KEEP_0__ | boolean | __CAPGO_KEEP_0__ |
| __CAPGO_KEEP_0__ | string | __CAPGO_KEEP_0__ |
| __CAPGO_KEEP_0__ | boolean | __CAPGO_KEEP_0__ |
| __CAPGO_KEEP_0__ | string | Capgo |
| __CAPGO_KEEP_0__ | string | __CAPGO_KEEP_0__ |