You'll need about one minute to read this article.
Decrypt a file using an AES key
jet decrypt /path/to/input_encrypted_file /path/to/output_file [flags]
Name, shorthand | Default | Description |
---|---|---|
--key-path | codeship.aes | The key path for encrypting secure environment variables. |
The jet decrypt
function will take any encrypted file as input, and output a decrypted 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 decrypt
, or you are passing in the correct key-path
value.
$ jet decrypt env.encrypted env
This will create env
from the env.encrypted
file using the key in the codeship.aes
file.
$ jet decrypt env.encrypted env --key-path PATH_TO_AES_KEY
This will create env
from the env.encrypted
file using the key located at PATH_TO_AES_KEY
.
You can post on Stack Overflow using the tag #codeship
or contact our Helpdesk.
We also have a couple of code examples and sample projects available.