cargo install dotstate# Clone the repository
git clone https://github.com/serkanyersen/dotstate.git
cd dotstate
# Build and install
cargo install --path .# Add the tap (once)
brew tap serkanyersen/dotstate
# Install
brew install dotstateOr use the direct install:
brew install serkanyersen/dotstate/dotstate- Rust: Latest stable version (1.70+)
- Cargo: Comes with Rust
- Git: For cloning the repository
-
Clone the repository:
git clone https://github.com/serkanyersen/dotstate.git cd dotstate -
Build in release mode:
cargo build --release
-
Install globally (optional):
cargo install --path .This will install
dotstateto~/.cargo/bin/(make sure it's in your PATH). -
Or run directly:
./target/release/dotstate
After installation, verify it works:
dotstate --versionYou should see the version number.
If dotstate is not found after installation:
-
Check if Cargo bin directory is in PATH:
echo $PATH | grep cargo
-
Add to PATH (add to your
~/.zshrcor~/.bashrc):export PATH="$HOME/.cargo/bin:$PATH"
-
Reload your shell:
source ~/.zshrc # or ~/.bashrc
If you encounter build errors:
-
Update Rust:
rustup update stable
-
Check Rust version:
rustc --version
Should be 1.70 or later.
-
Clean and rebuild:
cargo clean cargo build --release
- Works out of the box
- No additional dependencies required
- May need to install development tools:
# Ubuntu/Debian sudo apt-get install build-essential pkg-config libssl-dev # Fedora sudo dnf install gcc openssl-devel
- Requires Visual Studio Build Tools or MinGW
- Git for Windows is recommended
- Terminal should support ANSI escape codes (Windows Terminal recommended)
After installation, see the README.md for usage instructions.
When you first run dotstate, you'll be asked to choose a setup mode:
-
Create for me (GitHub): DotState creates a repository on your GitHub account
- Requires a GitHub Personal Access Token
- Best for simple, automated setup
-
Use my own repository: Bring your own git repository
- Works with GitHub, GitLab, Bitbucket, or any git host
- Uses your existing SSH keys or git credentials
- No token required