Encrypted project environment commands
pinset env import
Import an explicitly named plaintext dotenv file into one encrypted profile.
View source on GitHub ↗| Field | Description |
|---|---|
| Purpose | Import an explicitly named plaintext dotenv file into one encrypted profile. |
| Syntax and arguments | pinset env import --from <path> --profile <name> [--cwd <path>]. |
| Modifies state | Yes. Matching names replace profile values; other existing names remain. The source file is not modified or deleted. |
| Example | pinset env import --from .env --profile development |
| JSON | No. |
| Key errors | Invalid UTF-8/assignment/name, case-insensitive duplicate, export, interpolation, command substitution, shell expression, unsupported escape, unmatched quote, missing identity, or encryption failure. |
The portable subset accepts blank lines, # comments, empty values, unquoted values, single or double quotes, quoted multiline values, and double-quoted \n, \r, \t, \\, and \" escapes. It never executes input. After verifying the import, remove or protect the plaintext source yourself.
/en/docs/commands/env-importPinset 2.1