Control your CAC resource from the convenience of your shell
brew install hef/tap/cacctl
Download the latest release from https://github.com/hef/cacctl/releases/latest for your operating system.
run cacctl configure
to interactively create a config file
username: [email protected]
password: your_password
Default config file locations vary by platform:
Platform | Config File Location |
---|---|
Linux | $HOME/.config/cacctl/config.yaml |
OSX | $HOME/Library/Application Support/cacctl/config.yaml |
Windows | %AppData%/cacctl/config.yaml |
You can specify a custom config file path with --config
or -c
Environment Variable | Description |
---|---|
CAC_USERNAME | Your CAC Username |
CAC_PASSWORD | Your CAC Password |
cacctl list
ID NAME STATUS IP CPU RAM SSD OS PACKAGE
255330813 Installing 142.47.89.190 1 512 10 Ubuntu 18.04 LTS 64bit CloudPRO v4
255330812 c999963378-cloudpro-329575357 Powered On 142.47.89.189 1 512 10 Ubuntu 18.04 LTS 64bit CloudPRO v4
cacctl build
Build a server with 1 CPU, 512MB of ram, and 10GB of storage:
cactl build --cpu 1 --ram 512 --storage 10
Option | Type | Description |
---|---|---|
cpu | Integer | CPU Count |
encryption | Boolean | Encrypt the drive |
ha | Boolean | Enable High Availability |
os | String | Operating System |
ram | Integer | Memory |
storage | Integer | Disk Space |
- CentOS 7.9 64Bit
- CentOS 8.3 64bit
- Debian 9.13 64bit
- FreeBSD 12.2 64bit
- Ubuntu 18.04 LTS 64bit
You May have other options available.
cacctl ssh-copy-id
The command will log into all of your instances and copy your ssh public key into authorized_keys