<commit_before># Pearl

Pearl is the command line interface to DigitlOcean's API.

## Setup

Run the following command to install

    $ gem install pearl

## Usage

### Droplets

To see all your droplets

    $ pearl droplets

To view a droplet

    $ pearl droplet -d 1

To create a droplet

    $ pearl droplet add 'name' --size 1 --image 1 --region 1

    or

    $ pearl droplet add 'name' -s 1 -i 1 -r 1

Reboot a droplet

    $ pearl droplet reboot -d 1

Power cycle droplet

    $ pearl droplet power cycle -d 1

Shutdown droplet

    $ pearl droplet shutdown -d 1

Power Off droplet

    $ pearl droplet power off -d 1

Power On droplet

    $ pearl droplet power_on -d 1

Reset root password

    $ pearl droplet password_reset -d 1

Resize droplet

    $ pearl droplet resize -d 1 --size 2

Take a snapshot

    $ pearl droplet snapshot 'snapshot_name' -d 1

Restore droplet

    $ pearl droplet restore -d 1 --image 2

Rebuild droplet

    $ pearl droplet rebuild -d 1 --image 2

Enable automatic backups

    $ pearl droplet enable backups -d 1

Disable automatic backups

    $ pearl droplet disable backups -d 1

Destroy droplet

    $ pearl droplet destroy -d 1

### Regions

Display regions

    $ pearl regions

### Sizes

Display regions

      $ pearl sizes

### Images

Display images

    $ pearl images

To display your images

    $ pearl images --filter my

To display global images (default)

    $ pearl images --filter global

View a single image

    $ pearl image -i 1

To destroy an image

    $ pearl image destroy -i 1

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request<commit_msg>Remove fixed ids from README<commit_after># Pearl

Pearl is a command line interface to DigitlOcean's API.

## Setup

Run the following command to install

    $ gem install pearl

Add your client id and api key as enviroment variables

    ENV['DIGITAL_OCEAN_CLIENT_ID']
    ENV['DIGITAL_OCEAN_API_KEY']

## Usage

### Droplets

To see all your droplets

    $ pearl droplets

To view a droplet

    $ pearl droplet -d <droplet id>

To create a droplet

    $ pearl droplet add 'name' --size <size id> --image <image id> --region <region id>

    or

    $ pearl droplet add 'name' -s <size id> -i <image id> -r <region id>

Reboot a droplet

    $ pearl droplet reboot -d <droplet id>

Power cycle droplet

    $ pearl droplet power cycle -d <droplet id>

Shutdown droplet

    $ pearl droplet shutdown -d <droplet id>

Power Off droplet

    $ pearl droplet power off -d <droplet id>

Power On droplet

    $ pearl droplet power_on -d <droplet id>

Reset root password

    $ pearl droplet password_reset -d <droplet id>

Resize droplet

    $ pearl droplet resize -d <droplet id> -s <size id>

Take a snapshot

    $ pearl droplet snapshot 'snapshot_name' -d <droplet id>

Restore droplet

    $ pearl droplet restore -d <droplet id> -i <image id>

Rebuild droplet

    $ pearl droplet rebuild -d <droplet id> -i <image id>

Enable automatic backups

    $ pearl droplet enable backups -d <droplet id>

Disable automatic backups

    $ pearl droplet disable backups -d <droplet id>

Destroy droplet

    $ pearl droplet destroy -d <droplet id>

### Regions

Display regions

    $ pearl regions

### Sizes

Display regions

      $ pearl sizes

### Images

Display all images

    $ pearl images

To display your images

    $ pearl images --filter my

To display global images (default)

    $ pearl images --filter global

View a single image

    $ pearl image -i <image id>

To destroy an image

    $ pearl image destroy -i <image id>

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
{'fraction_non_alphanumeric': 0.07254016064257028, 'fraction_numerical': 0.008785140562248996, 'mean_word_length': 2.7808349146110056, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4241595', 'n_tokens_mistral': 1374, 'n_tokens_neox': 1207, 'n_words': 559}