Overview
Launch an interactive shell (REPL) that allows you to run CoinPaprika CLI commands without typingcoinpaprika-cli prefix each time. Perfect for exploration and rapid testing.
Usage
Features
No Prefix Required
Type commands directly:
ticker btc-bitcoin instead of coinpaprika-cli ticker btc-bitcoinCommand History
Use up/down arrows to navigate previous commands
Persistent Session
API key and settings preserved across commands
Quick Exit
Type
exit, quit, or press Ctrl+D to leaveExamples
Start the shell
Run commands interactively
Using flags and options
Shell Commands
Exit the interactive shell
Exit the interactive shell (alias for
exit)Exit the interactive shell (EOF signal)
Interrupt current command (shell remains open)
Navigate command history
How It Works
- Launch shell:
coinpaprika-cli shell - Prompt appears:
coinpaprika> - Type commands: Omit the
coinpaprika-cliprefix - Commands execute: Results displayed immediately
- Repeat: Run as many commands as needed
- Exit: Type
exitor press Ctrl+D
Use Cases
Exploration and Learning
Rapid Testing
Data Comparison
Development Workflow
Advanced Features
Command History
The shell remembers commands within the session:Quoting Arguments
Use quotes for arguments with spaces:Error Handling
Errors don’t exit the shell:Keyboard Shortcuts
| Shortcut | Action |
|---|---|
↑ | Previous command |
↓ | Next command |
← → | Move cursor |
Ctrl+A | Beginning of line |
Ctrl+E | End of line |
Ctrl+C | Interrupt (doesn’t exit) |
Ctrl+D | Exit shell |
Ctrl+L | Clear screen (if supported) |
Shell vs Direct Commands
Configuration
The shell respects all configuration settings:- API key: Uses key from config file or environment
- Global flags: Can be specified per-command
- Output format: Defaults to
table, override with--output json
Limitations
Exit Methods
- exit command
- quit command
- Ctrl+D
Related Commands
commands
View available commands
config
Configure API key for shell sessions
Notes
- History is only saved for the current session (not persistent)
- The shell is built with rustyline (readline-like library)
- All commands work the same as the direct CLI
- Global flags like
--outputand--api-keywork per-command - Perfect for interactive tutorials and demonstrations