TouchFS Mount Command

The touchfs mount command creates and mounts a TouchFS filesystem at a specified directory.

Usage

touchfs mount [options] [mountpoint]

If no mountpoint is provided, lists currently mounted TouchFS filesystems.

Options

Common Use Cases

Basic Empty Filesystem

# Mount with default settings
touchfs mount workspace

Content Generation with Prompt

# Mount with specific content generation style
touchfs mount workspace -p "Write modern, well-documented Python code with type hints"

Initial Project Structure

# Generate structure and set content style
touchfs mount workspace \
  -F "Create a React Native mobile app structure" \
  -p "Write TypeScript React Native components with clean architecture"

Development with Overlay

# Mount on existing project to extend it
touchfs mount workspace --overlay ./my-project

# Now you can generate new files that complement existing ones:
touch workspace/tests/test_api.py  # Generates test based on existing api.py
touch workspace/docs/api.md        # Generates docs based on implementation

Debugging

# Run in foreground with debug output
touchfs mount workspace -f

# Check logs at /var/log/touchfs/touchfs.log
tail -f /var/log/touchfs/touchfs.log

Examples with Different Project Types

React Frontend

touchfs mount workspace \
  -F "Create a modern React frontend project with TypeScript" \
  -p "Write clean, maintainable React components"

FastAPI Backend

touchfs mount workspace \
  -F "Create a FastAPI backend with SQLAlchemy and tests" \
  -p "Write async Python with type hints and docstrings"

Mobile App

touchfs mount workspace \
  -F "Create a React Native app with navigation and state management" \
  -p "Write modern mobile components with TypeScript"

Documentation Site

touchfs mount workspace \
  -F "Create a technical documentation site structure" \
  -p "Write clear, comprehensive documentation with examples"

See Also