Installation
Install TOSE CLI on your system.
Prerequisites
- Node.js 14.0.0 or higher
- npm, yarn, pnpm, or bun
- Git (for deployment features)
- A TOSE account with an API key
Check Node.js Version
bash
node --version
# v18.0.0 or higher recommendedInstall via npm (Recommended)
bash
npm install -g @tosesh/toseInstall via yarn
bash
yarn global add @tosesh/toseInstall via pnpm
bash
pnpm add -g @tosesh/toseVerify Installation
bash
$ tose --version
0.1.0bash
$ tose --help
Usage: tose [options] [command]
TOSE CLI - Deploy and manage your applications
Options:
--json Output JSON (for scripting/AI agents)
-y, --yes Skip confirmation prompts
--api-key <key> Override API key
--workspace <slug> Override workspace
--project <slug> Override project
-V, --version Output the version number
-h, --help Display help for command
Commands:
login Save API key
logout Remove credentials
whoami Show user/workspace info
init Link directory to project
use [project] Set active project
up Smart deploy
deploy [project] Deploy project
redeploy [project] Redeploy (no rebuild)
down [project] Stop deployment
restart [project] Restart pods
status [project] Show project status
logs [project] View logs
open [project] Open in browser
env Manage environment variables
domain Manage domains
db Manage databases
generate Generate Dockerfile with AI
help [command] Display help for commandLocal Installation (Per Project)
For project-specific usage:
bash
npm install @tosesh/toseUse with npx:
bash
npx tose upOr add to package.json scripts:
json
{
"scripts": {
"deploy": "tose deploy",
"status": "tose status"
}
}Getting Your API Key
- Sign up or log in at tose.sh
- Navigate to Settings > API Keys
- Click Create New API Key
- Copy the key (starts with
tose_sk_)
First-Time Setup
bash
$ tose login
? Enter your TOSE API key: tose_sk_xxxxxxxxxxxx
✓ API key verified
Default workspace: my-workspace
Logged in! API key saved to ~/.tose/config.jsonYour credentials are stored at ~/.tose/config.json and used for all future commands.
Updating
bash
npm update -g @tosesh/toseUninstalling
bash
npm uninstall -g @tosesh/tose
# Optionally remove config
rm -rf ~/.toseDevelopment Installation
For contributing to TOSE CLI:
bash
git clone https://github.com/tosesh/tose-cli.git
cd tose-cli
npm install
npm run build
npm linkTroubleshooting
Command Not Found
If tose is not found after installation:
bash
# Check npm global bin path
npm config get prefix
# Add to PATH in ~/.bashrc or ~/.zshrc
export PATH="$PATH:$(npm config get prefix)/bin"
source ~/.bashrcPermission Errors
bash
# Option 1: Use sudo
sudo npm install -g @tosesh/tose
# Option 2: Fix npm prefix (recommended)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install -g @tosesh/toseNetwork Issues
bash
npm install -g @tosesh/tose --registry=https://registry.npmjs.org/Next Steps
- Getting Started - Deploy your first application
- Commands Overview - Learn all available commands
- Configuration - Configure TOSE CLI