@floomhq/cli
v0.1.4
Published
Deploy Python functions as live web apps
Downloads
192
Maintainers
Readme
@floomhq/cli
Deploy Python functions as live web apps from the terminal.
Install
npm install -g @floomhq/cliSetup
export FLOOM_URL=http://localhost:3001 # your floom server
export FLOOM_API_KEY=your-api-key # optional for OSS modeUsage
Deploy
# Deploy a Python file
floom deploy my_script.py
# Deploy with a name
floom deploy my_script.py --name "Flight Finder"
# Deploy a ZIP with requirements.txt
floom deploy project.zipRun
After deploying, run your app from the browser or use the client SDK.
Manage
floom list # List all apps
floom logs my-app # View recent run logs
floom open my-app # Open in browser
floom delete my-app # Delete an app
# Versions
floom versions my-app # List versions
floom promote my-app # Promote dev to production
floom rollback <version_id> # Rollback to a version
# API Keys (secrets)
floom secrets list my-app
floom secrets set my-app API_KEY sk-123
floom secrets delete my-app API_KEY
# Persistent storage
floom storage list my-app
floom storage get my-app counter
floom storage set my-app counter 42
# Share links
floom share create my-app
floom share list my-app
# Health check
floom doctorProject Context
After deploying, the CLI saves project context to .floom/project.json. Subsequent commands auto-detect the app ID, so you can run floom logs without specifying an app name.
License
MIT
