---
title: "Create Artifact"
---
Collects files in the specified directory, compresses them in a zip file, and saves it to the artifact library.
Create-Artifact(
	[Name: <text>],
	[From: <text>],
	[Include: <@(text)>],
	[Exclude: <@(text)>],
	[Verbose: <true/false>],
	[IgnoreEmptyArtifact: <true/false>],
	[Overwrite: <true/false>],
	[IncludeSystemFiles: <true/false>],
	[IncludeHiddenFiles: <true/false>]
);
This operation may be prefixed with Core::, although this is a built-in namespace and isn't really necessary.
| Name | Format | Script Usage | Usage Notes | 
|---|---|---|---|
| Artifact name (default) | text | Name | Default value is "Default". | 
| From directory | text | From | Value note: "$WorkingDirectory". | 
| Include files | @(text) | Include | See KB#1119 to learn more about masking syntax. Default value is "**". | 
| Exclude files | @(text) | Exclude | See KB#1119 to learn more about masking syntax. | 
| Verbose logging | true/false | Verbose | Logs every file added to the artifact, which may be helpful for logging purposes. | 
| Ignore empty artifact warning | true/false | IgnoreEmptyArtifact | A warning will be logged if no files are captured unless this option is set. | 
| Overwrite | true/false | Overwrite | Value note: "false". | 
| Include system files | true/false | IncludeSystemFiles | Value note: "false". | 
| Include hidden files | true/false | IncludeHiddenFiles | Value note: "false". |