-
Notifications
You must be signed in to change notification settings - Fork 12
add mass package reset command #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| id: mass_logs.md | ||
| slug: /cli/commands/mass_logs | ||
| title: Mass Logs | ||
| sidebar_label: Mass Logs | ||
| --- | ||
| ## mass logs | ||
|
|
||
| Get deployment logs | ||
|
|
||
| ### Synopsis | ||
|
|
||
| # Get Deployment Logs | ||
|
|
||
| Retrieves and outputs the log stream for a specific deployment. The logs are dumped to stdout in their original format. | ||
|
|
||
| ## Usage | ||
|
|
||
| ```bash | ||
| mass logs <deployment-id> | ||
| ``` | ||
|
|
||
| Where `<deployment-id>` is the UUID of the deployment. | ||
|
|
||
| ## Examples | ||
|
|
||
| ```bash | ||
| # Get logs for a deployment | ||
| mass logs 12345678-1234-1234-1234-123456789012 | ||
|
|
||
| # Pipe logs to a file | ||
| mass logs 12345678-1234-1234-1234-123456789012 > deployment.log | ||
| ``` | ||
|
|
||
| ## Notes | ||
|
|
||
| - Logs are output to stdout in their original format | ||
| - This command does not support tailing/following logs - it dumps all available logs | ||
| - The deployment ID can be found in the Massdriver UI or from deployment-related commands | ||
|
|
||
|
|
||
| ``` | ||
| mass logs [deployment-id] [flags] | ||
| ``` | ||
|
|
||
| ### Examples | ||
|
|
||
| ``` | ||
| # Get logs for a deployment | ||
| mass logs 12345678-1234-1234-1234-123456789012 | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help help for logs | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [mass](/cli/commands/mass) - Massdriver Cloud CLI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| --- | ||
| id: mass_package_reset.md | ||
| slug: /cli/commands/mass_package_reset | ||
| title: Mass Package Reset | ||
| sidebar_label: Mass Package Reset | ||
| --- | ||
| ## mass package reset | ||
|
|
||
| Reset package status to 'Initialized' | ||
|
|
||
| ### Synopsis | ||
|
|
||
| # Reset Package Status | ||
|
|
||
| This command allows you to reset a package status back to 'Initialized'. This should only be used when a package is in an unrecoverable state - common situations include a package stuck in 'Pending' due to deployment issues, or a package that cannot be successfully decommissioned due to deployment failures. | ||
|
|
||
| ## Examples | ||
|
|
||
| You can reset the package using the `slug` identifier. | ||
|
|
||
| The `slug` can be found by hovering over the bundle in the Massdriver diagram. The package slug is a combination of the `<project-slug>-<env-slug>-<manifest-slug>` | ||
|
|
||
| Reset and delete the deployment history: | ||
|
|
||
| ```shell | ||
| mass package reset ecomm-prod-vpc | ||
| ``` | ||
|
|
||
|
|
||
| ``` | ||
| mass package reset <project>-<env>-<manifest> [flags] | ||
| ``` | ||
|
|
||
| ### Examples | ||
|
|
||
| ``` | ||
| mass package reset api-prod-db | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -f, --force Skip confirmation prompt | ||
| -h, --help help for reset | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [mass package](/cli/commands/mass_package) - Manage packages of IaC deployed in environments. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,3 @@ | ||
| # Manage Massdriver artifacts | ||
|
|
||
| Artifacts represent infrastructure resources and connections in Massdriver. They can be provisioned by bundles or manually imported. | ||
|
|
||
| ## Commands | ||
|
|
||
| - `get`: Retrieve an artifact's details and metadata | ||
| - `download`: Download an artifact in the specified format | ||
| - `import`: Import a custom artifact |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,3 @@ | ||
| # Credential Management | ||
|
|
||
| Manage credential artifacts in your organization. | ||
|
|
||
| ## Commands | ||
|
|
||
| - `list`: List all credential artifacts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Reset Package Status | ||
|
|
||
| This command allows you to reset a package status back to 'Initialized'. This should only be used when a package is in an unrecoverable state - common situations include a package stuck in 'Pending' due to deployment issues, or a package that cannot be successfully decommissioned due to deployment failures. | ||
|
|
||
| ## Examples | ||
|
|
||
| You can reset the package using the `slug` identifier. | ||
|
|
||
| The `slug` can be found by hovering over the bundle in the Massdriver diagram. The package slug is a combination of the `<project-slug>-<env-slug>-<manifest-slug>` | ||
|
|
||
| Reset and delete the deployment history: | ||
|
|
||
| ```shell | ||
| mass package reset ecomm-prod-vpc | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these command blocks are redundant - Cobra already shows a list of available commands. Additionally many of them were out of date and missing new commands recently added.