Launch an interactive AIScript interactive environment (REPL) where you can test AIScript code snippets and explore language features.
Create a new AIScript project with a standard directory structure.
Example:
Run the AIScript project as a web server.
Options:
--port
: Port to listen on (default: 8000)
--host
: Host to bind to (default: 0.0.0.0)
--reload
: Run in development mode with hot reloading
The aim (AIScript Manager) is a command-line tool for AIScript, similar to cargo for Rust. It provides a comprehensive set of commands to help you build, test, and deploy web applications quickly.
Generate AI applications built in AIScript from a prompt description.
This command analyzes a prompt and generates a complete AIScript application based on the description.
Example:
The generated application will include all necessary files, routes, and AI integration to build the described chatbot.
Compile an AIScript project into executable code.
Options:
--release
: Compile in release mode with optimizationsThis command validates your code and compiles it to an executable format.
Deploy an AIScript project to the aiscript.dev server.
Options:
--env
: Target environment (default: production)This command packages your application and deploys it to the AIScript cloud hosting service.
Open an interactive, Postman-like debug UI in the browser for testing your API routes.
Options:
--port
: Port to use for the debug UI (default: 8001)The debug UI automatically imports your API routes, allowing you to test endpoints with different parameters and view responses.
Format AIScript source code according to the language style guidelines.
Options:
--check
: Check if files are formatted without modifying them--all
: Format all files in the projectLint AIScript source code to identify potential problems.
Options:
--fix
: Automatically fix issues when possible--all
: Lint all files in the projectManage database schema migrations.
Apply pending migrations to update the database schema.
Options:
--steps
: Number of migrations to apply (default: all pending)Revert migrations to roll back database schema changes.
Options:
--steps
: Number of migrations to revert (default: 1)Generate mock data for development and testing.
Example:
This generates 100 mock user records based on your data models.
Run tests for an AIScript project.
Options:
--watch
: Watch for file changes and rerun tests--coverage
: Generate test coverage reportDisplay the version information for AIScript and its components.
Output example:
These commands provide a complete toolkit for AIScript development, from project creation and testing to deployment. The aim
command-line interface streamlines the development workflow, making it easy to build, test, and deploy AIScript applications.