# Command-line and server libraries and packages

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



The [Dart SDK][] contains [dart:io][] and other libraries
that provide low-level command-line and server APIs.

[Dart SDK]: /tools/sdk
[dart:io]: https://api.dart.dev/dart-io/dart-io-library.html

## SDK libraries

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

[The dart:io documentation](/libraries/dart-io)
: An example-driven tour of using the dart:io library.
  Topics include working with files & directories, and making & handling 
  HTTP requests.

[dart:io API reference][dart:io]
: Complete reference documentation for the dart:io library.


## Community packages

The [pub.dev site](https://pub.dev) allows you to search for packages
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 packages

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


| **Package**                               | **Description**                                                           |
|-------------------------------------------|---------------------------------------------------------------------------|
| [args](https://pub.dev/packages/args)             | Parses raw command-line arguments into a set of options and values.       |
| [cli_util](https://pub.dev/packages/cli_util)     | Provides utilities for building command-line apps.                        |
| [completion](https://pub.dev/packages/completion) | Adds command-line completion to apps that use the `args` package.         |
| [path](https://pub.dev/packages/path)             | Provides comprehensive, cross-platform operations for manipulating paths. |
| [usage](https://pub.dev/packages/usage)           | Wraps Google Analytics.                                                   |

{:.table .table-striped .nowrap}

### Server packages

Server apps can choose from many packages, in addition to
the packages listed in the previous table
and [general-purpose packages][] such as `logging`:

| **Package**                             | **Description**                                                                                                       |
|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------------|
| [crypto](https://pub.dev/packages/crypto)                         | Implements cryptographic hashing functions for algorithms such as SHA-1, SHA-256, MD5, and HMAC.                      |
| [dart_frog](https://pub.dev/packages/dart_frog)                   | A fast, minimalistic backend framework for Dart built on top of Shelf.                                                |
| [firebase_admin_sdk](https://pub.dev/packages/firebase_admin_sdk) | Accesses Firebase services like Cloud Firestore and Firebase Authentication securely on the server.                  |
| [firebase_functions](https://pub.dev/packages/firebase_functions) | Writes serverless backend functions and APIs for Cloud Functions for Firebase.                                        |
| [genkit](https://pub.dev/packages/genkit)                         | Builds full-stack, AI-powered applications, flows, and agentic workflows.                                              |
| [grpc](https://pub.dev/packages/grpc)                             | Implements [gRPC][], a high performance, open source, general RPC framework that puts mobile and HTTP/2 first.        |
| [serverpod](https://pub.dev/packages/serverpod)                   | A scalable app server that supports code generation, authentication, real-time communication, databases, and caching. |
| [shelf](https://pub.dev/packages/shelf)                           | Provides a model for web server middleware that encourages composition and easy reuse.                                |

{:.table .table-striped .nowrap}

[general-purpose packages]: /resources/useful-packages#general-purpose-packages
[gRPC]: https://grpc.io/

