$ initiat commands
$ initiat env unset
Clear the currently active environment and reload direnv
Back to Docs

Usage

      initiat env unset
      
    

Examples

Clear the active environment

      initiat env unset
      
    

How it works

  1. →

    Checks if environment management is initialized

  2. →

    Verifies there's an active environment to unset

  3. →

    Removes the active environment tracking (symlink or file)

  4. →

    Runs direnv reload to clear environment variables

  5. →

    Shows confirmation of the unset operation

Output

      🔄 Unsetting active environment...
🧹 Clearing environment tracking...
🔄 Running direnv reload...
✅ Environment unset successfully!

💡 No environment is currently active
💡 Switch to an environment with: initiat env switch <env>

      
    
© 2025 Initiat Technologies. All rights reserved.