tofuhub
v0.0.14
Published
Thin shim for @tofuhub/cli
Readme
🥢 Tofuhub CLI
Tofuhub helps you deploy and manage open-source platforms with one command.
📦 Installation
npm install -g tofuhub
# or just run with npx
npx tofuhub <command>🧭 Commands
🔐 login
Authenticate your CLI session via browser.
tofuhub loginThis will open a browser window where you can authenticate. Your credentials are stored locally.
🚪 logout
Clear your local session.
tofuhub logoutThis removes the stored authentication token from your machine.
🧑💼 whoami
Check your current session.
tofuhub whoamiDisplays the currently logged-in user.
🚀 deploy <package-name>
Deploy a package to your cloud provider.
tofuhub deploy chirpstackTofuhub will:
- Ask for required variables (e.g. API tokens, passwords)
- Deploy infrastructure using OpenTofu
- Show logs and progress in real time
💥 destroy
Tear down an existing deployment in the current folder.
tofuhub destroyTofuhub will:
- Use saved state + variables
- Destroy your cloud resources
- Clean up local deployment files
💥 init
Initialise a tofuhub package
tofuhub initTofuhub will:
- Create a tofuhub.json file
- Create a .gitignore file
📤 publish
Publish your own package to Tofuhub.
tofuhub publishThis will:
- Prompt for metadata (name, description, etc.)
- Package your
.tffiles, README, and variables - Push them to the Tofuhub registry
You must be logged in to publish.
🛠️ Requirements
- Node.js 18+
- Git (for publish)
- A supported cloud provider (e.g., DigitalOcean)
🌱 Want to contribute?
Create a deployable open-source stack? Join the community and help grow the ecosystem.
