Command-line interface for Cloud Service Foundry.
- Rust toolchain (stable) — install via rustup
git clone https://github.com/cs-foundry/CSF-CLI.git
cd CSF-CLI
cargo install --path cliThe csf binary is installed to ~/.cargo/bin/csf. Ensure ~/.cargo/bin is in your PATH.
git pull
cargo install --path cli --force@
csf # interactive REPL
csf login # authenticate against CSF-Core
csf logout # remove stored credentials
csf status # show current session info
csf token # print stored JWT token (useful for scripts)
csf volumes list
csf volumes get <id>
csf volumes snapshots
csf volumes nodes
csf registry agents
csf registry agents-get <id>
csf registry pre-register <name> <hostname> [--os <os>] [--arch <arch>] [--ttl <hours>]
csf registry pending
csf registry pending-delete <id>
csf registry deregister <id>
csf registry stats
csf registry tokens
csf nodes list
csf nodes metrics
Config is stored at ~/.csf/config.json:
{
"server": "http://localhost:8000",
"token": "<jwt>"
}export JWT=$(csf token)
GATEWAY_URL=http://localhost:8000 ./scripts/test-mtls.sh