Command Reference
This reference lists all commands available in the AIGNE WebSmith CLI, including their aliases, parameters, and usage examples.
The standard syntax for CLI operations is as follows:
Run Command
aigne web <command> [subcommand] [parameters]Executing aigne web without a command initiates interactive mode.
Main Commands#
The following table summarizes the primary commands. Each command is detailed further in the sections below.
Command | Aliases | Description |
|---|---|---|
| Generates a complete website based on a configuration file. | |
| Publishes the generated website to a Pages Kit instance. | |
| Modifies existing website content based on user feedback. | |
Translates website pages into different languages. | ||
Manages website visual themes, including generation and application. | ||
| Manages the component library used to build the website. | |
Starts interactive mode for website management (default). | ||
Manages saved user preferences learned from feedback. | ||
Displays a log of previous updates made to the website. | ||
Removes generated files, workspace data, or configuration settings. |
generate#
The generate command orchestrates the creation of a complete website, from planning the site structure to generating page content and templates based on a specified configuration file.
Aliases: gen, g
Usage:
Generate
aigne web generateParameters:
publish#
The publish command uploads the generated website files to a Pages Kit instance. It manages the batch upload process and provides status monitoring.
Aliases: pub, p
Usage:
Publish
aigne web publish --appUrl "https://example.com"Parameters:
update#
The update command modifies the content of an existing website based on user-provided feedback. It can be used to refine text, add or remove sections, or alter page structures.
Alias: up
Usage:
Update
aigne web update --pages "/about" --feedback "Add a mission statement."Parameters:
translate#
The translate command translates the content of existing website pages into one or more specified languages.
Usage:
Translate
aigne web translate --pages "/home" --langs "fr,de,es"Parameters:
theme#
The theme command manages website visual themes, including their generation and application.
Subcommands#
generate Generates a new theme based on the website's design and user suggestions.
Alias: gen
Usage:
Theme Generate
aigne web theme generate --name "CustomTheme"apply Applies a previously generated theme to the website.
Alias: a
Usage:
Apply Theme
aigne web theme applyThis subcommand does not have any specific parameters. It applies the currently configured theme.
component#
The component command manages the component library for the website.
Alias: comp
Subcommands#
pull Pulls components from a specified URL to update the local component library.
Usage:
Component Pull
aigne web component pull --url "https://your-pages-kit/api/..."list Lists the components available in the current library.
Aliases: ls, l
Usage:
Component List
aigne web component listThis subcommand does not take any parameters.
chat#
The chat command starts an interactive session for generating, updating, and managing the website conversationally. This is the default command executed when aigne web is run without specifying another command.
Usage:
Command
aigne webThis command does not take any parameters.
prefs#
The prefs command manages user preferences that WebSmith learns from feedback to customize AI behavior.
Subcommands#
list Lists all saved user preferences.
Alias: ls
Usage:
List Preferences
aigne web prefs listThis subcommand does not take any parameters.
remove Removes one or more specified preferences.
Alias: rm
Usage:
Prefs Remove
aigne web prefs remove --id "pref_abc123"toggle Toggles the active status of one or more preferences.
Alias: t
Usage:
Prefs Toggle
aigne web prefs toggle --id "pref_abc123"history#
The history command is used to view the update history of the website content and structure.
Subcommands#
view Displays the update history in a compact, log-style format. Each entry includes a hash, date, operation, and the associated feedback.
Aliases: log, list
Usage:
History View
aigne web history viewThis subcommand does not take any parameters.
clear#
The clear command removes generated files, workspace data, or configuration settings from the project directory.
Usage:
Clear
aigne web clear --targets "generatedPages" "websiteConfig"Parameters:
Summary#
This reference guide has detailed the primary commands and parameters for the AIGNE WebSmith CLI. For task-oriented instructions, refer to the guides in the Guides section of the documentation.