Installation
To install the Skald CLI, run the following command:Usage
After installation, you can use theskald command:
Commands
Authentication
skald auth- Authenticate with your project API key- Prompts for API key and stores it securely in
~/.skald/config(macOS/Linux) or%USERPROFILE%\.skald\config(Windows) - Required: Must run this command before using any other commands
- Prompts for API key and stores it securely in
Documentation Commands
skald docs init- Initialize documentation structure with example outline.yml--config-path, -c <path>- Path to configuration directory (defaults to current directory)
skald docs generate- Generate documentation (requires authentication)--config-path, -c <path>- Path to configuration file (defaults to current directory)--output-path, -o <path>- Path to output directory (defaults to current directory)- Required files:
<config-path>/.skald/outline.yml- Outline configuration file (YAML format)
- Optional files:
<config-path>/.skald/rules.md- Custom rules for documentation generation
Memo Commands
skald memo add- Add a new memo from a file (requires authentication)--title, -t <title>- Title of the memo (required)--file-path, -f <path>- Path to the file containing memo content (required)--tags <tags>- Comma-separated tags for the memo--source <source>- Source of the memo (defaults to “cli”)--reference-id <id>- External reference ID for the memo
skald memo write- Write a new memo using vi editor (requires authentication)--tags <tags>- Comma-separated tags for the memo--source <source>- Source of the memo (defaults to “cli”)--reference-id <id>- External reference ID for the memo
Chat Commands
skald chat ask <question>- Ask a question to your knowledge base (requires authentication)- Streams the response in real-time to the console
Expected Directory Structure for Documentation
When runningskald docs generate, your project should have:
YAML Outline Format
Theoutline.yml file uses the _docs key to define documentation files: