Unable to decrypt All vault file

When trying to do trellis vault encrypt all I get:

Error: all is not a valid environment, valid options are [development production remote_development staging]

When trying to decrypt all trellis vault decrypt all I get:

ERROR! input is not vault encrypted data. /Users/claudiouey/Desktop/site/asdf/trellis/group_vars/all/vault.yml is not a vault encrypted file for /Users/claudiouey/Desktop/asdf/mysite/trellis/group_vars/all/vault.yml

How can I encrypt and decrypt the vault.yml file in group_vars/all ?

Looks like there might be a bug with decrypt, but you can do:

trellis vault encrypt --files=group_vars/all/vault.yml

trellis vault decrypt --files=group_vars/all/vault.yml all

Did you run trellis vault encrypt --help and trellis vault decrypt --help? There’s usage examples for both those use cases.

Encrypt all vault files:

  $ trellis vault encrypt
Decrypt production vault files:

  $ trellis vault decrypt production

decrypt requires an environment (encrypt doesn’t) but both will include group_vars/all/vault.yml.