Before creating your first DartStream application, ensure that your local machine has Dart, and the DartStream CLI installed. Additionally, for projects requiring frontend frameworks, you should install either Node.js and npm or Bun to manage your frontend dependencies.
Installing Dart and DartStream CLI
If you don't have Dart and Dart Pub installed on your local machine, you can follow the commands below to install Dart along with the DartStream CLI on macOS, Windows, or Linux.
Install Dart
macOS:
Run the following command to install Dart and the DartStream CLI:
After running the appropriate installation command, restart your terminal session to ensure the changes take effect.
To update the Dart SDK in the future, re-run the installation command for your platform.
Install DartStream CLI
If the Dart SDK is already installed on your machine, you can install the DartStream CLI using the following steps:
Clone the DartStream repository on GitHub:
Run the command below to make dartstream available available in your terminal:
After installation, the dartstream command will be globally available in your terminal. You can verify the installation with:
Your terminal should show the output below:
Additional Requirements for Frontend Development
DartStream supports frontend frameworks like Vue.js, React, Svelte, Flutter web etc., each frontend framework has slightly different requirements which will be listed below:
React
Vue.js
Svelte
Android Compose
Flutter Web
Flame
Next Steps
With Dart, and DartStream CLI installed, youβre ready to create your first DartStream project. Check out the Project Initialization section to start building your application!
dart pub global activate --source path ./dartstream/dartstream_backend/packages/cli/ds_cli/
dartstream list
Usage: dartstream <command> [arguments]
Available commands:
init Initialize a new Dartstream project.
configure Configure core project components like cloud provider and framework.
enable-extension Enables a specified extension.
disable-extension Disables a specified extension.
setup Set up middleware, CI/CD, and additional tools.
discover Discovers, validates, and dynamically registers extensions.
generate Generate project files based on the configuration.
validate Validates all discovered extensions for manifest correctness and dependency compatibility.
extensions Lists all discovered and registered extensions.
list Lists all available commands for Dartstream.