Skip to content

Latest commit

 

History

History
51 lines (28 loc) · 1.2 KB

1penrc.1.md

File metadata and controls

51 lines (28 loc) · 1.2 KB

1PENRC(1)

NAME

1penrc - Export 1Password secrets as environment variables.

SYNOPSIS

1penrc [--config CONFIG_FILE] [--signin BOOL] ENVIRONMENT

DESCRIPTION

1penrc is a command line utility for exporting secrets from 1Password as environment variables. This is done by declaring which secrets belong to an environment and how these are exported in a configuration file. The output from 1penrc can than be used by shell builtins like eval or source similar to op signin.

OPTIONS

--help

: Show the help message and exit

--config CONFIG_FILE

: Use alternate configuration file.

--signin BOOL

: Sign in to a 1Password account.

FILES

CONFIG_FILE

: Configuration file defining each environment. By default it's located at 1penrc/config.yml inside the user's configuration directory. See 1penrc(5) for more details.

EXAMPLES

The following shows how to export variables of an environment named example.com declared in an alternate configuration file.

source <(1penrc --config ./config.yaml example.com)

BUGS

Bugs are tracked and can be reported at https://github.com/xinau/1penrc/issues.

SEE ALSO

1penrc(5)