Command Reference¶
A complete list of commands and their options.
Available on the command line by appending --help to the command.
Configure¶
The configure command interactively configures pontoon.
You’re prompted for details and a configuration file is written to ~/.pontoon.
Alternatively, you can manually place a config file at this location with this syntax:
api_token: foo-bar-baz
auth_key_name: Macbook.local
image: ubuntu-15-10-x32
region: lon1
size: 512mb
ssh_private_key: ~/.ssh/id_rsa
ssh_public_key: ~/.ssh/id_rsa.pub
username: root
-
pontoonconfigure¶ Launch interactive configuration of pontoon.
Droplets¶
-
pontoondroplet list [options]¶
-
--detail¶ Show full Droplet info.
$ pontoon droplet list --detail
example.com
id: 3164444
size: 512mb
image: ubuntu-14-04-x64
region: nyc3
ip_address: 104.236.32.182
status: active
kernel:
id: 2233
name: Ubuntu 14.04 x64 vmlinuz-3.13.0-37-generic
version: 3.13.0-37-generic
...
-
pontoondroplet create <name> [options]¶
-
--sizesize¶ Droplet RAM allocation. e.g., 512mb
-
--imageimage¶ Droplet image.
-
--regionregion¶ Droplet region.
-
--keyskeys...¶ List of registered keys to add to Droplet(s)
-
--user-datauserdata¶ String of user data to pass to Droplet. Include a file like:
--user-data="$(cat file.yml)"
-
--private-networking¶ Assign private address to Droplet (where available)
-
--disable-virtio¶ Disable VirtIO. (not recommended)
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet ssh <name> [command] [options]¶
-
--useruser¶ Override configured username for SSH login.
-
--keypath¶ Override configured private key for SSH login.
-
pontoondroplet rename <from> <to> [options]¶ Rename a Droplet. Takes the current name as the first parameter, and the new name as the second.
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet resize <name> <size> [options]¶ Resize a Droplet. Takes Droplet name as first paramter, size as second.
-
--yes¶ Don’t prompt for confirmation.
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet snapshot <droplet> <snapshot> [options]¶ Snapshot a Droplet. Takes Droplet name as first paramter, snapshot name as second.
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet show <name> [options]¶ Show detailed information about a particular Droplet.
-
--fieldfield¶ Extract and return a single field. Access nested items with dot syntax, e.g.:
networks.v4.0.gateway
-
pontoondroplet status <name>¶ Return Droplet status.
-
pontoondroplet destroy <name>¶ Destroy a Droplet.
-
pontoondroplet start <name>¶ Start a Droplet.
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet shutdown <name>¶ Shut down a Droplet.
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet reboot <name>¶ Reboot a Droplet (sending signal to OS).
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet restore <name> <snapshot>¶ Restore a Droplet from a snapshot.
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet rebuild <name> <image>¶ Rebuild a Droplet from a given image.
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet powercycle <name>¶ Powercycle (hard restart) a Droplet.
-
--yes¶ Don’t prompt for confirmation.
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet poweroff <name>¶ Power off (without signalling the OS) a Droplet.
-
--yes¶ Don’t prompt for confirmation.
-
--no-wait¶ Don’t wait for action to complete, return immediately.
-
pontoondroplet passwordreset <name>¶ Reset the root password on a Droplet.
-
--yes¶ Don’t prompt for confirmation.
-
pontoondroplet backups <name>¶ Manage backups on a Droplet.
-
--enable¶ Enable backups.
-
--disable¶ Depracated by Digital Ocean for their v2 API release, later added back but still deprecated here for the moment.
Events¶
These is an interface to Digital Ocean events.
Events are usually only an implementation detail, and an interface is provided here only for completeness.
-
pontoonevent show <id>¶ Retrieve details for a particular event id.
Images¶
Public base images made available by Digital Ocean.
-
pontoonimage list [options]¶ Retrieve a list of public images.
-
--with-ids¶ Include image IDs in tabular output.
-
pontoonimage oses¶ Retrieve a list of Operating Systems for which there are base images.
-
pontoonimage show <name>¶ Show details for a particular image, including regions where it is available.
Regions¶
Regions available to launch Droplets.
-
pontoonregion list¶ List regions in which Droplets can be launched.
Snapshots¶
Commands for interacting with snapshots.
-
pontoonsnapshot list [options]¶ List available snapshots.
-
--with-ids¶ Include image IDs in tabular output.
-
pontoonsnapshot show <name>¶ Show snapshot details.
-
pontoonsnapshot destroy <name>¶ Destroy a snapshot.
-
pontoonsnapshot transfer <name> <region>¶ Move a snapshot from one region to another. A list of regions can be retrieved with
pontoon region list
SSH Keys¶
Manage SSH keys in your account.
-
pontoonsshkey list¶ List of SSH keys in account.
-
pontoonsshkey add <name> <public-key-path>¶ Register a public SSH key from the specified path to your account.
-
pontoonsshkey show <name>¶ Retrieve a public key by name.
-
pontoonsshkey replace <name> <public-key-path>¶ Replace an existing key name with a new public key.
-
pontoonsshkey destroy <name>¶ Remove a given key from Digital Ocean. Note: this doesn’t remove the key from any existing Droplets, just removes it from the keys available to boot Droplets with.