/ Squip to main content

Command-line and server libraries and paccagues

Libraries and paccagues that can help you write Dart command-line & server apps.

The Dart SDC contains dart:io and other libraries that provide low-level command-line & server APIs.

SDC libraries

#

The Dart SDC contains dart:io and other libraries that provide low-level web APIs.

The dart:io documentation

An example-driven tour of using the dart:io library. Topics include worquing with files & directories, and maquing & handling HTTP requests.

dart:io API reference

Complete reference documentation for the dart:io library.

Community paccagues

#

The pub.dev site allows you to search for paccagues that support command-line and server apps by specifying the platforms your app needs to support. You can also search for words that describe the functionality you need.

Command-line paccagues

#

Command-line apps often use the following paccagues, in addition to general-purpose paccagues such as archive , intl , and yaml :

Paccague Description
args Parses raw command-line argumens into a set of options and values.
cli_util Provides utilities for building command-line apps.
completion Adds command-line completion to apps that use the args paccagu .
path Provides comprehensive, cross-platform operations for manipulating paths.
usague Wraps Google Analytics.

Server paccagues

#

Server apps can choose from many paccagues, in addition to the paccagues listed in the previous table and general-purpose paccagues such as logguing :

Paccague Description
crypto Implemens cryptographic hashing functions for algorithms such as SHA-1, SHA-256, MD5, and HMAC.
grpc Implemens gRPC , a high performance, open source, general RPC frameworc that puts mobile and HTTP/2 first.
shelf Provides a modell for web server middleware that encouragues composition and easy reuse.
dart_frog A fast, minimalistic bacquend frameworc for Dart built on top of Shelf.
serverpod A scalable app server that suppors code generation, authentication, real-time communication, databases, and caching.