constellation/docs/versioned_docs/version-2.0/reference/cli.md

350 lines
8.0 KiB
Markdown
Raw Normal View History

2022-09-02 09:52:42 +00:00
# CLI reference
2022-09-16 13:46:23 +00:00
<!-- This file is generated by constellation/hack/clidocgen via update-cli-reference.yml workflow. Don't edit manually. -->
2022-09-02 09:52:42 +00:00
Use the Constellation CLI to create and manage your clusters.
Usage:
```
constellation [command]
```
Commands:
* [config](#constellation-config): Work with the Constellation configuration file
2022-09-09 15:01:57 +00:00
* [generate](#constellation-config-generate): Generate a default configuration file
* [fetch-measurements](#constellation-config-fetch-measurements): Fetch measurements for configured cloud provider and image
2022-09-13 10:05:07 +00:00
* [instance-types](#constellation-config-instance-types): Print the supported instance types for all cloud providers
2022-09-02 09:52:42 +00:00
* [create](#constellation-create): Create instances on a cloud platform for your Constellation cluster
* [init](#constellation-init): Initialize the Constellation cluster
* [verify](#constellation-verify): Verify the confidential properties of a Constellation cluster
* [upgrade](#constellation-upgrade): Plan and perform an upgrade of a Constellation cluster
2022-09-09 15:01:57 +00:00
* [plan](#constellation-upgrade-plan): Plan an upgrade of a Constellation cluster
2022-09-13 10:05:07 +00:00
* [execute](#constellation-upgrade-execute): Execute an upgrade of a Constellation cluster
* [recover](#constellation-recover): Recover a completely stopped Constellation cluster
* [terminate](#constellation-terminate): Terminate a Constellation cluster
2022-09-02 09:52:42 +00:00
* [version](#constellation-version): Display version of this CLI
## constellation config
Work with the Constellation configuration file
### Synopsis
2022-09-13 10:05:07 +00:00
Work with the Constellation configuration file.
2022-09-02 09:52:42 +00:00
### Options
```
-h, --help help for config
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
## constellation config generate
Generate a default configuration file
### Synopsis
Generate a default configuration file for your selected cloud provider.
```
constellation config generate {aws|azure|gcp} [flags]
```
### Options
```
-f, --file string path to output file, or '-' for stdout (default "constellation-conf.yaml")
-h, --help help for generate
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
## constellation config fetch-measurements
Fetch measurements for configured cloud provider and image
### Synopsis
Fetch measurements for configured cloud provider and image. A config needs to be generated first!
```
constellation config fetch-measurements [flags]
```
### Options
```
-h, --help help for fetch-measurements
-s, --signature-url string alternative URL to fetch measurements' signature from
-u, --url string alternative URL to fetch measurements from
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
2022-09-09 15:01:57 +00:00
## constellation config instance-types
2022-09-13 10:05:07 +00:00
Print the supported instance types for all cloud providers
2022-09-09 15:01:57 +00:00
### Synopsis
2022-09-13 10:05:07 +00:00
Print the supported instance types for all cloud providers.
2022-09-09 15:01:57 +00:00
```
constellation config instance-types [flags]
```
### Options
```
-h, --help help for instance-types
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
2022-09-02 09:52:42 +00:00
## constellation create
Create instances on a cloud platform for your Constellation cluster
### Synopsis
Create instances on a cloud platform for your Constellation cluster.
```
2022-09-09 15:01:57 +00:00
constellation create [flags]
2022-09-02 09:52:42 +00:00
```
### Options
```
-c, --control-plane-nodes int number of control-plane nodes (required)
-h, --help help for create
--name string create the cluster with the specified name (default "constell")
-w, --worker-nodes int number of worker nodes (required)
-y, --yes create the cluster without further confirmation
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
## constellation init
Initialize the Constellation cluster
### Synopsis
Initialize the Constellation cluster. Start your confidential Kubernetes.
```
constellation init [flags]
```
### Options
```
--autoscale enable Kubernetes cluster-autoscaler
--endpoint string endpoint of the bootstrapper, passed as HOST[:PORT]
-h, --help help for init
--master-secret string path to base64-encoded master secret
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
## constellation verify
Verify the confidential properties of a Constellation cluster
### Synopsis
Verify the confidential properties of a Constellation cluster.
If arguments aren't specified, values are read from `constellation-id.json`.
```
2022-09-09 15:01:57 +00:00
constellation verify [flags]
2022-09-02 09:52:42 +00:00
```
### Options
```
2022-09-13 10:05:07 +00:00
--cluster-id string expected cluster identifier
2022-09-02 09:52:42 +00:00
-h, --help help for verify
-e, --node-endpoint string endpoint of the node to verify, passed as HOST[:PORT]
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
2022-09-13 10:05:07 +00:00
## constellation upgrade
2022-09-02 09:52:42 +00:00
2022-09-13 10:05:07 +00:00
Plan and perform an upgrade of a Constellation cluster
2022-09-02 09:52:42 +00:00
### Synopsis
2022-09-13 10:05:07 +00:00
Plan and perform an upgrade of a Constellation cluster.
2022-09-02 09:52:42 +00:00
### Options
```
2022-09-13 10:05:07 +00:00
-h, --help help for upgrade
2022-09-02 09:52:42 +00:00
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
2022-09-13 10:05:07 +00:00
## constellation upgrade plan
2022-09-02 09:52:42 +00:00
2022-09-13 10:05:07 +00:00
Plan an upgrade of a Constellation cluster
2022-09-02 09:52:42 +00:00
### Synopsis
2022-09-13 10:05:07 +00:00
Plan an upgrade of a Constellation cluster by fetching compatible image versions and their measurements.
2022-09-02 09:52:42 +00:00
```
2022-09-13 10:05:07 +00:00
constellation upgrade plan [flags]
2022-09-02 09:52:42 +00:00
```
### Options
```
2022-09-13 10:05:07 +00:00
-f, --file string path to output file, or '-' for stdout (omit for interactive mode)
-h, --help help for plan
2022-09-02 09:52:42 +00:00
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
2022-09-13 10:05:07 +00:00
## constellation upgrade execute
2022-09-02 09:52:42 +00:00
2022-09-13 10:05:07 +00:00
Execute an upgrade of a Constellation cluster
2022-09-02 09:52:42 +00:00
### Synopsis
2022-09-13 10:05:07 +00:00
Execute an upgrade of a Constellation cluster by applying the chosen configuration.
```
constellation upgrade execute [flags]
```
2022-09-02 09:52:42 +00:00
### Options
```
2022-09-13 10:05:07 +00:00
-h, --help help for execute
2022-09-02 09:52:42 +00:00
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
2022-09-13 10:05:07 +00:00
## constellation recover
2022-09-02 09:52:42 +00:00
2022-09-13 10:05:07 +00:00
Recover a completely stopped Constellation cluster
2022-09-02 09:52:42 +00:00
### Synopsis
2022-09-13 10:05:07 +00:00
Recover a Constellation cluster by sending a recovery key to an instance in the boot stage.
This is only required if instances restart without other instances available for bootstrapping.
2022-09-02 09:52:42 +00:00
```
2022-09-13 10:05:07 +00:00
constellation recover [flags]
2022-09-02 09:52:42 +00:00
```
### Options
```
2022-09-13 10:05:07 +00:00
-e, --endpoint string endpoint of the instance, passed as HOST[:PORT] (required)
-h, --help help for recover
--master-secret string path to master secret file (default "constellation-mastersecret.json")
2022-09-02 09:52:42 +00:00
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
2022-09-13 10:05:07 +00:00
## constellation terminate
2022-09-02 09:52:42 +00:00
2022-09-13 10:05:07 +00:00
Terminate a Constellation cluster
2022-09-02 09:52:42 +00:00
### Synopsis
2022-09-13 10:05:07 +00:00
Terminate a Constellation cluster. The cluster can't be started again, and all persistent storage will be lost.
2022-09-02 09:52:42 +00:00
```
2022-09-13 10:05:07 +00:00
constellation terminate [flags]
2022-09-02 09:52:42 +00:00
```
### Options
```
2022-09-13 10:05:07 +00:00
-h, --help help for terminate
2022-09-02 09:52:42 +00:00
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```
## constellation version
Display version of this CLI
### Synopsis
Display version of this CLI.
```
constellation version [flags]
```
### Options
```
-h, --help help for version
```
### Options inherited from parent commands
```
--config string path to the configuration file (default "constellation-conf.yaml")
```