Commands
  • About
  • Software Development
    • Glossary
    • System Design
      • CAP Theorem
      • Data Migration
      • EAV Model
      • ETL Process
      • Event Sourcing
      • Outbox Pattern
      • SOLID Principles
    • Standards
      • Character Encoding
      • Twirp
    • Elixir
      • IEx
      • Mix
      • Libraries
      • Code Snippets
    • Node.js
      • TypeScript
  • Commands
    • Bookmarks
    • AWS
      • Athena
      • ECS
    • Docker
      • Manage Images
      • Manage Containers
    • File System
      • Grep
      • Search Files
      • Miscellaneous
    • Git
      • Setup New Project
      • Manage Remotes
      • Release Project
    • GPG
    • Kafka
      • Quick Start
    • Kubernetes
    • OpenShift
      • Manage Roles and Bindings
    • PostgreSQL
    • SSL / TLS
      • Common OpenSSL Commands
      • Create Self-signed Certificate
      • Java Truststore and Keystore
    • SSH
      • Key Management
      • Port Forwarding
    • YUM
      • List Repositories
      • List Packages
    • Miscellaneous
      • Network
Powered by GitBook
On this page
  1. Software Development
  2. Elixir

IEx

PreviousElixirNextMix

Last updated 2 years ago

The Interactive Elixir shell. It supports most of the elixir arguments.

Execute Script

iex [--sname <SHORT_NAME>] [--cookie <SECRET>] -S <SCRIPT>
  • --sname: Provide a short name to be identified by other nodes in the network.

  • --cookie: Provide a shared secret that only nodes with the same secret can communicate with each other.

  • -S: Provide the script or command to run before starting the shell.

Open A Remote Shell

iex --sname node2 [--cookie foo] --remsh node1
  • --sname node2: Start the local shell with the short name node2

  • --cookie foo: Start the local shell with the shared secret foo

  • --remsh node1: Connect to the remote node node1 and starts the shell on it

Require File

iex -r <FILE>

Recompile and Reload the Module

iex> r <MODULE>

IEx Helpers

https://hexdocs.pm/iex/IEx.Helpers.html