Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xwmx/user

Command line interface for common macOS user account operations.
https://github.com/xwmx/user

bash bpkg command-line homebrew macos osx

Last synced: about 2 months ago
JSON representation

Command line interface for common macOS user account operations.

Awesome Lists containing this project

README

        

```
'##::::'##::'######::'########:'########::
##:::: ##:'##... ##: ##.....:: ##.... ##:
##:::: ##: ##:::..:: ##::::::: ##:::: ##:
##:::: ##:. ######:: ######::: ########::
##:::: ##::..... ##: ##...:::: ##.. ##:::
##:::: ##:'##::: ##: ##::::::: ##::. ##::
. #######::. ######:: ########: ##:::. ##:
:.......::::......:::........::..:::::..::
```

# user cli

`user` is a command line interface for common macOS user account operations,
like fast user switching, listing users, and displaying the user login window.

## Installation

### Homebrew

To install with [Homebrew](http://brew.sh/):

```bash
brew taps xwmx/taps
brew install user
```

### npm

To install with [npm](https://www.npmjs.com/package/user-cli):

```bash
npm install --global user-cli
```

### bpkg

To install with [bpkg](http://www.bpkg.io/):

```bash
bpkg install xwmx/user
```

### Manual

To install manually, simply add the `user` script to your `$PATH`. If
you already have a `~/bin` directory, you can use the following command:

```bash
curl -L https://raw.github.com/xwmx/user/master/user \
-o ~/bin/user && chmod +x ~/bin/user
```

## Usage

```
Usage:
user list
user login
user logout [--force]
user window
user -h | --help
user --version

Subcommands:
list List login user accounts.
login Log in as the specified user, aka "Fast User Switching."
logout Log out the current user.
window Go to the login window without logging out.

Options:
-h --help Display this help information.
--version Display version information.
--force Suppress confirmation prompt.
```