CLI Tool
Command-line interface for managing Fugoku Cloud infrastructure
Fugoku CLI
The Fugoku CLI is a command-line tool for managing your infrastructure from the terminal.
Coming Soon
The CLI is currently under development. In the meantime, use the REST API to manage your infrastructure programmatically.
Overview
The Fugoku CLI provides a fast, scriptable way to manage your infrastructure from the terminal. It wraps the Fugoku API and provides convenient commands for common operations.
Installation
Installation instructions will be available when the CLI is released.
Authentication
The CLI will support Bearer token authentication via environment variable or interactive login.
Commands
The following commands are planned for the CLI:
Compute
fugoku servers list— List servers (bare metal and virtual machines)fugoku servers create— Create a new serverfugoku servers get— Get server detailsfugoku servers delete— Delete a serverfugoku servers start— Start a serverfugoku servers stop— Stop a serverfugoku servers reboot— Reboot a serverfugoku servers upgrade— Change server plan
Storage
fugoku volumes list— List volumesfugoku volumes create— Create a volumefugoku volumes attach— Attach a volume to a serverfugoku volumes detach— Detach a volume
Networking
fugoku networks list— List private networksfugoku networks create— Create a networkfugoku floating-ips list— List elastic IPsfugoku floating-ips create— Create an elastic IP
SSH Keys
fugoku ssh-keys list— List SSH keysfugoku ssh-keys add— Add an SSH keyfugoku ssh-keys delete— Delete an SSH key
Backups
fugoku backups list— List backupsfugoku backups create— Create a backupfugoku backups restore— Restore a backupfugoku backups delete— Delete a backup
Other
fugoku plans list— List available plansfugoku regions list— List available regionsfugoku images list— List available images
Using the API Today
While the CLI is not yet available, you can use the REST API directly:
# List servers
curl https://api.fugoku.com/v1/servers \
-H "Authorization: Bearer $FUGOKU_API_TOKEN"
# Create a server
curl -X POST https://api.fugoku.com/v1/servers \
-H "Authorization: Bearer $FUGOKU_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"data": {
"type": "servers",
"attributes": {
"name": "web-1",
"site": "lagos-1",
"plan": "vm-standard",
"operating_system": "ubuntu-22.04",
"billing": "hourly",
"role": "VirtualMachine"
}
}
}'See the API Reference for full documentation.