-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
docs: add more commands in using-atlantis.md #2808
Changes from 6 commits
22528ff
6366063
40b619d
2a7c9e8
ee9777a
7157668
88a428a
3358e38
72c925f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,19 +1,38 @@ | ||||||||||||||||||||||||
# Using Atlantis | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
Atlantis currently supports three commands that can be run via pull request comments: | ||||||||||||||||||||||||
Atlantis triggers commands via pull request comments. | ||||||||||||||||||||||||
 | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
::: tip | ||||||||||||||||||||||||
You can use following executable names. | ||||||||||||||||||||||||
* `atlantis help` | ||||||||||||||||||||||||
* `atlantis` is executable name. You can configure by [Executable Name](/docs/server-configuration.html#executable-name). | ||||||||||||||||||||||||
* `@GithubUser help` | ||||||||||||||||||||||||
* `@GithubUser` is the VCS host user which you connected to Atlantis by user token. | ||||||||||||||||||||||||
::: | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
Currently, Atlantis supports the following commands. | ||||||||||||||||||||||||
[[toc]] | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
--- | ||||||||||||||||||||||||
## atlantis help | ||||||||||||||||||||||||
 | ||||||||||||||||||||||||
nitrocode marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
```bash | ||||||||||||||||||||||||
atlantis help | ||||||||||||||||||||||||
``` | ||||||||||||||||||||||||
### Explanation | ||||||||||||||||||||||||
View help | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
--- | ||||||||||||||||||||||||
## atlantis version | ||||||||||||||||||||||||
```bash | ||||||||||||||||||||||||
atlantis version | ||||||||||||||||||||||||
``` | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
### Explanation | ||||||||||||||||||||||||
Print the output of 'terraform version'. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
--- | ||||||||||||||||||||||||
## atlantis plan | ||||||||||||||||||||||||
 | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's difficult to capture same image for other commands. So just show one image on the page top. |
||||||||||||||||||||||||
```bash | ||||||||||||||||||||||||
atlantis plan [options] -- [terraform plan flags] | ||||||||||||||||||||||||
``` | ||||||||||||||||||||||||
|
@@ -60,7 +79,6 @@ If you always need to append a certain flag, see [Custom Workflow Use Cases](cus | |||||||||||||||||||||||
|
||||||||||||||||||||||||
--- | ||||||||||||||||||||||||
## atlantis apply | ||||||||||||||||||||||||
 | ||||||||||||||||||||||||
```bash | ||||||||||||||||||||||||
atlantis apply [options] -- [terraform apply flags] | ||||||||||||||||||||||||
nitrocode marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
``` | ||||||||||||||||||||||||
|
@@ -104,3 +122,26 @@ Because Atlantis under the hood is running `terraform apply plan.tfplan`, any Te | |||||||||||||||||||||||
They're ignored because they can't be specified for an already generated planfile. | ||||||||||||||||||||||||
If you would like to specify these flags, do it while running `atlantis plan`. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
--- | ||||||||||||||||||||||||
## atlantis unlock | ||||||||||||||||||||||||
```bash | ||||||||||||||||||||||||
atlantis unlock | ||||||||||||||||||||||||
``` | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
### Explanation | ||||||||||||||||||||||||
Removes all atlantis locks and discards all plans for this PR. | ||||||||||||||||||||||||
To unlock a specific plan you can use the Atlantis UI. | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. copy from atlantis/server/events/comment_parser_test.go Lines 755 to 765 in 6a7f79e
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
--- | ||||||||||||||||||||||||
## atlantis approve_policies | ||||||||||||||||||||||||
```bash | ||||||||||||||||||||||||
atlantis approve_policies | ||||||||||||||||||||||||
``` | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
### Explanation | ||||||||||||||||||||||||
Approves all current policy checking failures for the PR. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
See also [policy checking](/docs/policy-checking.html#how-it-works). | ||||||||||||||||||||||||
krrrr38 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
### Options | ||||||||||||||||||||||||
* `--verbose` Append Atlantis log to comment. |
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.
IMO it is better to drop
run help
feature... it seems a little bit hidden function.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.
It's your opinion to drop the
run help
feature because it's a hidden function?Wouldn't you want to add the
run help
feature because it's a hidden function?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.
I want to remove
run help
feature. so remove this doc.ee9777a
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.
Why remove the
run help
feature?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.
I guess no one use
run apply
and almost users doesnot know this feature. Not to execute it untentionally by just comment it, I think it is better to drop it.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.
It's possible people still use it. We don't collect analytics for this. It's probably best not to introduce a breaking change, no?
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.
True. Generally, we should not do a breaking change. it must be introduced into major update and so on. In this PR, just add docs and not to drop it and so on. Currently, we already provide this feature, so I add docs 👌
3358e38