Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/30_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,36 @@ Available flags for the command:
- `--context`, to specify a different context from the currently selected one
- `--company-id`, to set the ID of the desired Company

### import-config

The `project import-config` subcommand allows you to import specific configuration files in a Mia-Platform Console project.
This command can be used to import one or more configuration files at the same time.

Usage:

```sh
miactl project import-config [flags]
```

Available flags for the command:

- `--revision`, to specify the revision of the commit to import the configuration (mutually exclusive with --environment)
- `--environment`, to specify the environment where to import the configuration (mutually exclusive with --revision)
- `--flow-manager-config`, path to the flowManagerConfig.json file
- `--rbac-manager-config`, path to the rbacManagerConfig.json file
- `--backoffice-config`, path to the backofficeConfigurations.json file
- `--fast-data-config`, path to the fast-data-config.json file
- `--api-console-config`, path to the api-console-config.json file
- `--yes` (`-y`), skip interactive confirmation and proceed with import
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

un po' spicy e francamente non so manco se metterlo. l'intenzione era far fare la conferma all'utente


- `--project-id`, to set the ID of the desired Project
- `--auth-name`, the name of the miactl auth to use
- `--endpoint`, to set the Console endpoint
- `--certificate-authority`, to provide the path to a custom CA certificate
- `--insecure-skip-tls-verify`, to disallow the check the validity of the certificate of the remote endpoint
- `--context`, to specify a different context from the currently selected one
- `--company-id`, to set the ID of the desired Company

## deploy

The `deploy` command allows you to manage the deployment of your Projects.
Expand Down
17 changes: 17 additions & 0 deletions examples/configuration-backoffice.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"projectId": "project-id",
"tenantId": "tenant-id",
"ref": "branches/main",
"parentChangesId": "parent-changes-id",
"configType": "backofficeConfigurations",
"config": {
"services": "...",
"version": "1.8.0"
},
"hash": "hash-value",
"changesId": "changes-id",
"snapshotInfo": {
"message": "backup from {tenantId}-{projectId}-{ref}-{gg:mm:aaaa:hh:ss:ms} of Backoffice configuration document"
},
"__STATE__": "PUBLIC"
}
Loading