oseda-cli

Crates.iooseda-cli
lib.rsoseda-cli
version2.2.2
created_at2025-06-29 19:34:05.839135+00
updated_at2026-01-25 17:26:18.55495+00
descriptionOSEDA project scaffolding
homepagehttps://oseda.net
repositoryhttps://github.com/oseda-dev/oseda-cli
max_upload_size
id1731051
size193,564
Ean Hatfield (ReeseHatfield)

documentation

README

OSEDA CLI

The CLI tool designed to help you scaffold, manage, and deploy your OSEDA projects. It simplifies common development workflows, letting you focus on building your own presentations, ready to deploy to oseda.net.


Installation

To install oseda-cli, make sure you have Cargo and NPM installed.

Prefered installation

curl -sL https://raw.githubusercontent.com/oseda-dev/oseda-cli/refs/heads/main/scripts/curl-install.sh | $SHELL

Install from crates.io

cargo install oseda-cli

Then, make sure ~/.cargo/bin" is in your path

Zsh

echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc

Bash

echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc

Fish

fish_add_path $HOME/.cargo/bin


Usage

The oseda CLI provides several commands to manage your projects. See our usage guide for more in depth usage.


Project Structure

OSEDA projects are structured like this:

oseda-project/
├── oseda-config.json     # project metadata
├── slides/               # markdown files
├── src/                  # reveal.js entrypoint
├── css/                  # custom styling
├── index.html            # reveal.js HTML wrapper
├── vite.config.js        # Vite build setup
└── package.json          # npm dependencies

Your oseda-config.json must match the project folder name and contain correct git author info to pass checks.


Requirements

  • Linux/macOS (uses lsof, kill, serve, etc.)
  • Node.js + npm
  • Git (with user.name and user.email configured)
  • Internet access for npm and git commands

Error Handling

If any command encounters an error, the CLI prints a descriptive message and exits with code 1.

Example (Init Error):

Could not initialize project with error: DirectoryNameMismatch("Project name does not match directory")


Contributing

Feel free to submit a PR to this, or any other Oseda repository.


License

This project is licensed under the MIT License.


Author

Reese Hatfield

Commit count: 141

cargo fmt