Skip to content

Silk CLI Usage Guide 🚀 ​

Basic Commands ​

Initialization ​

bash
# Initialize a new project in current directory
silk init
bash
# Initialize a new project in a folder
silk create [folder]

Task Execution ​

Single Task ​

bash
# Run a single AI-powered task
silk run "Create a new React component"

Interactive Chat Mode ​

bash
# Start an interactive AI assistant session
silk chat

Configuration ​

API Key Setup ​

bash
# Login with your API key
silk login [api-key]

Configuration Options ​

OptionCommandDescription
apiKeysilk loginSet remote LLM service API key
modelsilk config model gpt-3.5-turboSet default language model
temperaturesilk config temperature 0.5Set response creativity

Config File Locations ​

  • ~/.config/silk/config.mjs
  • .silk/config.mjs in project root
  • Custom config with --config <filename>

File Management Tools ​

Create Files ​

bash
# Create a new file
silk create index.html

Modify Files ​

bash
# Modify an existing file
silk modify README.md "Add new content"

Pack and Parse ​

bash
# Pack project files into markdown
silk pack project.md

# Parse markdown back into files
silk parse project.md

Advanced Usage ​

Custom Tools ​

  • Define custom tools in config.mjs
  • Extend functionality with plugins

Workflow Automation ​

  • Use silk each for batch processing
  • Create project templates
  • Automate repetitive tasks

Troubleshooting ​

  • Ensure Node.js and npm are up to date
  • Check network connectivity
  • Verify API key and configuration

Support ​

For issues or questions:

Generated with ❤️ by Silk AI Assistant