# Generating .bank from the command line

**URL:** <https://qa.fmod.com/t/generating-bank-from-the-command-line/13532>\
**Category:** FMOD Studio\
**Created:** [November 10, 2017, 11:12pm UTC](https://qa.fmod.com/t/generating-bank-from-the-command-line/13532 "2017-11-10T23:12:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbgben](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jbgben](https://qa.fmod.com/u/jbgben)\
**Post date:** [November 10, 2017, 11:12pm UTC](https://qa.fmod.com/t/generating-bank-from-the-command-line/13532/1 "2017-11-10T23:12:31Z")

</div>

A question about this was asked 3 years ago, but I thought I’d ask this here.

We are transitioning to FMOD Studio from a system that loaded .oggs directly. We would like to use FMOD Studio exclusively, we do not want to use the low level API. As a half measure, we have a large collection of .ogg files we would want to be able to build into a bank from the command line.

- These files are not predictably named, so cannot generate an fspro file ahead of time.
- We would like to be able to, per file, choose a bit rate and compression settings.

Is this possible

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [November 14, 2017, 4:27am UTC](https://qa.fmod.com/t/generating-bank-from-the-command-line/13532/2 "2017-11-14T04:27:26Z")

</div>

This is possible.

FMOD Studio supports setting compression format and quality on a per-asset basis; the FMOD Studio command line can run scripts written in Javascript, allowing you to create almost any project you could make using the FMOD Studio UI; and it also allows you to build your projects’ banks. It is entirely possible to create a script that does what you want.

You can read about the FMOD Studio command line tool at [https://www.fmod.com/resources/documentation-studio?page=advanced-topics.html#fmod-studio-command-line-tool](https://www.fmod.com/resources/documentation-studio?page=advanced-topics.html#fmod-studio-command-line-tool) , and about making scripts for FMOD Studio at [https://www.fmod.com/resources/documentation-studio?page=scripting-terminal-reference.html](https://www.fmod.com/resources/documentation-studio?page=scripting-terminal-reference.html).

If you have any questions about specific details of writing scripts for FMOD Studio, please don’t hesitate to post a new question or contact [support@fmod.com](mailto:support@fmod.com).
