This article is about Codeship Pro.

jet encrypt

You'll need about one minute to read this article.

Description

Encrypt a file using an AES Key.

Usage

jet encrypt INPUT_PATH OUTPUT_PATH [flags]

Flags

Name, shorthand Default Description
--key-path codeship.aes The key path for encrypting secure environment variables.

Extended description

The jet encrypt function will take any file as input, and output an encrypted file using the key found in your Project Settings.

If you encounter the error No AES key provided, and you have already downloaded the key, verify that the file is named codeship.aes and in the same directory where you are executing jet encrypt, or you are passing in the correct key-path value.

Common Encrypted Files

Examples

Default Usage

$ jet encrypt env env.encrypted

This will create env.encrypted from the env file using the key in the codeship.aes file.

encrypt with key-path

$ jet encrypt env env.encrypted --key-path PATH_TO_AES_KEY

This will create env.encrypted from the env file using the key located at PATH_TO_AES_KEY.