---
title: CommandLine
framework: swift
role: symbol
role_heading: Enumeration
path: swift/commandline
---

# CommandLine

Command-line arguments for the current process.

## Declaration

```swift
@frozen enum CommandLine
```

## Topics

### Accessing Arguments

- [arguments](swift/commandline/arguments.md)

### Accessing Raw Argument Data

- [argc](swift/commandline/argc.md)
- [unsafeArgv](swift/commandline/unsafeargv.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Command Line Input

- [readLine(strippingNewline:)](swift/readline(strippingnewline:).md)
