# mesheryctl-filter-import

LLMS index: [llms.txt](/llms.txt)

---

# mesheryctl filter import

Import a WASM filter

## Synopsis

Import a WASM filter from a URI (http/s) or local filesystem path.
	
<pre class='codeblock-pre'>
<div class='codeblock'>
<div class='clipboardjs'>
mesheryctl filter import [URI] [flags]

</div>
</div>
</pre> 

## Examples

Import a filter file from local filesystem
<pre class='codeblock-pre'>
<div class='codeblock'>
<div class='clipboardjs'>
mesheryctl filter import /path/to/filter.wasm

</div>
</div>
</pre> 

Import a filter file from a remote URI
<pre class='codeblock-pre'>
<div class='codeblock'>
<div class='clipboardjs'>
mesheryctl filter import https://example.com/myfilter.wasm

</div>
</div>
</pre> 

Add WASM configuration
If the string is a valid file in the filesystem, the file is read and passed as a string. Otherwise, the string is passed as is.
Use quotes if the string contains spaces
<pre class='codeblock-pre'>
<div class='codeblock'>
<div class='clipboardjs'>
mesheryctl filter import /path/to/filter.wasm --wasm-config [filepath|string]

</div>
</div>
</pre> 

Specify the name of the filter to be imported. Use quotes if the name contains spaces
<pre class='codeblock-pre'>
<div class='codeblock'>
<div class='clipboardjs'>
mesheryctl filter import /path/to/filter.wasm --name [string]

</div>
</div>
</pre> 

## Options

<pre class='codeblock-pre'>
<div class='codeblock'>
  -h, --help                 help for import
  -n, --name string          (optional) filter name
  -w, --wasm-config string   (optional) WASM configuration filepath/string

</div>
</pre>

## Options inherited from parent commands

<pre class='codeblock-pre'>
<div class='codeblock'>
      --config string   path to config file (default "~/.meshery/config.yaml")
  -t, --token string    Path to token file default from current context
  -v, --verbose         verbose output

</div>
</pre>

## See Also

Go back to [command reference index](/reference/mesheryctl/), if you want to add content manually to the CLI documentation, please refer to the [instruction](/project/contributing/cli/cli/#documenting) for guidance.
