docs/tutorials/migrate-from-dotfiles-and-notes
Intermediate10 min

Migrate from dotfiles and notes

You already have commands saved somewhere. Let's move them to recall.

01Import from a shell script

Create a file my-commands.sh with comments as names:

# git-log# tags: gitgit log --oneline -10# docker-node# tags: docker,nodedocker run -it --rm -v $(pwd):/app node:20 bash
recall import my-commands.sh✔ Imported: git-log✔ Imported: docker-node 2 imported 0 skipped 0 failed

02Import from JSON

[ { "command": "git log --oneline -10", "name": "git-log", "tags": ["git"] }, { "command": "docker ps -a", "name": "docker-ps", "tags": ["docker"] }]
recall import commands.json

03Migrate from .bashrc aliases

# Your .bashrc might have:alias gs='git status'alias glog='git log --oneline -10'
recall save "git status" --name git-status --tags gitrecall alias set gs git-status# Now "recall run gs" works just like your old alias

04Save gradually as you use them

# Just ran a useful command? Save it immediately.recall save "kubectl get pods --all-namespaces" --name kube-pods --tags k8s

After a week of natural use, you'll have your most valuable commands saved.

Backup your vault

recall export --format json --output backup.jsonrecall export --format sh --output backup.sh
// what's next
Turn your commands into templates with variables Share your command library with your team