View Source Doex.Cli.Id (doex v0.14.1)
Locate a ID of a resource. This can be done by name or tag.
doex id <--resource_type> <resource_name>
Or, by tag
doex droplets.id <--resource_type> <tag> --tag
If by tag, it will grab the latest
.
The supported resources include
--droplets # Locate a droplet's ID
--snapshots # Locate a private image's ID (aka snapshot ID)
--floating-ips # Locate a floating ip ID (aka snapshot ID)
For example
doex id my_app --droplets
Droplets are also the default, so the --droplets
can be omitted.
doex id my_app
If you have a specific config file, mix help doex.config
then add it as an environment variable
DOEX_CONFIG=/tmp/my.doex doex id my_app