๐ฑ ์ฑ
์ด ํ๋ฌ๊ทธ์ธ์ ์ค์น ๋จ๊ณ์ ์ ์ฒด markdown ๊ฐ์ด๋๊ฐ ํฌํจ๋ ์ค์ ํ๋กฌํํธ๋ฅผ ๋ณต์ฌํ์ธ์.
๐ฑ Capgo Cloud์์ Capgo ์ฑ ์ค์ ๋ฐ ๊ตฌ์ฑ์ ๊ด๋ฆฌํ์ธ์.
โ ์ถ๊ฐ
โ โ Addโ ์น์ Alias: a
npx @capgo/cli@latest app addโ com.test.app ํ์์ ๊ณ ์ ์ฑ ID๋ฅผ ์ฌ์ฉํ์ฌ Capgo Cloud์ ์ ์ฑ์ ์ถ๊ฐํฉ๋๋ค. ์ต์ ์ ์ง์ ํ์ง ์์ผ๋ฉด config ๊ฐ์ ๊ธฐ๋ฐ์ผ๋ก ์๋ ์ค์ ๋ฉ๋๋ค.
Example:
npx @capgo/cli@latest app add com.example.app --name "My App" --icon ./icon.png์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -n | string | Capgo Cloud์ ํ์๋ ์ฑ ์ด๋ฆ |
| -i | string | Capgo Cloud์ ํ์๋ ์ฑ ์์ด์ฝ ๊ฒฝ๋ก |
| -a | string | ๊ณ์ ์ฐ๊ฒฐ์ ์ํ API ํค |
| โsupa-host | string | ์ฌ์ฉ์ ์ง์ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ฌ์ฉ์ ์ง์ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
๐๏ธ ์ญ์
โ ๐๏ธ Deleteโ ์น์ npx @capgo/cli@latest app delete๐๏ธ Capgo Cloud์์ ์ฑ์ ์ญ์ ํฉ๋๋ค. ํน์ ๋ฒ์ ์ ์ง์ ํ์ฌ ํด๋น bundle๋ง ์ญ์ ํ ์๋ ์์ต๋๋ค.
์์:
npx @capgo/cli@latest app delete com.example.app์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | ๊ณ์ ์ฐ๊ฒฐ์ ์ํ API key |
| โsupa-host | string | ์ปค์คํ Supabase host URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
๐ ๋ชฉ๋ก
โ ๐ Listโ ์น์ Alias: l
npx @capgo/cli@latest app list๐ Capgo Cloud์ ๋ฑ๋ก๋ ๋ชจ๋ ์ฑ ๋ชฉ๋ก์ ํ์ํฉ๋๋ค.
Example:
npx @capgo/cli@latest app list์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | ๊ณ์ ์ฐ๊ฒฐ์ ์ํ API ํค |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon ํค (์ ํ ํธ์คํ ์ฉ) |
๐ ๋๋ฒ๊ทธ
โ ๐ Debugโ ์น์ npx @capgo/cli@latest app debug๐ ์ฑ ๋๋ฒ๊น ์ ์ํด Capgo Cloud์์ live update ์ด๋ฒคํธ๋ฅผ ์์ ํฉ๋๋ค. ์์ธ ์ง๋จ์ ์ํด ํน์ ๊ธฐ๊ธฐ๋ฅผ ๋์์ผ๋ก ์ง์ ํ ์ ์์ต๋๋ค.
์์:
npx @capgo/cli@latest app debug com.example.app --device DEVICE_ID์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -a | string | ๊ณ์ ์ฐ๊ฒฐ์ ์ํ API key |
| -d | string | ๋๋ฒ๊น ํ ํน์ ๋๋ฐ์ด์ค ID |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |
โ๏ธ ์ค์
โ โ๏ธ Settingโ ์น์ npx @capgo/cli@latest app settingโ๏ธ Capacitor ์ค์ ์ ํ๋ก๊ทธ๋๋ฐ ๋ฐฉ์์ผ๋ก ์์ ํฉ๋๋ค. โstring ๋๋ โbool ํ๋๊ทธ๋ฅผ ์ฌ์ฉํ์ฌ ์ค์ ๊ฒฝ๋ก(์: plugins.CapacitorUpdater.defaultChannel)๋ฅผ ์ง์ ํ์ธ์.
์์:
npx @capgo/cli@latest app setting plugins.CapacitorUpdater.defaultChannel --string "Production"์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| โbool | string | ๋ถ๋ฆฌ์ธ(boolean) ํ์ ์ผ๋ก ์ค์ ์ ์์ ํ ๋ ์ฌ์ฉํ๋ ๊ฐ์ ๋๋ค. ์: โbool true |
| โstring | string | ๋ฌธ์์ด(string) ํ์ ์ผ๋ก ์ค์ ์ ์์ ํ ๋ ์ฌ์ฉํ๋ ๊ฐ์ ๋๋ค. ์: โstring โProductionโ |
โ๏ธ ์ค์
โ โ๏ธ Setโ ์น์ Alias: s
npx @capgo/cli@latest app setโ๏ธ Capgo Cloud์ ์๋ ๊ธฐ์กด ์ฑ์ ์ด๋ฆ, ์์ด์ฝ, ๋ฒ๋ค ๋ณด๊ด ๊ธฐ๊ฐ ๋ฑ์ ์ค์ ์ ๋ณ๊ฒฝํฉ๋๋ค. ๋ณด๊ด ๊ธฐ๊ฐ์ 0์ผ๋ก ์ค์ ํ๋ฉด ๋ฌด์ ํ์ผ๋ก ์ ์ฅ๋ฉ๋๋ค.
Example:
npx @capgo/cli@latest app set com.example.app --name "Updated App" --retention 30์ต์ :
| ํ๋ผ๋ฏธํฐ | ํ์ | ์ค๋ช |
|---|---|---|
| -n | string | Capgo Cloud์ ํ์๋ ์ฑ ์ด๋ฆ |
| -i | string | Capgo Cloud ์ฑ ์์ด์ฝ์ผ๋ก ์ฌ์ฉํ ๋ก์ปฌ ์ด๋ฏธ์ง ํ์ผ ๊ฒฝ๋ก (png, jpg, webp, svg) |
| -a | string | ๊ณ์ ์ฐ๊ฒฐ์ ์ํ API ํค |
| -r | string | ์ด์ bundle ๋ณด๊ด ๊ธฐ๊ฐ (0 = ๋ฌด์ ํ, ๊ธฐ๋ณธ๊ฐ: 0) |
| โexpose-metadata | string | plugin์ bundle metadata(link ๋ฐ comment) ๋ ธ์ถ (true/false, ๊ธฐ๋ณธ๊ฐ: false) |
| โpreview | boolean | ์ด app์ bundle ๋ฐ channel preview QR ์ฝ๋ ํ์ฑํ |
| โno-preview | boolean | ์ด app์ bundle ๋ฐ channel preview QR ์ฝ๋ ๋นํ์ฑํ |
| โallow-device-custom-id | boolean | ๊ธฐ๊ธฐ์์ ์ด app์ ๋ํ ์ปค์คํ device ID ์ค์ ํ์ฉ |
| โno-allow-device-custom-id | boolean | ์ด app์ ๋ํ ์ปค์คํ device ID ์ค์ ๋นํ์ฉ |
| โblock-provider-infra-requests | boolean | ์ด ์ฑ์ provider infrastructure ์์ฒญ์ ์ฐจ๋จํฉ๋๋ค |
| โno-block-provider-infra-requests | boolean | ์ด ์ฑ์ provider infrastructure ์์ฒญ์ ํ์ฉํฉ๋๋ค |
| โbuild-timeout-minutes | string | Native Build ํ์์์(๋ถ, 5-360, ๊ธฐ๋ณธ๊ฐ: 15) |
| โios-store-url | string | ์ด ์ฑ์ iOS App Store URL |
| โandroid-store-url | string | ์ด ์ฑ์ Google Play Store URL |
| โdefault-upload-channel | string | ์ด ์ฑ์ ๊ธฐ๋ณธ upload channel ์ด๋ฆ |
| โdefault-download-channel | string | ์ด ์ฑ์ ๊ธฐ๋ณธ ๋ค์ด๋ก๋ ์ฑ๋ ์ด๋ฆ (์ฑ๋ public=true ์ค์ ) |
| โdisable-download-channels | boolean | ์ด ์ฑ์ Capgo ๋ค์ด๋ก๋ ์ฑ๋ ๋นํ์ฑํ (๋ชจ๋ ์ฑ๋ public=false ์ค์ ) |
| โsupa-host | string | ์ปค์คํ Supabase ํธ์คํธ URL (์ ํ ํธ์คํ ๋๋ Capgo ๊ฐ๋ฐ์ฉ) |
| โsupa-anon | string | ์ปค์คํ Supabase anon key (์ ํ ํธ์คํ ์ฉ) |