The Invoice Liquidity Network (ILN) CLI allows developers and freelancers to manage their identity, track reputation, and interact with the liquidity network directly from the terminal.
📋 Release History: See CHANGELOG.md for version history and breaking changes.
npm install -g @iln/cliEnsure you have Node.js v20+ installed.
Before using most commands, you need to set up a Stellar keypair.
iln wallet generate --profile defaultYou will be prompted to set a PIN to encrypt your secret key at rest.
iln wallet import --secret S... --profile my-walletiln wallet showDisplays your public key and current balances for XLM, USDC, and EURC.
iln wallet fundRequests testnet XLM from Friendbot.
Check your on-chain reputation score.
iln reputation- Show your own reputation.iln reputation --address G...- Show reputation for a specific address.--json- Output as machine-readable JSON.
Example Output:
Reputation Profile for G...
--------------------------------------------------
Score: 75
Paid: 12
Defaulted: 1
Submitted: 15
Decay: N/A
--------------------------------------------------
Manage your identity and funds.
iln wallet generate [--profile name]- Create a new keypair.iln wallet import --secret <S...>- Import a secret key.iln wallet show- Show balances and public key.iln wallet fund- Get testnet XLM.iln wallet list- List all saved profiles.
Configure CLI defaults.
iln config set network <testnet|mainnet>iln config set rpcUrl <url>
Export invoices to the network.
iln export <file.json>
Most commands support the --json flag for integration into CI/CD pipelines or custom scripts.
Example:
SCORE=$(iln reputation --address G... --json | jq '.score')
if [ "$SCORE" -lt 40 ]; then
echo "Reputation too low!"
exit 1
fi- Invalid PIN: Ensure you are using the PIN set during
wallet generateorwallet import. - Network Error: Check your internet connection or the
rpcUrlin your config. - Profile Not Found: Run
iln wallet listto see available profiles oriln wallet generateto create one.
Enable tab-completion for a better experience.
- Bash:
source <(iln completion bash) - Zsh:
echo 'source <(iln completion zsh)' >> ~/.zshrc - Fish:
iln completion fish > ~/.config/fish/completions/iln.fish