Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
db644c91
Commit
db644c91
authored
Jul 14, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: document the fix command
parent
24f82757
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
website/source/docs/command-line/fix.html.markdown
website/source/docs/command-line/fix.html.markdown
+33
-0
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+1
-0
No files found.
website/source/docs/command-line/fix.html.markdown
0 → 100644
View file @
db644c91
---
layout
:
"
docs"
page_title
:
"
Command-line:
Fix"
---
# Command-Line: Fix
The
`packer fix`
command takes a template and finds backwards incompatible
parts of it and brings it up to date so it can be used with the latest version
of Packer. After you update to a new Packer release, you should run the
fix command to make sure your templates work with the new release.
The fix command will output the changed template to standard out, so you
should redirect standard using standard OS-specific techniques if you want to
save it to a file. For example, on Linux systems, you may want to do this:
```
$ packer fix old.json > new.json
```
If fixing fails for any reason, the fix command will exit with a non-zero
exit status. Error messages appear on standard error, so if you're redirecting
output, you'll still see error messages.
<div
class=
"alert alert-block alert-info"
>
<strong>
Even when Packer fix doesn't do anything
</strong>
to the template,
the template will be outputted to standard out. Things such as configuration
key ordering and indentation may be changed. The output format however, is
pretty-printed for human readability.
</div>
The full list of fixes that the fix command performs is visible in the
help output, which can be seen via
`packer fix -h`
.
website/source/layouts/docs.erb
View file @
db644c91
...
...
@@ -11,6 +11,7 @@
<li><h4>
Command-Line
</h4></li>
<li><a
href=
"/docs/command-line/introduction.html"
>
Introduction
</a></li>
<li><a
href=
"/docs/command-line/build.html"
>
Build
</a></li>
<li><a
href=
"/docs/command-line/fix.html"
>
Fix
</a></li>
<li><a
href=
"/docs/command-line/validate.html"
>
Validate
</a></li>
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment