Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
misc: added script for cli-tests env setup
Sheen Capadngan505ccdf8eaa1
diff --git a/cli/.gitignore b/cli/.gitignoreindex 5fa3e39c55..8eb54d72b9 100644--- a/cli/.gitignore+++ b/cli/.gitignore@@ -1,3 +1,4 @@.infisical.jsondist/agent-config.test.yaml+.test.env\ No newline at end of filediff --git a/cli/scripts/export_test_env.sh b/cli/scripts/export_test_env.shnew file mode 100644index 0000000000..08b5ad41b1--- /dev/null+++ b/cli/scripts/export_test_env.sh@@ -0,0 +1,22 @@+#!/bin/bash++TEST_ENV_FILE=".test.env"++# Check if the .env file exists+if [ ! -f "$TEST_ENV_FILE" ]; then+ echo "$TEST_ENV_FILE does not exist."+ exit 1+fi++# Export the variables+while IFS='=' read -r key value+do+ # Skip empty lines and lines starting with #+ if [[ -z "$key" || "$key" =~ ^\# ]]; then+ continue+ fi+ # Use eval to correctly handle values with spaces+ eval export $key='$value'+done < "$TEST_ENV_FILE"++echo "Test environment variables set."