跳转到内容

🔐 key

此内容尚不支持你的语言。

🔐 Manage encryption keys for secure bundle distribution in Capgo Cloud, supporting end-to-end encryption with RSA and AES combination.

🔹 Save

Terminal window
npx @capgo/cli@latest key save

💾 Save the public key in the Capacitor config, useful for CI environments. Recommended not to commit the key for security.

Example:

Terminal window
npx @capgo/cli@latest key save --key ./path/to/key.pub

Options:

ParamTypeDescription
-f,stringForce generate a new one
—keystringKey path to save in Capacitor config
—key-datastringKey data to save in Capacitor config

🔨 Create

Terminal window
npx @capgo/cli@latest key create

🔨 Create RSA key pair for end-to-end encryption. Creates .capgo_key_v2 (private) and .capgo_key_v2.pub (public) in project root. Public key is saved to capacitor.config for mobile app decryption. NEVER commit the private key - store it securely!

Example:

Terminal window
npx @capgo/cli@latest key create

Options:

ParamTypeDescription
-f,stringForce generate a new one

🗑️ Delete_old

Terminal window
npx @capgo/cli@latest key delete_old

🧹 Delete the old encryption key from the Capacitor config to ensure only the current key is used.

Example:

Terminal window
npx @capgo/cli@latest key delete_old